/* =========================================================
   Little Bright Steps — Hoja de estilos
   Paleta oficial: azul cielo + teal petróleo + amarillo dorado
   Tipografías de marca: Riffic (display) + Nexa (texto)
   ========================================================= */

/* ---------- Fuentes de marca (locales) ---------- */
@font-face {
  font-family: "Riffic";
  src: url("riffic/RifficFree-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("NexaLight/Nexa Light.otf") format("opentype");
  font-weight: 300 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("NexaLight/Nexa Bold.otf") format("opentype");
  font-weight: 600 800; font-style: normal; font-display: swap;
}

:root {
  --sky:    #84C7DB;   /* azul cielo del wordmark */
  --sky-2:  #B6E0EC;   /* azul cielo claro (tintes) */
  --sky-d:  #4FA6C2;   /* azul más profundo (hover, enlaces) */
  --teal:   #2F6576;   /* teal petróleo (siluetas) */
  --teal-d: #234E5C;   /* teal oscuro (texto, secciones oscuras) */
  --gold:   #F2C63D;   /* amarillo dorado (estrellas) */
  --gold-d: #E0B02A;

  --ink: #1F3D47;
  --ink-soft: #3F5A65;
  --cream: #FBF9F4;
  --warm: #FCF4E3;     /* tinte cálido suave */
  --tint: #EDF8FB;     /* tinte azul suave */
  --white: #ffffff;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --shadow-sm: 0 4px 16px rgba(35, 78, 92, .07);
  --shadow: 0 16px 40px rgba(35, 78, 92, .11);
  --shadow-lg: 0 28px 60px rgba(35, 78, 92, .16);
  --ring: 0 0 0 4px rgba(132, 199, 219, .45);

  --font-display: "Riffic", "Fredoka", system-ui, sans-serif;
  --font-head: "Nexa", system-ui, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.16; color: var(--teal-d); margin: 0 0 .5em; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .4px; }   /* Riffic en los títulos */
h4 { font-family: var(--font-head); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); line-height: 1.14; }
h3 { font-size: 1.18rem; line-height: 1.3; }
p  { margin: 0 0 1rem; }
a  { color: var(--sky-d); text-decoration: none; }
strong { font-weight: 700; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .2px;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center; line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn-sm { padding: .6em 1.15em; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gold); color: var(--teal-d); box-shadow: 0 8px 22px rgba(242, 198, 61, .4); }
.btn-primary:hover { background: var(--gold-d); box-shadow: 0 12px 28px rgba(242, 198, 61, .5); }
.btn-secondary { background: var(--sky); color: var(--teal-d); box-shadow: 0 8px 20px rgba(132, 199, 219, .4); }
.btn-secondary:hover { background: var(--sky-d); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); }
.btn-ghost { background: transparent; color: var(--teal-d); border-color: rgba(47, 101, 118, .25); }
.btn-ghost:hover { border-color: var(--sky-d); background: var(--tint); }

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); background: var(--sky-2);
  padding: .42em 1em; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow-light { color: var(--teal-d); background: rgba(255,255,255,.85); }
.section-head { text-align: center; max-width: 730px; margin: 0 auto 3rem; }
.section-sub { color: var(--ink-soft); font-size: 1.12rem; }

/* ---------- Estrella decorativa de marca ---------- */
.star { color: var(--gold); display: inline-block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 244, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 78, 92, .07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { display: grid; place-items: center; }
.brand-text { line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.58rem; display: block; color: var(--sky-d); letter-spacing: .3px; }
.brand-text strong b { color: var(--teal); font-weight: 700; }
.brand-text em { font-style: normal; font-size: .82rem; color: var(--teal); letter-spacing: .28em; text-transform: lowercase; font-family: var(--font-head); }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--teal-d); font-weight: 700; font-size: .95rem; padding: .5em .8em; border-radius: 999px; transition: background .15s, color .15s; font-family: var(--font-head); }
.nav-list a:not(.btn):hover { background: var(--tint); color: var(--sky-d); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; background: var(--teal-d); border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4rem 0 0; background: linear-gradient(180deg, var(--cream) 0%, var(--tint) 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; position: relative; z-index: 2; padding-bottom: 5rem; }
.hero h1 { margin-bottom: .35em; color: var(--teal-d); }
.hero .hl { color: var(--sky-d); position: relative; white-space: nowrap; }
.hero .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; background: rgba(242, 198, 61, .55); border-radius: 6px; z-index: -1; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 1.5rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 0; margin: 0; font-weight: 700; color: var(--teal); font-size: .92rem; }
.hero-trust li { display: flex; align-items: center; gap: .45rem; }
.hero-trust svg { color: var(--gold); flex-shrink: 0; }

