/* ═══════════════════════════════════════
   TOKENS & RESET
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FFFEF2;   /* Fondo principal */
  --text:      #41555B;   /* Texto principal */
  --accent:    #D88C6A;   /* Títulos, párrafos destacados y navegación */
  --cta:       #E7D9C3;   /* Botones y llamados a la acción */
  --section:   #A1AD9D;   /* Fondos de sección */
  --block:     #F6F5E8;   /* Bloques secundarios / recuadros */
  --text-soft: #41555B99;
  --nav-h: 108px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  padding-top: var(--nav-h);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4,
.title-font {
  font-family: 'Figtree', -apple-system, sans-serif;
  font-weight: 500;
  color: var(--text);
}

a { color: inherit; }

em {
  font-style: normal;
  color: var(--accent);
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
nav#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 5%;
  background: var(--bg);
  border-top: 14px solid var(--section);
  border-bottom: 1px solid rgba(65,85,91,0.08);
  transition: box-shadow 0.3s;
}

nav#main-nav.scrolled {
  box-shadow: 0 4px 16px rgba(65,85,91,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 86px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li.active > a,
.nav-links > li.has-dropdown:hover > a {
  color: var(--section);
}

.nav-links .chevron {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s;
}

.nav-links li.has-dropdown:hover .chevron { transform: rotate(225deg); margin-top: 3px; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 290px;
  background: var(--block);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(65,85,91,0.16);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
}

.nav-links li.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover,
.dropdown li.active a {
  background: rgba(161,173,157,0.18);
  color: var(--section);
}

.dropdown li a .num {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

nav#main-nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav#main-nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav#main-nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: none; }

  nav#main-nav {
    flex-wrap: wrap;
    row-gap: 0.6rem;
    padding: 0.7rem 5%;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    position: static;
    width: 100%;
    background: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0;
    overflow: visible;
    z-index: auto;
  }

  .nav-links > li { width: auto; min-width: 0; }

  .nav-links > li > a {
    width: auto;
    justify-content: flex-start;
    padding: 0.2rem 0;
    border-bottom: none;
    font-size: 0.72rem;
    white-space: nowrap;
    gap: 0.2rem;
  }

  .nav-links li.has-dropdown.open {
    flex-basis: 100%;
  }

  .nav-links li.has-dropdown .dropdown,
  .nav-links li.has-dropdown:hover .dropdown {
    display: none;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: var(--block);
    min-width: 0;
    width: 100%;
    margin: 0.4rem 0 0;
    padding: 0.6rem;
  }

  .nav-links li.has-dropdown.open .dropdown {
    display: block;
  }

  .nav-links .chevron {
    width: 6px; height: 6px;
    border-right-width: 1.3px;
    border-bottom-width: 1.3px;
    padding: 4px;
    margin: -4px -4px -4px -1px;
  }
}

@media (max-width: 420px) {
  .nav-links { gap: 0.25rem; }
  .nav-links > li > a { font-size: 0.62rem; }
  .nav-links .chevron {
    width: 5px; height: 5px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    padding: 3px;
    margin: -3px -3px -3px -1px;
  }
}

@media (max-width: 360px) {
  .nav-links > li > a { font-size: 0.56rem; }
}

/* ═══════════════════════════════════════
   HERO (home)
═══════════════════════════════════════ */
.hero-frame-line {
  height: 10px;
  background: var(--section);
}

.hero {
  position: relative;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary, .btn-ghost {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover { background: var(--text); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}

.btn-ghost:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }

/* ═══════════════════════════════════════
   SUBPAGE: breadcrumb bar + two-column template
   (Quienes somos sub-pages, and reusable elsewhere)
═══════════════════════════════════════ */
.back-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 1rem 5% 0;
  padding: 0.3rem 0;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

.back-link:hover {
  color: var(--accent);
}

.back-link-bottom {
  margin: 2.5rem 5% 2.5rem;
}

.back-link .arrow {
  font-size: 1.05rem;
  line-height: 1;
}

.page-breadcrumb {
  background: var(--block);
  border-top: 1px solid rgba(65,85,91,0.08);
  border-bottom: 1px solid rgba(65,85,91,0.08);
  padding: 1.1rem 5%;
  text-align: center;
  scroll-margin-top: var(--nav-h);
}

.page-breadcrumb h1 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h) - 58px);
}

.split-photo {
  overflow: hidden;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 6%;
}

.split.photo-right .split-photo { order: 2; }
.split.photo-right .split-text { order: 1; }

.split-text p.lead {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.6rem;
}

