/* ============================================
   Kinggdom — kinggdompanama.com
   Paleta: rojo #FF2442 · amarillo #FFB830 · azul #3DB2FF · crema #FFEDDA
   ============================================ */

:root {
  --red: #FF2442;
  --yellow: #FFB830;
  --blue: #3DB2FF;
  --cream: #FFEDDA;
  /* Variantes oscuras: superficies con texto blanco y texto pequeño de color (contraste AA) */
  --red-deep: #D9102E;
  --blue-deep: #0B72BA;
  --navy: #1B2A4A;
  --ink: #232838;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --tint: #FFF8F0;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(27, 42, 74, 0.10);
  --shadow-lg: 0 14px 40px rgba(27, 42, 74, 0.16);
  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Barra de anuncio ---------- */
.announce {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}
.announce strong { color: var(--yellow); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  transition: box-shadow 0.25s;
}
.header.is-scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0;
}

.header__logo img { height: 34px; width: auto; }

.nav {
  display: flex;
  gap: 1.6rem;
  font-weight: 800;
  font-size: 0.95rem;
}
.nav a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  transition: right 0.25s;
}
.nav a:hover { color: var(--red-deep); }
.nav a:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn-cart:hover { transform: scale(1.08); background: var(--yellow); }
.btn-cart__badge {
  position: absolute;
  top: -6px;
  right: -12px;
  background: var(--red);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.btn-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
}
.btn-menu span {
  display: block;
  width: 20px;
  height: 3px;
  margin-inline: auto;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.btn-menu.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.btn-menu.is-open span:nth-child(2) { opacity: 0; }
.btn-menu.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--red { background: var(--red-deep); color: #fff; }
.btn--blue { background: var(--blue-deep); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--white { background: #fff; color: var(--navy); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2.5px solid var(--ink);
}

/* ---------- Hero ---------- */
.hero { padding: 1.5rem 0 1rem; }

.hero__card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(120deg, var(--cream) 0%, #FFF6E9 55%, #E8F5FF 100%);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  overflow: hidden;
  position: relative;
}

.hero__eyebrow {
  display: inline-block;
  background: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}

.hero__content h1 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.6rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.hero__logo {
  width: min(250px, 65%);
  filter: drop-shadow(0 10px 30px rgba(27, 42, 74, 0.15));
  animation: bob 5s ease-in-out infinite;
}
.hero__float {
  position: absolute;
  width: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.hero__float--1 { top: 0; left: 0; animation: bob 4s ease-in-out infinite; }
.hero__float--2 { bottom: 0; left: 8%; animation: bob 4.6s 0.5s ease-in-out infinite; }
.hero__float--3 { top: 8%; right: 0; animation: bob 5.2s 1s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Categorías ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 2rem 0 1rem;
}

.cat {
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.22s, box-shadow 0.22s;
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.cat__emoji { font-size: 2rem; }
.cat h3 { font-size: 1.25rem; font-weight: 800; }
.cat__link { font-weight: 800; font-size: 0.9rem; margin-top: auto; }

.cat--red { background: var(--red-deep); color: #fff; }
.cat--blue { background: var(--blue-deep); color: #fff; }
.cat--yellow { background: var(--yellow); color: var(--ink); }
.cat--cream { background: var(--cream); color: var(--ink); }

/* ---------- Secciones ---------- */
.section { padding: 3.5rem 0; }
.section--tint { background: var(--tint); }

.section__head { margin-bottom: 2rem; }
.section__head h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
.section__head p { color: var(--muted); margin-top: 0.3rem; }

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--red { background: var(--red); }
.dot--blue { background: var(--blue); }
.dot--yellow { background: var(--yellow); }

.section__note {
  margin-top: 1.8rem;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Productos ---------- */
.grid--products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.product {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product__img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.85;
}
.product__img img { width: 45%; opacity: 0.9; }
.product__img--red { background: linear-gradient(135deg, var(--red), #FF6B81); }
.product__img--blue { background: linear-gradient(135deg, var(--blue), #7ACBFF); }
.product__img--yellow { background: linear-gradient(135deg, var(--yellow), #FFD37A); }
.product__img--navy { background: linear-gradient(135deg, var(--navy), #3D5580); }

.product__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product__body { padding: 1.1rem 1.2rem 1.3rem; }
.product__brand {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-deep);
}
.product__body h3 { font-size: 1.02rem; margin: 0.25rem 0 0.6rem; }
.product__status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0B8A4B;
  background: #E5F7EE;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Marcas TCG ---------- */
.grid--brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.brand {
  background: #fff;
  border-radius: var(--radius);
  border-top: 6px solid;
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.brand:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.brand__emoji { font-size: 1.8rem; }
.brand h3 { font-size: 1.15rem; margin: 0.5rem 0 0.4rem; }
.brand p { font-size: 0.9rem; color: var(--muted); }

.brand--red { border-color: var(--red); }
.brand--blue { border-color: var(--blue); }
.brand--yellow { border-color: var(--yellow); }
.brand--navy { border-color: var(--navy); }

/* ---------- Features (Peluches / Juguetes) ---------- */
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 2.5rem;
}
.feature--flip .feature__art { order: 2; }

.feature__art {
  display: grid;
  place-items: center;
  border-radius: 28px;
  min-height: 260px;
}
.feature__art--yellow { background: linear-gradient(135deg, var(--yellow), #FFD37A); }
.feature__art--blue { background: linear-gradient(135deg, var(--blue), #7ACBFF); }
.feature__emoji { font-size: 6rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15)); }

.feature__content h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}
.feature__content p {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1.4rem;
}

/* ---------- CTA tienda en línea ---------- */
.cta-online {
  background: linear-gradient(120deg, var(--red-deep) 0%, #B00D24 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-online__inner img { width: 64px; margin: 0 auto 1rem; }
.cta-online h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.8rem; }
.cta-online p { max-width: 56ch; margin: 0 auto 1.6rem; opacity: 0.95; }

/* ---------- Contacto ---------- */
.grid--contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.contact-card {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.contact-card__emoji { font-size: 1.8rem; }
.contact-card h3 { font-size: 1.1rem; margin: 0.5rem 0 0.4rem; }
.contact-card p { font-size: 0.92rem; color: var(--muted); }
.contact-card a { color: var(--blue-deep); font-weight: 700; }
.contact-card a:hover { text-decoration: underline; }
.contact-card em { font-size: 0.82rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #fff; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
}

.footer__brand img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.9rem; opacity: 0.75; }

.footer__nav { display: flex; flex-direction: column; gap: 0.5rem; font-weight: 700; font-size: 0.92rem; }
.footer__nav a:hover { color: var(--yellow); }

.footer__contact a { font-weight: 800; color: var(--yellow); }
.footer__contact a:hover { text-decoration: underline; }
.footer__contact p { font-size: 0.9rem; opacity: 0.75; margin-top: 0.4rem; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.6;
  padding: 1.2rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120px);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1DA851;
  color: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Animación reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo, .hero__float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cat, .product, .brand, .btn, .whatsapp-float, .btn-cart { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--products, .grid--brands, .grid--contact { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .hero__card { grid-template-columns: 1fr; padding: 2.5rem 1.8rem; }
  .hero__art { min-height: 220px; }
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__art { order: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.3rem;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 60;
  }
  .nav.is-open { transform: translateX(0); }
  .btn-menu { display: flex; position: relative; z-index: 70; }
  .header__logo img { height: 26px; }
}

@media (max-width: 520px) {
  .grid--products, .grid--contact { grid-template-columns: 1fr; }
  .categories { gap: 0.8rem; }
  .cat { padding: 1.2rem 1rem; }
  .cat h3 { font-size: 1.05rem; }
}