.hero-art { display: grid; place-items: center; }
.hero-svg { width: min(460px, 92%); filter: drop-shadow(0 22px 38px rgba(35,78,92,.16)); }
.star-twinkle { transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.star-twinkle.s2 { animation-delay: .8s; } .star-twinkle.s3 { animation-delay: 1.6s; }
.kid-reach { animation: sway 5s ease-in-out infinite; transform-origin: bottom center; }

.hero-blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .45; }
.blob-1 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(132,199,219,.55), transparent 70%); top: -50px; right: 8%; }
.blob-2 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(242,198,61,.4), transparent 70%); bottom: 8%; left: -40px; }
.blob-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(47,101,118,.22), transparent 70%); top: 32%; left: 40%; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 66px; }

/* ---------- Strip de pilares ---------- */
.strip { background: #fff; padding: 1.6rem 0; border-bottom: 1px solid rgba(35,78,92,.05); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip-item { display: flex; align-items: center; justify-content: center; gap: .65rem; font-weight: 700; color: var(--teal-d); font-family: var(--font-head); text-align: center; }
.strip-item svg { color: var(--sky-d); flex-shrink: 0; }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section-tint { background: var(--tint); }
.section-warm { background: var(--warm); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
.col-copy .btn { margin-top: .6rem; }

.art-card { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.art-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* Foto del hero */
.hero-photo { position: relative; width: min(420px, 92%); margin: 0 auto; }
.hero-photo > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.hero-photo .hp-star { position: absolute; top: -16px; right: -8px; color: var(--gold); filter: drop-shadow(0 6px 10px rgba(224,176,42,.4)); animation: twinkle 3.2s ease-in-out infinite; }
.hero-photo .hp-badge { position: absolute; left: -10px; bottom: 28px; background: #fff; color: var(--teal-d); font-family: var(--font-head); font-weight: 700; font-size: .88rem; padding: .6em 1em; border-radius: 999px; box-shadow: var(--shadow); display: flex; align-items: center; gap: .5em; }
.hero-photo .hp-badge svg { color: var(--gold); }

/* Galería: nuestro espacio */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; background: var(--sky-2); }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 1.7rem .95rem .85rem; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .92rem; background: linear-gradient(transparent, rgba(15,58,70,.82)); }

/* ---------- Grids / features ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature { background: #fff; border-radius: var(--radius-lg); padding: 1.9rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; margin-bottom: 1rem; color: var(--c, var(--teal)); background: color-mix(in srgb, var(--c, var(--teal)) 14%, white); }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

.card-service { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(35,78,92,.05); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.card-service::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--c, var(--sky)); opacity: 0; transition: opacity .2s; }
.card-service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-service:hover::before { opacity: 1; }
.cs-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.cs-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; flex-shrink: 0; color: var(--c, var(--sky)); background: color-mix(in srgb, var(--c, var(--sky)) 14%, white); }
.cs-tag { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.card-service h3 { margin: 0 0 .4em; }
.card-service p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.card-service .meta { margin-top: .9rem; font-size: .85rem; color: var(--teal); font-weight: 700; }

/* ---------- Fundadora ---------- */
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; background: #fff; border-radius: var(--radius-xl); padding: 2.4rem; box-shadow: var(--shadow); }
.founder-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-sm); background: var(--sky-2); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-family: var(--font-display); color: var(--teal-d); font-size: 1.7rem; margin: .2em 0 .1em; }
.founder-role { color: var(--sky-d); font-weight: 700; font-family: var(--font-head); margin-bottom: 1rem; }
.founder ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.founder li { display: flex; gap: .6rem; color: var(--ink-soft); font-size: .98rem; }
.founder li svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* Equipo (dos o más integrantes) */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; max-width: 860px; margin: 0 auto; }
.team-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 4/5; background: var(--sky-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.team-body { padding: 1.5rem 1.7rem 1.9rem; }
.team-name { font-family: var(--font-display); color: var(--teal-d); font-size: 1.42rem; margin: 0 0 .12em; line-height: 1.1; }
.team-role { color: var(--sky-d); font-weight: 700; font-family: var(--font-head); margin: 0 0 .9rem; font-size: .93rem; }
.team-bio { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- Sección oscura (resultados) ---------- */
.section-dark { background: linear-gradient(135deg, var(--teal-d) 0%, var(--teal) 100%); color: #fff; position: relative; overflow: hidden; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--teal-d); background: var(--sky-2); }
.muted-light { color: rgba(255,255,255,.82); font-size: 1.12rem; }
.results-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; padding: 0; margin: 0; }
.results-list li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 1rem 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .75rem; transition: background .2s, transform .2s; font-family: var(--font-head); }
.results-list li:hover { background: rgba(255,255,255,.14); transform: translateX(4px); }
.results-list svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Proceso ---------- */
.steps-line { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.steps-line li { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem 1.2rem 1.5rem; box-shadow: var(--shadow-sm); text-align: center; position: relative; }
.steps-line h3 { font-size: 1.06rem; margin-bottom: .3em; }
.steps-line p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.step-n { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--sky); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(132,199,219,.5); }
.steps-line li:nth-child(2) .step-n { background: var(--gold); color: var(--teal-d); box-shadow: 0 8px 18px rgba(242,198,61,.5); }
.steps-line li:nth-child(3) .step-n { background: var(--teal); box-shadow: 0 8px 18px rgba(47,101,118,.4); }
.steps-line li:nth-child(4) .step-n { background: var(--sky-d); box-shadow: 0 8px 18px rgba(79,166,194,.45); }
.steps-line li:nth-child(5) .step-n { background: var(--gold-d); color: var(--teal-d); box-shadow: 0 8px 18px rgba(224,176,42,.45); }

/* ---------- Juego de memoria ---------- */
.game { background: #fff; border-radius: var(--radius-xl); padding: 1.7rem; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; position: relative; }
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.game-stats { display: flex; flex-wrap: wrap; gap: 1.1rem; font-weight: 700; color: var(--ink-soft); font-size: .92rem; font-family: var(--font-head); }
.game-stats strong { color: var(--teal-d); }
.game-actions { display: flex; align-items: center; gap: .8rem; }
.game-level { font-size: .88rem; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: .4rem; font-family: var(--font-head); }
select, .contact-form input, .contact-form textarea, .chat-config input, .chat-config select { font-family: var(--font-body); font-size: .95rem; padding: .55em .7em; border-radius: 12px; border: 2px solid rgba(35,78,92,.14); background: #fff; color: var(--ink); }
select:focus { outline: none; border-color: var(--sky); }

.game-board { display: grid; gap: .7rem; }
.game-board[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.game-board[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.game-board[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }

.gcard { aspect-ratio: 1; border: 0; padding: 0; background: transparent; cursor: pointer; perspective: 700px; position: relative; display: block; }
.gcard-inner { position: absolute; inset: 0; transition: transform .4s; transform-style: preserve-3d; }
.gcard.flipped .gcard-inner, .gcard.matched .gcard-inner { transform: rotateY(180deg); }
.gcard-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 15px; backface-visibility: hidden; font-size: clamp(1.6rem, 6vw, 2.4rem); }
.gcard-front { background: linear-gradient(135deg, var(--sky), var(--teal)); color: #fff; }
.gcard-back { background: var(--warm); transform: rotateY(180deg); border: 3px solid #fff; box-shadow: inset 0 0 0 2px rgba(242,198,61,.35); }
.gcard.matched .gcard-back { background: color-mix(in srgb, var(--sky) 28%, white); animation: matched .5s ease; }
.gcard:disabled { cursor: default; }
.gcard:focus-visible { outline: none; border-radius: 15px; box-shadow: var(--ring); }

.game-win { position: absolute; inset: 0; background: rgba(251,249,244,.94); backdrop-filter: blur(4px); display: grid; place-items: center; border-radius: var(--radius-xl); z-index: 5; }
.game-win-card { text-align: center; padding: 2rem; animation: pop .5s ease; }
.win-star { color: var(--gold); animation: twinkle 2.4s ease-in-out infinite; }
.game-win h3 { margin: .6rem 0 .3rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(35,78,92,.06); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.4rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--teal-d); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--sky-d); transition: transform .2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); margin: 0; }

/* ---------- CTA / Contacto ---------- */
.section-cta { background: linear-gradient(180deg, var(--warm) 0%, var(--cream) 100%); }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ci { width: 46px; height: 46px; display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); flex-shrink: 0; color: var(--sky-d); }
.contact-list strong { display: block; font-family: var(--font-head); font-weight: 700; color: var(--teal-d); }
.contact-list a, .contact-list span { color: var(--ink-soft); }
.contact-list a:hover { color: var(--sky-d); }

.contact-form { background: #fff; border-radius: var(--radius-xl); padding: 2.2rem; box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 1.1rem; }
.contact-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; color: var(--teal-d); font-family: var(--font-head); }
.contact-form input, .contact-form textarea { width: 100%; margin-top: .35rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--sky); box-shadow: var(--ring); }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: .6rem 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-d); color: rgba(255,255,255,.82); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.8rem; padding: 3.2rem 24px 2rem; }
.footer-brand { max-width: 320px; }
.footer-brand .wm { font-family: var(--font-display); font-size: 1.5rem; color: var(--sky); letter-spacing: .3px; }
.footer-brand .wm b { color: #fff; }
.footer-brand em { font-style: normal; font-size: .68rem; letter-spacing: .28em; color: var(--sky-2); display: block; font-family: var(--font-head); }
.footer-brand p { margin: .8rem 0 0; font-size: .92rem; }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.78); font-size: .92rem; margin-bottom: .5rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .82rem; text-align: center; }
.footer-bottom p { margin: 0; }
.footer-bottom .tag { color: var(--gold); }