.split-text p {
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.split-text p:last-child { margin-bottom: 0; }

.split-text p strong { font-weight: 700; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-photo img { min-height: 320px; }
  .split.photo-right .split-photo,
  .split.photo-right .split-text { order: unset; }
  .split-text { padding: 2.6rem 6%; }
  .split-text p.lead { font-size: 1.4rem; white-space: normal; }
}

/* ═══════════════════════════════════════
   INTRO SPLIT (Nuestros juegos — landing)
═══════════════════════════════════════ */
.intro-split {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 2rem;
  padding: 4.5rem 6%;
  align-items: start;
}

.intro-lead {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.3;
  text-align: center;
}

.intro-lead .t1 { color: var(--text); }
.intro-lead .t2 { color: #612A8A; }

.intro-text p {
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.intro-text p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .intro-split { grid-template-columns: 1fr; padding: 2.6rem 6%; }
  .intro-lead { font-size: 1.5rem; margin-bottom: 1.5rem; }
}

/* ═══════════════════════════════════════
   GAMES GRID (Nuestros juegos — listado)
═══════════════════════════════════════ */
.games-grid-section {
  padding: 1rem 5% 4.5rem;
  background: var(--block);
}

.games-grid-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
  color: var(--text);
  margin-bottom: 2.4rem;
  padding-top: 2.4rem;
}

.games-grid-title .hl {
  color: var(--text);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.game-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.game-card .game-photo {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.game-card .game-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.game-card:hover .game-photo img {
  transform: scale(1.04);
}

.game-flip {
  aspect-ratio: 3 / 4;
  -webkit-perspective: 1400px;
  perspective: 1400px;
  cursor: pointer;
}

.game-flip .flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.game-flip.flipped .flip-inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.game-flip .flip-front,
.game-flip .flip-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

.game-flip .flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.game-flip:hover .flip-front img { transform: scale(1.04); }

.game-flip .flip-back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  overscroll-behavior: contain;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-flip .flip-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.game-flip .flip-hint {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  background: rgba(255,254,242,0.9);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  pointer-events: none;
}

.game-card .game-info {
  text-align: center;
  padding: 1.2rem 1rem 0;
}

.game-card .category {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.game-card h3 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.game-card .age {
  font-size: 0.95rem;
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .games-grid { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
}

/* ═══════════════════════════════════════
   CLOSING BANNER ("¿Jugamos?")
═══════════════════════════════════════ */
.closing-banner {
  position: relative;
}

.closing-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.closing-banner-text {
  position: absolute;
  right: 6%;
  bottom: 10%;
  width: min(480px, 42%);
  background: rgba(255,254,242,0.9);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  text-align: center;
}

.closing-banner-text p {
  font-size: clamp(0.6rem, 1vw, 15px);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.closing-banner-text .q {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(0.9rem, 1.6vw, 24px);
  color: var(--section);
}

@media (max-width: 860px) {
  .closing-banner-text { position: static; width: auto; margin: -2.4rem 1rem 0; }
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--text);
  color: var(--bg);
  padding: 3rem 5% 2rem;
  text-align: center;
}

footer .footer-logo img {
  height: 34px;
  margin: 0 auto 1.2rem;
  filter: brightness(0) invert(1) opacity(0.85);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

footer .footer-links a {
  text-decoration: none;
  color: var(--bg);
  opacity: 0.8;
  font-size: 0.85rem;
  font-weight: 500;
}

footer .footer-links a:hover { opacity: 1; color: var(--cta); }

footer .footer-copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   FICHA DE PRODUCTO (CREAGENIOS, EDUKIT…)
═══════════════════════════════════════ */
.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 3.5rem;
  padding: 3.5rem 5% 4.5rem;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Carrusel de fotos --- */
.pd-carousel {
  background: var(--block);
  cursor: pointer;
  user-select: none;
}

.pd-photo {
  aspect-ratio: 45 / 64;
  overflow: hidden;
  background: var(--block);
}

.pd-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-caption {
  text-align: center;
  padding: 0.9rem 1rem 0.3rem;
}

.pd-caption .pd-area {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.pd-caption .pd-name {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.pd-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 1rem 1.1rem;
}

.pd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(65,85,91,0.25);
  transition: background 0.25s, transform 0.25s;
}

.pd-dot.on {
  background: var(--accent);
  transform: scale(1.3);
}

.pd-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-soft);
  padding-bottom: 1rem;
}

/* --- Columna de texto --- */
.product-info h2 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 1.3rem;
}

.product-info p {
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.product-info p.strong {
  font-weight: 700;
}

.product-benefits {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--block);
  padding: 1.8rem 2rem;
  margin-top: 1.6rem;
}

.product-benefits .pb-label {
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 180px;
}

.product-benefits ul {
  list-style: disc;
  padding-left: 1.2rem;
  flex: 1 1 240px;
}

.product-benefits li {
  font-size: 18px;
  line-height: 32px;
  color: var(--text);
}

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 6% 3rem; }
  .pd-photo { aspect-ratio: 4 / 3.6; }
  .product-benefits { flex-direction: column; gap: 0.6rem; }
}

/* ═══════════════════════════════════════
   IDEAS PARA JUGAR
═══════════════════════════════════════ */
.ideas-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 4.5rem 6% 5rem;
}

