/* ============================================================
   Luz Viva Kids — Estilos principales v3
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');

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

:root {
  --y:   #FFD33A;
  --yb:  #FFF9D6;
  --yd:  #D9900A;
  --pk:  #FF6EB4;
  --pkd: #E94B9A;
  --sk:  #3BAED4;
  --skd: #2893B8;
  --nv:  #1A3A5C;
  --nvs: #456080;
  --f:   'Fredoka', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--f); color: var(--nv); overflow-x: hidden; margin: 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 80px; padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s;
  background: transparent;
}
.nav.bg {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 28px rgba(26,58,92,.08);
}
.nav-logo { background: none; border: none; padding: 0; cursor: pointer; display: block; }
.nav-logo img,
.logo-header-img {
  height: 72px; width: auto; display: block;
  background: transparent;
}
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-links { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.nav-btn {
  font: 600 1rem var(--f); color: var(--nv); background: none; border: none;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  transition: color .18s; white-space: nowrap; text-decoration: none;
  display: inline-block;
}
.nav-btn:hover { color: var(--pk); }

/* Solo marcar como activo el item de la página actual real
   — no los custom links de ancla (#catalogo, #contacto) */
.nav-btn.active { color: var(--nv); }
.nav-links > li.current-menu-item > .nav-btn,
.nav-links > li.current_page_item > .nav-btn {
  color: var(--pk);
}
.nav-btn.active::after { display: none; }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 26px; height: 2.5px;
  background: var(--nv); border-radius: 2px;
}
.mobile-nav {
  position: fixed; top: 80px; left: 0; right: 0; background: #fff;
  box-shadow: 0 8px 32px rgba(26,58,92,.12); z-index: 190;
  flex-direction: column; border-top: 1px solid rgba(26,58,92,.06);
  display: none;
}
.mobile-nav.open { display: flex; }
.mobile-nav-btn {
  font: 600 1.05rem var(--f); color: var(--nv); background: none; border: none;
  padding: 17px 24px; text-align: left; cursor: pointer; text-decoration: none;
  border-bottom: 1px solid rgba(26,58,92,.06); transition: background .15s;
  display: block;
}
.mobile-nav-btn:hover { background: rgba(26,58,92,.04); }

/* ============================================================
   FLOATERS GLOBALES
   ============================================================ */