/* =========================================================
   CHAT — Pasito
   ========================================================= */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 200; }
.chat-fab { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--sky), var(--teal)); box-shadow: 0 12px 30px rgba(47,101,118,.45); display: grid; place-items: center; transition: transform .2s; animation: fab-in .4s ease both; }
/* Pulso suave del FAB cuando hay preguntas teaser visibles */
.chat-fab.pulsing::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--gold); opacity: 0; animation: fabPulse 2.6s ease-in-out infinite; z-index: -1; }
@keyframes fabPulse {
  0%, 100% { transform: scale(.95); opacity: 0; }
  50% { transform: scale(1.25); opacity: .45; }
}

/* Burbuja con pregunta de ejemplo que invita a interactuar */
.chat-prompt { position: fixed; right: 100px; bottom: 36px; max-width: 250px; z-index: 199; background: #fff; color: var(--teal-d); padding: .72rem .95rem .72rem 1rem; padding-right: 2rem; border-radius: 16px; box-shadow: 0 10px 28px rgba(35,78,92,.2); font-family: var(--font-head); font-weight: 700; font-size: .9rem; line-height: 1.32; cursor: pointer; transform-origin: 95% 80%; animation: chatPromptIn .38s cubic-bezier(.34,1.56,.64,1) both; user-select: none; }
.chat-prompt::after { content: ""; position: absolute; right: -7px; bottom: 18px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 2px; box-shadow: 4px 4px 8px rgba(35,78,92,.06); }
.chat-prompt .cp-eye { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-d); margin-bottom: .25rem; }
.chat-prompt .cp-close { position: absolute; top: 3px; right: 4px; width: 22px; height: 22px; border: 0; background: transparent; color: var(--ink-soft); font-size: 1rem; line-height: 1; cursor: pointer; border-radius: 50%; display: grid; place-items: center; padding: 0; transition: background .15s; }
.chat-prompt .cp-close:hover { background: rgba(35,78,92,.1); }
.chat-prompt.leaving { animation: chatPromptOut .28s ease both; pointer-events: none; }
@keyframes chatPromptIn { from { opacity: 0; transform: scale(.8) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes chatPromptOut { to { opacity: 0; transform: scale(.85) translateX(12px); } }
@media (max-width: 420px) { .chat-prompt { max-width: 180px; right: 86px; bottom: 28px; font-size: .82rem; padding: .6rem .8rem .6rem .85rem; padding-right: 1.8rem; } }
.chat-fab:hover { transform: scale(1.07); }
.chat-fab:focus-visible { outline: none; box-shadow: var(--ring), 0 12px 30px rgba(47,101,118,.45); }
.fab-badge { position: absolute; top: -2px; right: -2px; background: var(--gold); color: var(--teal-d); font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; font-family: var(--font-head); }

.chat-panel { position: absolute; right: 0; bottom: 80px; width: min(380px, calc(100vw - 36px)); height: min(580px, calc(100vh - 130px)); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: panel-in .25s ease both; }
/* El atributo hidden debe ganar al display:flex/grid (de lo contrario el panel y el cartel de victoria se ven desde el inicio) */
.chat-panel[hidden], .game-win[hidden] { display: none; }

.chat-head { background: linear-gradient(135deg, var(--teal), var(--teal-d)); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.chat-head-id { display: flex; align-items: center; gap: .7rem; }
.chat-avatar { width: 42px; height: 42px; background: rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; color: var(--gold); }
.chat-head-id strong { font-family: var(--font-head); font-weight: 700; display: block; line-height: 1.15; }
.chat-head-id small { font-size: .75rem; opacity: .9; }
.chat-head-actions { display: flex; gap: .2rem; }
.icon-btn { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1rem; transition: background .15s; }
.icon-btn:hover { background: rgba(255,255,255,.3); }
/* Boton de configuracion oculto para usuarios finales (es uso interno). */
#chat-settings-btn { display: none; }

.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; background: var(--cream); }
.msg { max-width: 85%; padding: .7rem .95rem; border-radius: 15px; font-size: .94rem; line-height: 1.55; animation: msg-in .25s ease both; }
.msg.bot { background: #fff; color: var(--ink); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); align-self: flex-start; }
.msg.user { background: var(--sky); color: var(--teal-d); border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 700; }
.msg.bot strong { color: var(--teal); }
.msg.bot a { color: var(--sky-d); font-weight: 700; text-decoration: underline; }
.msg-typing { display: flex; gap: 4px; padding: .9rem 1rem; }
.msg-typing span { width: 8px; height: 8px; background: var(--sky); border-radius: 50%; animation: blink 1.2s infinite; }
.msg-typing span:nth-child(2){ animation-delay: .2s } .msg-typing span:nth-child(3){ animation-delay: .4s }

.chat-suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1.1rem; background: var(--cream); border-top: 1px solid rgba(35,78,92,.06); }
.chip { background: #fff; border: 1.5px solid var(--sky-2); color: var(--teal); font-family: var(--font-head); font-weight: 700; font-size: .8rem; padding: .42em .85em; border-radius: 999px; cursor: pointer; transition: background .15s, transform .15s; }
.chip:hover { background: var(--tint); transform: translateY(-1px); }

.chat-input { display: flex; gap: .5rem; padding: .8rem; background: #fff; border-top: 1px solid rgba(35,78,92,.08); }
.chat-input input { flex: 1; border: 2px solid rgba(35,78,92,.14); border-radius: 999px; padding: .65em 1em; font-family: var(--font-body); font-size: .94rem; }
.chat-input input:focus { outline: none; border-color: var(--sky); }
.chat-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background .15s, transform .15s; }
.chat-send:hover { background: var(--teal-d); transform: scale(1.05); }

.chat-config { position: absolute; inset: 0; background: #fff; z-index: 10; padding: 1.2rem; overflow-y: auto; animation: msg-in .2s ease; }
.chat-config h4 { margin: 0 0 .6rem; font-size: 1.08rem; }
.config-hint { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.chat-config label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .9rem; color: var(--teal-d); font-family: var(--font-head); }
.chat-config input, .chat-config select { width: 100%; margin-top: .3rem; }
.config-warn { font-size: .78rem; color: #8a4b1d; background: #fbf0e3; padding: .6rem .7rem; border-radius: 10px; margin: .3rem 0 0; }
.config-actions { display: flex; gap: .6rem; margin-top: 1rem; }

/* =========================================================
   SUBPÁGINAS (Nosotros, Programas)
   ========================================================= */
.nav-list a[aria-current="page"] { color: var(--sky-d); background: var(--tint); }

.page-hero { background: linear-gradient(180deg, var(--cream) 0%, var(--tint) 100%); padding: 3.6rem 0 3.2rem; text-align: center; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 { color: var(--teal-d); }
.page-hero .lead { margin: .5rem auto 0; }
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1rem; letter-spacing: .02em; }
.breadcrumb a { color: var(--sky-d); font-weight: 700; }
.ph-star { position: absolute; color: var(--gold); opacity: .55; animation: twinkle 3.4s ease-in-out infinite; }
.ph-star.a { top: 20%; left: 11%; } .ph-star.b { bottom: 24%; right: 13%; animation-delay: 1s; } .ph-star.c { top: 34%; right: 24%; animation-delay: 2s; }

/* Bloque de programa */
.program { display: grid; grid-template-columns: .92fr 1.08fr; gap: 2.6rem; align-items: center; padding: 3rem 0; border-top: 1px solid rgba(35,78,92,.09); }
.program:first-of-type { border-top: 0; }
.program-tile { border-radius: var(--radius-xl); padding: 2.3rem; color: #fff; background: linear-gradient(150deg, var(--teal), var(--teal-d)); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.1rem; min-height: 230px; }
.program-tile .pt-ic { width: 60px; height: 60px; border-radius: 17px; background: var(--c, var(--gold)); color: var(--teal-d); display: grid; place-items: center; }
.program-tile .pt-tag { font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; opacity: .9; }
.program-tile h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.program-tile .pt-meta { margin-top: auto; font-size: .88rem; opacity: .95; background: rgba(255,255,255,.15); padding: .65rem .85rem; border-radius: 12px; }
.program-content > p { color: var(--ink-soft); }
.program-content h3 { font-size: 1.02rem; color: var(--teal-d); margin: 1.2rem 0 .5rem; }
.program-content ul { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .5rem; }
.program-content li { display: flex; gap: .6rem; color: var(--ink-soft); font-size: .97rem; }
.program-content li svg { color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.program.alt .program-tile { order: 2; }

/* Programa detallado (info completa) */
.prog { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); border: 1px solid rgba(35,78,92,.06); overflow: hidden; margin-bottom: 2.2rem; }
.prog-head { display: flex; align-items: center; gap: 1.1rem; padding: 1.7rem 2rem; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-d)); }
.prog-head .ph-ic { width: 58px; height: 58px; border-radius: 16px; background: var(--c, var(--gold)); color: var(--teal-d); display: grid; place-items: center; flex-shrink: 0; }
.prog-head .pt-tag { display: block; font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .73rem; opacity: .9; margin-bottom: .15rem; }
.prog-head h2 { color: #fff; margin: 0; font-size: 1.42rem; }
.prog-body { padding: 1.8rem 2rem 2rem; }
.prog-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.prog-facts span { background: var(--tint); color: var(--teal); font-weight: 700; font-size: .82rem; padding: .42em .9em; border-radius: 999px; display: flex; align-items: center; gap: .4rem; }
.prog-facts svg { color: var(--sky-d); }
.prog-lead { color: var(--ink-soft); font-size: 1.04rem; margin-bottom: 1.7rem; }
.prog-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1.6rem 2.2rem; }
.prog-col h3 { font-size: .97rem; color: var(--teal-d); margin: 0 0 .7rem; }
.prog-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.prog-col li { display: flex; gap: .55rem; color: var(--ink-soft); font-size: .97rem; line-height: 1.55; font-weight: 450; }
.prog-col h3 { font-weight: 700; }
.prog-lead { font-weight: 450; }
.prog-col li svg { color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.prog-obj { margin-top: 1.7rem; padding: 1.1rem 1.3rem; background: var(--warm); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--teal-d); font-size: .97rem; }
.prog-foot { margin-top: 1.6rem; }

/* Grid de "Otros programas" (al final de cada pagina individual) */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related-card { background: #fff; border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(35,78,92,.06); display: flex; flex-direction: column; gap: .4rem; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-tag { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.related-h { font-family: var(--font-display); color: var(--teal-d); font-size: 1.04rem; line-height: 1.2; }

/* Banda CTA */
.cta-band-wrap { padding: 4.5rem 0; }
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-d)); color: #fff; text-align: center; border-radius: var(--radius-xl); padding: 3.2rem 2rem; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 38em; margin: 0 auto 1.4rem; }

/* =========================================================
   Formulario de inscripción
   ========================================================= */
.intake-form { max-width: 940px; margin: 0 auto; display: grid; gap: 1.6rem; }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.9rem 2rem 2.1rem; border: 1px solid rgba(35,78,92,.06); }
.form-card > h3 { font-family: var(--font-display); color: var(--teal-d); font-size: 1.45rem; margin: 0 0 .25rem; line-height: 1.15; }
.form-card-sub { color: var(--ink-soft); margin: 0 0 1.4rem; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem 1.4rem; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field > .field-label, .field > label.field-label { font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--teal-d); margin-bottom: .4rem; }
.intake-form input, .intake-form select, .intake-form textarea {
  font-family: var(--font-body); font-size: .95rem; padding: .68em .8em; border-radius: 12px;
  border: 2px solid rgba(35,78,92,.14); background: #fff; color: var(--ink); width: 100%;
}
.intake-form input:focus, .intake-form select:focus, .intake-form textarea:focus { outline: none; border-color: var(--sky); box-shadow: var(--ring); }
.intake-form textarea { resize: vertical; min-height: 96px; }
.req { color: var(--sky-d); font-weight: 800; }
.choices { display: grid; gap: .55rem; margin-top: .1rem; }
.choices.inline { grid-auto-flow: column; grid-auto-columns: max-content; gap: 2rem; }
.choice { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); color: var(--ink-soft); cursor: pointer; }
.choice input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--teal); cursor: pointer; margin: 0; }
.subfields { border: 1px dashed rgba(35,78,92,.18); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.subfields legend { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--sky-d); padding: 0 .5rem; }
.form-submit { text-align: center; padding-top: .4rem; }
.form-submit .form-note { margin-top: .8rem; }