.ideas-content h2 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1.6rem;
}

.ideas-content h2 em {
  font-style: normal;
  color: #612A8A;
}

.ideas-content p {
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.code-btn {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bg);
  background: var(--text);
  border: 0;
  border-radius: 50px;
  padding: 1rem 2.4rem;
  margin-top: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.code-btn:hover { background: var(--accent); transform: translateY(-2px); }

/* ═══════════════════════════════════════
   VISOR DE MANUALES (overlay a pantalla completa)
═══════════════════════════════════════ */
.manual-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  flex-direction: column;
}

.manual-overlay.active { display: flex; }

a.manual-close { text-decoration: none; display: inline-flex; align-items: center; }

.manual-topbar {
  flex: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 6%;
  background: var(--text);
  box-sizing: border-box;
}

.manual-topbar-title {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}

.manual-close {
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border: none;
  color: white;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  box-sizing: border-box;
}

.manual-close:hover { background: rgba(255,255,255,0.32); }

.manual-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Cada manual conserva el color con el que fue diseñado */
#overlay-creagenios .manual-topbar { background: #41555B; }
#overlay-formas     .manual-topbar { background: #A1AD9D; }
#overlay-letras      .manual-topbar { background: #C1613F; }
#overlay-numeros     .manual-topbar { background: #4E5D94; }

#overlay-creagenios .manual-content { scroll-padding-top: 65px; }
#overlay-formas     .manual-content { scroll-padding-top: 100px; }
#overlay-letras      .manual-content { scroll-padding-top: 190px; }
#overlay-numeros     .manual-content { scroll-padding-top: 190px; }

@media (max-width: 700px) {
  .manual-topbar { padding: 0.8rem 5%; }
  .manual-topbar-title { font-size: 0.68rem; }
}

.manual-frame-wrap { overflow: hidden; padding: 0; }
.manual-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

/* ═══════════════════════════════════════
   PANTALLA PARA INGRESAR EL CÓDIGO DEL MANUAL
═══════════════════════════════════════ */
.code-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.code-toggle:checked + .code-screen { display: flex; }
label.code-open-btn { display: inline-block; -webkit-tap-highlight-color: transparent; user-select: none; }
label.code-x { display: flex; align-items: center; justify-content: center; }

.code-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(65,85,91,0.55);
  display: none; align-items: center; justify-content: center; padding: 1.2rem;
}
.code-screen.active { display: flex; }

.code-card {
  position: relative; width: 100%; max-width: 420px; box-sizing: border-box;
  background: var(--bg); border-radius: 18px; padding: 2.4rem 2rem 2rem;
  text-align: center; box-shadow: 0 24px 70px rgba(20,30,33,0.3);
  border-top: 6px solid var(--accent);
}

.code-card h2 {
  font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 1.6rem;
  color: var(--text); margin: 0 0 0.5rem;
}

.code-card p.code-help { font-size: 0.86rem; color: var(--text-soft); line-height: 1.6; margin: 0 0 1.4rem; }
.code-nojs { font-size: 0.86rem; color: var(--accent); line-height: 1.6; margin: 0; }
.code-screen.js .code-nojs { display: none; }

.code-x {
  position: absolute; top: 0.8rem; right: 0.8rem; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(65,85,91,0.1); color: var(--text);
  font-size: 0.9rem; cursor: pointer;
}

.code-input {
  width: 100%; box-sizing: border-box; text-align: center;
  font-family: 'Figtree', sans-serif; font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); background: #fff; border: 1.5px solid var(--section); border-radius: 10px;
  padding: 0.85rem 0.8rem; margin-bottom: 0.9rem; -webkit-appearance: none;
}
.code-input::placeholder { letter-spacing: 0.06em; color: var(--text-soft); text-transform: none; }
.code-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(65,85,91,0.15); }
.code-input.bad { border-color: var(--accent); }

.code-go {
  width: 100%; font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
  color: var(--bg); background: var(--text); border: 0; border-radius: 10px; padding: 0.9rem; cursor: pointer;
}
.code-go:hover { background: var(--accent); }
.code-go:disabled { opacity: 0.6; cursor: wait; }