.sec-floats { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sf { position: absolute; }

/* ============================================================
   HERO
   ============================================================ */
.s-inicio {
  position: relative; background: var(--yb);
  overflow: hidden; min-height: auto;
}
.hero-floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hf { position: absolute; }
.hero-inner {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  padding: clamp(70px, 7vh, 95px) 52px clamp(20px, 2.5vh, 36px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-h1 {
  font-size: clamp(2.8rem, 4.2vw + .4rem, 4.2rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.025em; color: var(--nv);
}
.hl-pink {
  color: var(--pk);
  text-decoration-line: underline;
  text-decoration-color: var(--y);
  text-decoration-thickness: 7px;
  text-underline-offset: 4px;
}
.hl-sky { color: var(--skd); }
.hero-sub { font-size: 1.15rem; font-weight: 500; color: var(--nvs); line-height: 1.55; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 24px 13px 13px; background: var(--y); color: var(--nv);
  font: 700 1.1rem var(--f); border: none; border-radius: 999px;
  cursor: pointer; width: fit-content; text-decoration: none;
  box-shadow: 0 5px 0 var(--yd); transition: transform .15s, box-shadow .15s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--yd); }
.hero-cta:active { transform: translateY(3px); box-shadow: 0 0 0 var(--yd); }
.cta-play {
  width: 44px; height: 44px; background: var(--nv); border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.badge { display: flex; align-items: center; gap: 10px; }
.badge-ico {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
}
.bi-pk { background: rgba(255,110,180,.13); }
.bi-sk { background: rgba(91,200,245,.15); }
.bi-y  { background: rgba(255,211,58,.22); }
.badge-txt { font-size: .875rem; font-weight: 600; color: var(--nv); line-height: 1.25; }
.hero-video-desktop { display: flex; justify-content: center; align-items: center; width: 100%; }
.hero-video-mobile  { display: none; }

/* ============================================================
   VIDEO CARD
   ============================================================ */
.video-wrap { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.video-card {
  background: #fff; border: 3px solid var(--nv); border-radius: 28px; padding: 12px;
  box-shadow: 0 14px 50px rgba(26,58,92,.16); transform: rotate(3deg);
}
.video-thumb {
  position: relative; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden;
  background: #000;
}
.video-thumb iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block;
}
.vs { position: absolute; z-index: 3; pointer-events: none; }
.vs-tl { top: -28px; left: -18px; }
.vs-tr { top: -24px; right: -24px; }
.vs-dp { width: 22px; height: 22px; background: var(--pk); border-radius: 999px; bottom: -10px; left: -14px; }
.vs-ds { width: 18px; height: 18px; background: var(--sk); border-radius: 999px; top: 42%; right: -22px; }

/* ============================================================
   CATÁLOGO
   ============================================================ */
.s-catalogo {
  position: relative; background: #ffffff;
  overflow: hidden; padding: 96px 52px 108px;
}
.cat-inner  { position: relative; z-index: 1; }
.cat-header { text-align: center; margin-bottom: 56px; }
.cat-section-title {
  font-size: clamp(2rem, 3vw + .4rem, 2.8rem);
  font-weight: 700; color: var(--nv); margin-bottom: 10px;
}
.cat-section-sub { font-size: 1rem; color: var(--nvs); font-weight: 500; }
.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.cat-card:nth-child(1) { grid-column: 1 / 3; }
.cat-card:nth-child(2) { grid-column: 3 / 5; }
.cat-card:nth-child(3) { grid-column: 5 / 7; }
.cat-card:nth-child(4) { grid-column: 2 / 4; }
.cat-card:nth-child(5) { grid-column: 4 / 6; }
.cat-card {
  background: #FFF0F6 !important;
  border-radius: 16px;
  border: 1.5px solid #F4C0D1 !important;
  box-shadow: 0 4px 20px rgba(255,110,180,.10);
  padding: 32px 20px 28px;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.cat-card:hover {
  box-shadow: 0 12px 44px rgba(255,110,180,.18);
  transform: translateY(-4px);
}
.cat-icon-img {
  width: 130px; height: 130px; object-fit: contain;
  border-radius: 50%; flex-shrink: 0;
}
.cat-card-title { font-size: 1.08rem; font-weight: 700; color: var(--nv); line-height: 1.3; }
.cat-card-desc  { font-size: .85rem; color: var(--nvs); line-height: 1.6; flex: 1; }
.cat-ver-mas {
  margin-top: 8px;
  background: #3BAED4 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font: 700 .95rem var(--f);
  cursor: pointer;
  transition: background .18s, transform .15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(59,174,212,.35);
  -webkit-appearance: none;
  appearance: none;
}
.cat-ver-mas:hover { background: #2893B8 !important; transform: translateY(-2px); }

/* ============================================================
   CONTACTO
   ============================================================ */
.s-contacto {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 580px;
}
.contacto-photo { overflow: hidden; }
.contacto-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.contacto-content {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, #E4F4FF 100%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 64px 52px; gap: 20px; text-align: center;
}
.contacto-title {
  font-size: clamp(1.8rem, 2.5vw + .4rem, 2.6rem);
  font-weight: 700; color: var(--nv); line-height: 1.15;
  position: relative; z-index: 1;
}
.contacto-sub {
  font-size: 1rem; color: var(--nvs); font-weight: 500;
  max-width: 340px; line-height: 1.5; position: relative; z-index: 1;
}
.contacto-btn {
  display: inline-flex; align-items: center;
  padding: 16px 40px; background: var(--y); color: var(--nv);
  font: 700 1.1rem var(--f); border: none; border-radius: 999px;
  text-decoration: none; box-shadow: 0 5px 0 var(--yd); cursor: pointer;
  transition: transform .15s, box-shadow .15s; position: relative; z-index: 1;
}
.contacto-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--yd); }
.contacto-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--yd); }

/* ============================================================
   FOOTER — sin animaciones, sin fondo extra en logo
   ============================================================ */
.s-footer {
  position: relative; background: var(--nv); color: #fff;
  padding: 64px 52px 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
  max-width: 1100px; margin: 0 auto; padding-bottom: 52px;
}
/* Logo footer: sin caja, sin fondo — logo blanco sobre azul directo */
.footer-logo-wrap {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: inline-block;
  margin-bottom: 14px;
}
.footer-logo {
  height: 80px; width: auto; display: block;
  background: transparent;
}
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.55; max-width: 220px; margin-top: 10px; }
.footer-col-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-link {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem;
  margin-bottom: 14px; transition: color .18s;
}
.footer-link:hover { color: var(--sk); }
.footer-link svg { flex-shrink: 0; }
.footer-divider {
  border: none; border-top: 1px solid rgba(255,255,255,.12);
  margin: 0 -52px;
}
.footer-copy {
  text-align: center; font-size: .8rem;
  color: rgba(255,255,255,.4); padding: 22px 0;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fa { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-10px) rotate(3deg)} }