/* Tarjeta de valores (Nosotros) */
.value { background: #fff; border-radius: var(--radius-lg); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value .v-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: .9rem; color: var(--c, var(--teal)); background: color-mix(in srgb, var(--c, var(--teal)) 14%, white); }
.value h3 { margin-bottom: .3em; }
.value p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.18) rotate(8deg); opacity: .85; } }
@keyframes sway { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes matched { 0%,100% { transform: rotateY(180deg) scale(1); } 50% { transform: rotateY(180deg) scale(1.1); } }
@keyframes blink { 0%,60%,100% { opacity: .25; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-3px);} }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fab-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

/* confeti */
.confetti { position: fixed; top: -10px; width: 10px; height: 14px; z-index: 300; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 940px) {
  /* Nav: hamburguesa tambien en iPad portrait (768) */
  .nav-toggle { display: flex; z-index: 30; }
  .nav-list {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1rem; gap: .2rem; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease; border-bottom: 1px solid rgba(35,78,92,.08);
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { padding: .8em 1em; }
  .nav-list .btn { margin-top: .4rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-line { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 4rem; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .hero-cta, .hero-trust { justify-content: center; }
  .lead { margin-inline: auto; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .col-art { order: 2; }
  .results-list { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 1.8rem; text-align: center; }
  .founder-photo { max-width: 260px; margin: 0 auto; }
  .founder ul { text-align: left; }
  .program { grid-template-columns: 1fr; gap: 1.6rem; }
  .program.alt .program-tile { order: 0; }
}

@media (max-width: 760px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .section { padding: 4rem 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .steps-line { grid-template-columns: 1fr; gap: 1.6rem; }
  .game-bar { flex-direction: column; align-items: stretch; }
  .gallery { grid-template-columns: 1fr; }
  .prog-head { padding: 1.3rem; } .prog-body { padding: 1.4rem 1.3rem 1.7rem; }
  .team { grid-template-columns: 1fr; gap: 1.4rem; max-width: 420px; }
  .team-photo { aspect-ratio: 1/1; }
  .team-body { padding: 1.2rem 1.3rem 1.5rem; }
  .team-name { font-size: 1.28rem; }
  .team-role { font-size: .88rem; margin-bottom: .7rem; }
  .team-bio { font-size: .92rem; line-height: 1.55; }
  .form-grid { grid-template-columns: 1fr; gap: 1rem; }
  .form-card { padding: 1.5rem 1.3rem 1.7rem; }
  .choices.inline { gap: 1.4rem; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .chat { right: 14px; bottom: 14px; }
}

/* ---------- Accesibilidad: reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}