.code-msg { min-height: 1.3em; margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--accent); line-height: 1.5; }
.code-msg.ok { color: var(--text); }

.code-saved { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid rgba(65,85,91,0.15); display: none; }
.code-saved.has { display: block; }
.code-saved p { font-size: 0.74rem; color: var(--text-soft); margin: 0 0 0.6rem; }
.code-saved-list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.code-saved-list button {
  font-family: 'Figtree', sans-serif; font-size: 0.75rem; border: 0; border-radius: 50px;
  padding: 0.5rem 1rem; cursor: pointer; color: var(--text); background: var(--block);
}

/* ═══════════════════════════════════════
   CONTACTO
═══════════════════════════════════════ */
.contact-section {
  padding: 4.5rem 6% 5.5rem;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-eyebrow {
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-heading {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.6rem;
}

.contact-heading em {
  font-style: normal;
  color: var(--accent);
}

.contact-info-body {
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
  margin-bottom: 2.2rem;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-detail-icon {
  width: 32px;
  height: 32px;
  background: var(--block);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.slogan-block {
  padding: 1.4rem 0;
  border-top: 1px solid var(--section);
  border-bottom: 1px solid var(--section);
}

.slogan-text {
  font-family: 'Figtree', sans-serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: var(--block);
  padding: 2.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.form-input, .form-textarea, .form-select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--section);
  padding: 0.7rem 0;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
}

.form-select:invalid { color: var(--text-soft); }
.form-select option[value=""] { color: var(--text-soft); }

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 1.05rem 2.4rem;
  cursor: pointer;
  border-radius: 4px;
  align-self: flex-start;
  transition: background 0.3s, transform 0.2s;
  margin-top: 0.4rem;
}

.form-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .contact-section { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 6% 4rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-heading { font-size: 1.9rem; }
}

/* ═══════════════════════════════════════
   MENÚ: "Consultas" (último ítem) abre hacia la izquierda
═══════════════════════════════════════ */
@media (min-width: 901px) {
  .nav-links > li:last-child .dropdown { left: auto; right: 0; transform: translateY(6px); min-width: 250px; }
  .nav-links > li:last-child.has-dropdown:hover .dropdown { transform: translateY(0); }
}

/* ═══════════════════════════════════════
   PREGUNTAS FRECUENTES
═══════════════════════════════════════ */
.faq-section {
  padding: 4.5rem 6% 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 4.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.faq-intro { position: sticky; top: calc(var(--nav-h, 120px) + 1.5rem); }
.faq-intro-body { font-size: 18px; line-height: 28px; color: var(--text); margin-bottom: 2rem; max-width: 400px; }
.faq-help { background: var(--block); border-radius: 16px; padding: 1.5rem 1.6rem; max-width: 400px; }
.faq-help p { color: var(--text); font-size: 0.98rem; line-height: 1.5; }
.faq-help-title { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 1.1rem !important; margin-bottom: 0.3rem; }
.faq-help-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.faq-btn {
  font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 0.92rem;
  padding: 0.65rem 1.3rem; border-radius: 50px; text-decoration: none;
  background: var(--text); color: var(--bg); transition: background 0.2s;
}
.faq-btn:hover { background: var(--section); }
.faq-btn-soft { background: var(--cta); color: var(--text); }
.faq-btn-soft:hover { background: var(--section); color: var(--bg); }

.faq-list { display: flex; flex-direction: column; min-width: 0; }
.faq-group {
  font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--section);
  margin: 0 0 0.6rem;
}
.faq-group:not(:first-child) { margin-top: 2.8rem; }

.faq-item { border-bottom: 1px solid rgba(65,85,91,0.15); }
.faq-item:first-of-type { border-top: 1px solid rgba(65,85,91,0.15); }
.faq-group + .faq-item { border-top: 1px solid rgba(65,85,91,0.15); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.25rem 0.2rem;
  font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 1.15rem; line-height: 1.35;
  color: var(--text); transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin: -4px 0.3rem 0 0; transition: transform 0.2s;
}
.faq-item summary:hover { color: var(--section); }
.faq-item summary:focus-visible { outline: 2px solid var(--section); outline-offset: 4px; border-radius: 6px; }
.faq-item[open] summary { color: var(--section); }
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-answer { padding: 0 0.2rem 1.5rem; max-width: 62ch; }
.faq-answer p { font-size: 17px; line-height: 27px; color: var(--text); margin-bottom: 0.8rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--section); font-weight: 600; text-underline-offset: 3px; }
.faq-answer strong { font-weight: 700; }
.faq-highlight { font-weight: 700; }

@media (max-width: 860px) {
  .faq-section { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 3rem 6% 4rem; }
  .faq-intro { position: static; }
  .faq-item summary { font-size: 1.05rem; padding: 1.1rem 0.1rem; }
  .faq-answer p { font-size: 16px; line-height: 25px; }
}

/* Foto de "Nuestros valores" (vertical): encuadre parejo en computadora y celular */
.split-photo-valores { position: relative; }
.split-photo-valores img {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  object-fit: cover; object-position: center 45%;
}
@media (max-width: 900px) {
  .split-photo-valores img { position: static; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 5; object-fit: cover; }
}

/* Cierre "¿Jugamos?" de Quienes somos: franja de foto + texto debajo.
   El encuadre deja completas la mano con la pulsera roja y el logo del sobre. */
.closing-v2 .cb-photo img {
  width: 100%; height: max(300px, 46vw);
  object-fit: cover; object-position: center 65%; display: block;
}
.closing-v2 .cb-text {
  background: var(--block); text-align: center;
  padding: 3.2rem 6% 3.4rem;
}
.closing-v2 .cb-text p {
  font-family: 'Figtree', sans-serif; font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5;
  color: var(--text); max-width: 34ch; margin: 0 auto; text-wrap: balance;
}
.closing-v2 .cb-text p.cb-cta {
  font-weight: 700; font-style: italic; font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #612A8A; margin-top: 1.1rem;
}
@media (max-width: 900px) {
  .closing-v2 .cb-photo img { height: auto; aspect-ratio: 1 / 1; object-position: center; }
  .closing-v2 .cb-text { padding: 2.4rem 7% 2.6rem; }
}

/* Portada (inicio): foto sin texto + texto debajo.
   Computadora: franja ancha que deja entera la mano de arriba. Celular: foto completa. */
.home-v2 .hv-photo img {
  width: 100%; height: auto; aspect-ratio: 2023 / 1000;
  object-fit: cover; object-position: center; display: block;
}
.home-v2 .hv-text { background: var(--block); text-align: center; padding: 3rem 6% 3.2rem; }
.home-v2 .hv-text h1 {
  font-family: 'Figtree', sans-serif; font-weight: 700; font-style: italic;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.2; color: var(--text);
  margin: 0 auto; text-wrap: balance;
}
.home-v2 .hv-text h1 em { font-style: italic; color: #612A8A; }
.home-v2 .hv-text p {
  font-family: 'Figtree', sans-serif; font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--text);
  max-width: 40ch; margin: 1rem auto 0; text-wrap: balance;
}
@media (max-width: 900px) {
  .home-v2 .hv-photo img { aspect-ratio: 3 / 2; object-position: 32% center; }
  .home-v2 .hv-text { padding: 2.2rem 7% 2.4rem; }
}

/* Foto de "Nuestra historia" (vertical): se ven las láminas y las manos de la nena */
.split-photo-historia img { object-position: center 25%; }
@media (max-width: 900px) {
  .split-photo-historia img { height: auto; min-height: 0; aspect-ratio: 4 / 5; object-position: center 20%; }
}

/* ═══ Menú: Tienda (carrito) → Tiendanube ═══ */
.nav-links > li.nav-shop > a {
  gap: 0.5rem; padding: 0.45rem 1.1rem 0.45rem 0.9rem;
  border: 2px solid var(--text); border-radius: 50px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links > li.nav-shop > a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.nav-links > li.nav-shop > a:focus-visible { outline: 3px solid var(--section); outline-offset: 3px; }
.nav-shop .cart-ic { width: 30px; height: 30px; flex: 0 0 auto; }
/* Los menús desplegables de "Consultas" ya no son el último ítem */
@media (min-width: 901px) {
  .nav-links > li:nth-last-child(2) .dropdown { left: auto; right: 0; transform: translateY(6px); min-width: 250px; }
  .nav-links > li:nth-last-child(2).has-dropdown:hover .dropdown { transform: translateY(0); }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links { gap: 1.8rem; }
  .nav-links > li > a { font-size: 1.15rem; }
}
@media (max-width: 900px) {
  /* En el celular, la Tienda va arriba a la derecha, a la altura del logo */
  .nav-links > li.nav-shop { position: absolute; top: 0.7rem; right: 5%; height: 86px; display: flex; align-items: center; }
  .nav-links > li.nav-shop > a { font-size: 0.95rem; padding: 0.45rem 0.95rem 0.45rem 0.75rem; border-width: 2px; gap: 0.4rem; }
  .nav-shop .cart-ic { width: 24px; height: 24px; }
}