@keyframes fb { 0%,100%{transform:translateY(0)} 50%{transform:translateY(9px)} }
@keyframes fs { to{transform:rotate(360deg)} }
@keyframes fc { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: clamp(65px, 6vh, 88px) 28px clamp(18px, 2vh, 30px); gap: 32px; }
  .hero-video-desktop { display: none; }
  .hero-video-mobile  { display: flex; justify-content: center; }
  .video-card { transform: rotate(2deg); }
  .video-wrap { max-width: 460px; }
  .s-catalogo { padding: 72px 28px 80px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card:nth-child(1) { grid-column: 1; }
  .cat-card:nth-child(2) { grid-column: 2; }
  .cat-card:nth-child(3) { grid-column: 1; }
  .cat-card:nth-child(4) { grid-column: 2; }
  .cat-card:nth-child(5) { grid-column: 1 / 3; }
  .s-contacto { grid-template-columns: 1fr; min-height: auto; }
  .contacto-photo { height: 320px; }
  .contacto-content { padding: 52px 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 640px) {
  .nav { padding: 0 20px; height: 70px; }
  .nav-logo img, .logo-header-img { height: 52px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { padding: 80px 20px 28px; gap: 20px; }
  .hero-h1 { font-size: 2.05rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-badges {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 6px; width: 100%;
  }
  .badge { flex-direction: column; align-items: center; text-align: center; padding: 10px 4px; gap: 6px; }
  .badge-txt { text-align: center; font-size: .78rem; }
  .video-card { transform: none; }
  .video-wrap { max-width: 100%; }
  .vs-tl, .vs-tr { display: none; }
  .s-catalogo { padding: 56px 20px 64px; }
  .cat-header  { margin-bottom: 32px; }
  .cat-grid    { grid-template-columns: 1fr; }
  .cat-card:nth-child(n) { grid-column: 1; }
  .cat-icon-img { width: 110px; height: 110px; }
  .s-contacto { grid-template-columns: 1fr; }
  .contacto-photo { height: 250px; }
  .contacto-content { padding: 44px 24px; }
  .s-footer { padding: 48px 24px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-logo-wrap { margin: 0 auto 14px; }
  .footer-tagline { max-width: 100%; }
  .footer-link { justify-content: center; }
  .footer-divider { margin: 0 -24px; }
}

/* ============================================================
   SUBMENÚS DESPLEGABLES — Desktop y Mobile
   ============================================================ */

/* Necesario para que el dropdown no quede cortado */
.nav { overflow: visible !important; }
.nav-right { overflow: visible; position: relative; }
.nav-links  { overflow: visible; position: relative; }

/* ── Cada li es el contenedor relativo ── */
.nav-links > li {
  position: relative;
  list-style: none;
}

/* ── Submenú: oculto por defecto ── */
.nav-links > li > ul.sub-menu,
.nav-links > li > ul {
  display: none;
  position: absolute;
  /* top al 100% sin gap — el padding-top crea zona hover segura */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(26,58,92,.13);
  /* padding-top grande = zona invisible que mantiene el hover activo */
  padding: 12px 0 6px;
  min-width: 210px;
  list-style: none;
  z-index: 9999;
  /* Borde rosado dentro del padding para que no flote */
  border-top: none;
}

/* Línea rosada decorativa dentro del dropdown */
.nav-links > li > ul.sub-menu::before,
.nav-links > li > ul::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--pk);
  border-radius: 3px 3px 0 0;
  position: absolute;
  top: 12px;
  left: 0; right: 0;
}

/* ── Mostrar al hover ── */
.nav-links > li:hover > ul.sub-menu,
.nav-links > li:hover > ul {
  display: block;
  animation: lvk-dropdown .18s ease forwards;
}

@keyframes lvk-dropdown {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Items dentro del dropdown ── */
.nav-links > li > ul li {
  width: 100%;
  list-style: none;
}
.nav-links > li > ul li a {
  display: block;
  padding: 13px 28px;
  font: 600 .97rem var(--f);
  color: var(--nv);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
  letter-spacing: .01em;
}
.nav-links > li > ul li a:hover {
  background: #FFF0F6;
  color: var(--pk);
}
/* Primera y última con borde redondeado */
.nav-links > li > ul li:first-child a { border-radius: 13px 13px 0 0; }
.nav-links > li > ul li:last-child  a { border-radius: 0 0 13px 13px; }

/* Separador entre items si hay más de uno */
.nav-links > li > ul li + li {
  border-top: 1px solid rgba(26,58,92,.06);
}

/* ── Indicador ▾ en el item padre ── */
.nav-links > li.menu-item-has-children > a.nav-btn::after {
  content: ' ▾';
  font-size: .75em;
  opacity: .55;
  display: inline !important;
  background: none !important;
  height: auto !important;
  margin-left: 2px;
}

/* ── Mobile: submenús dentro del menú hamburger ── */
.mobile-nav .mobile-sub {
  display: flex;
  flex-direction: column;
  background: rgba(26,58,92,.04);
  border-left: 3px solid var(--pk);
  margin: 0;
}
.mobile-nav .mobile-sub a {
  font: 500 .95rem var(--f);
  color: var(--nvs);
  background: none;
  border: none;
  padding: 13px 24px 13px 36px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,58,92,.04);
  transition: background .15s, color .15s;
  display: block;
}
.mobile-nav .mobile-sub a:hover {
  background: rgba(255,110,180,.07);
  color: var(--pk);
}

/* Toggle del submenú mobile — flecha */
.mobile-nav-btn.has-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-btn.has-sub::after {
  content: '▾';
  font-size: .85em;
  opacity: .5;
  transition: transform .2s;
}
.mobile-nav-btn.has-sub.open::after {
  transform: rotate(180deg);
}
