/* CIE · vitrina básica · estilos del sitio (14-11-2026)
   Base: manual oficial de marca web v1.1 (tokens.css) para las páginas neutras y Rombo.
   La página Chispa usa su propia paleta y tipografía (Manual de Marca Educativa) y NO carga tokens.css.
   Regla de la guía: nunca mezclar la paleta o el símbolo de una línea con los de la otra en una misma página. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #1B2A4A; padding: 8px 12px; border: 2px solid #1B2A4A; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 720px); margin-inline: auto; }

/* ===== Páginas neutras y Rombo (tokens oficiales) ===== */
.t-neutral, .t-rombo { background: var(--cie-white); color: var(--cie-navy); }
.t-neutral .site-head, .t-rombo .site-head { border-bottom: 2px solid var(--cie-gold); background: var(--cie-white); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.wordmark { font-family: var(--cie-font-serif); font-weight: 700; font-size: 1.75rem; letter-spacing: .08em; text-decoration: none; color: var(--cie-navy); }
.brand-logo { display: block; width: 190px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; font-size: .95rem; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

main { display: block; }
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: var(--cie-h1); max-width: 24ch; margin: 0 0 20px; }
.lead { font-size: 1.25rem; max-width: var(--cie-measure); margin: 0 0 12px; }
.sub { color: var(--cie-slate); max-width: var(--cie-measure); }
.kicker { font: 700 .8rem var(--cie-font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cie-slate); margin: 0 0 12px; }
.section { padding: 40px 0; }
.section.alt { background: var(--cie-gray-50); }
.section h2 { margin: 0 0 16px; }
.prose p { max-width: var(--cie-measure); margin: 0 0 1.1em; }
.prose blockquote { margin: 0; padding: 0; border: 0; }
.prose blockquote p { border-left: 4px solid var(--cie-gold); padding-left: 20px; color: var(--cie-navy); }

.doors { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { display: block; text-decoration: none; padding: 28px; border: 2px solid var(--cie-navy); border-radius: var(--cie-radius); background: var(--cie-white); min-height: 200px; }
.door:hover { background: var(--cie-blue-50); }
.door h2 { font-size: 1.4rem; margin: 0 0 8px; }
.door p { margin: 0 0 16px; color: var(--cie-slate); }
.door .go { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.cta-band { background: var(--cie-blue-50); padding: 32px 0; }
.cta-band .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band p { margin: 0; font-family: var(--cie-font-serif); font-size: 1.35rem; font-weight: 700; max-width: 34ch; }

.rules { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 800px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rules li { background: var(--cie-white); border: 1px solid var(--cie-slate); border-radius: var(--cie-radius); padding: 20px; }
.rules strong { display: block; font-family: var(--cie-font-serif); font-size: 1.15rem; margin-bottom: 6px; }

.draft { background: #FEF3C7; color: #5B3A06; border: 1px solid #8A5A0B; border-radius: var(--cie-radius); padding: 12px 16px; margin: 0 0 24px; font-size: .95rem; }
.draft strong { text-transform: uppercase; letter-spacing: .06em; }

table.glos { border-collapse: collapse; width: 100%; font-size: .98rem; }
table.glos th, table.glos td { text-align: left; border-bottom: 1px solid var(--cie-blue-50); padding: 10px 12px; vertical-align: top; }
table.glos th { background: var(--cie-navy); color: #fff; }
table.glos td:first-child { font-weight: 700; white-space: nowrap; }

ul.clean { padding-left: 1.2em; max-width: var(--cie-measure); }
ul.clean li { margin-bottom: .5em; }

/* Formulario */
form.vp { display: grid; gap: 20px; max-width: 640px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--cie-slate); font-size: .9rem; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: var(--cie-target); padding: 10px 12px; font: inherit; color: var(--cie-navy);
  background: #fff; border: 2px solid var(--cie-slate); border-radius: var(--cie-radius);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--cie-navy); outline-offset: 2px; }
.fallback { background: var(--cie-gray-50); border: 1px solid var(--cie-slate); border-radius: var(--cie-radius); padding: 16px; margin-top: 24px; }
.fallback pre { white-space: pre-wrap; word-break: break-word; font: .95rem/1.5 var(--cie-font-sans); margin: 8px 0 12px; }

.site-foot { background: var(--cie-navy); color: #fff; padding: 36px 0; margin-top: 0; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { color: #fff; font-size: 1rem; margin: 0 0 8px; font-family: var(--cie-font-sans); text-transform: uppercase; letter-spacing: .08em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid #2C3E63; font-size: .85rem; color: #D5DCE8; }
.site-foot .foot-logo { width: 220px; margin-bottom: 12px; }
.foot-word { font-family: var(--cie-font-serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .08em; }

/* ===== Página Chispa (Manual de Marca Educativa: solo fondo blanco; Sora + Work Sans) ===== */
@font-face { font-family: "Sora"; src: url("../fonts/Sora/Sora-VF.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans/WorkSans-VF.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

.t-chispa {
  --ch-coral: #F2542D; --ch-teal: #0E7C7B; --ch-amber: #F0A202; --ch-magenta: #B33C86;
  --ch-ink: #1A1A1E; --ch-ink-2: #5C5C62;
  background: #FFFFFF; color: var(--ch-ink);
  font-family: "Work Sans", "Century Gothic", Arial, sans-serif; font-size: 1.0625rem; line-height: 1.6;
}
.t-chispa h1, .t-chispa h2, .t-chispa h3 { font-family: "Sora", "Century Gothic", Futura, Arial, sans-serif; font-weight: 800; color: var(--ch-ink); line-height: 1.15; }
.t-chispa .bar { height: 6px; background: linear-gradient(90deg, var(--ch-coral) 0 25%, var(--ch-teal) 25% 50%, var(--ch-amber) 50% 75%, var(--ch-magenta) 75% 100%); }
.t-chispa .site-head { background: #fff; border-bottom: 1px solid #E4E4E8; }
.t-chispa .site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-block: 8px; }
.t-chispa .brand-logo { width: 230px; }
.t-chispa .nav { font-weight: 600; }
.t-chispa .hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; margin: 0 0 20px; }
.t-chispa .lead { font-size: 1.3rem; color: var(--ch-ink); }
.t-chispa .kicker { color: var(--ch-ink-2); }
.t-chispa .msgs { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 800px) { .t-chispa .msgs { grid-template-columns: repeat(3, 1fr); } }
.t-chispa .msgs li { border: 2px solid var(--ch-ink); border-radius: 14px; padding: 22px; font-size: 1.1rem; position: relative; background: #fff; }
.t-chispa .msgs li:nth-child(1) { border-top: 8px solid var(--ch-coral); }
.t-chispa .msgs li:nth-child(2) { border-top: 8px solid var(--ch-teal); }
.t-chispa .msgs li:nth-child(3) { border-top: 8px solid var(--ch-amber); }
.t-chispa .msgs.m2 li:nth-child(1) { border-top-color: var(--ch-magenta); }
.t-chispa .msgs.m2 li:nth-child(2) { border-top-color: var(--ch-coral); }
.t-chispa .msgs.m2 li:nth-child(3) { border-top-color: var(--ch-teal); }
.t-chispa .section { padding: 36px 0; }
.t-chispa .cta-band { background: #fff; border-top: 2px solid var(--ch-ink); border-bottom: 2px solid var(--ch-ink); }
.t-chispa .cta-band p { font-family: "Sora", Arial, sans-serif; font-weight: 800; color: var(--ch-ink); }
.t-chispa .btn { background: var(--ch-ink); color: #fff; border-radius: 999px; }
.t-chispa .btn:hover { background: #000; }
.t-chispa .btn.sec { background: #fff; color: var(--ch-ink); border-color: var(--ch-ink); }
.t-chispa .site-foot { background: #fff; color: var(--ch-ink); border-top: 6px solid var(--ch-ink); }
.t-chispa .site-foot a { color: var(--ch-ink); }
.t-chispa .site-foot h2 { color: var(--ch-ink); font-family: "Work Sans", Arial, sans-serif; }
.t-chispa .site-foot .legal { border-top-color: #E4E4E8; color: var(--ch-ink-2); }
.t-chispa :focus-visible { outline: 3px solid var(--ch-ink); outline-offset: 2px; }

/* Botones (compartidos) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; font-family: inherit; text-decoration: none; cursor: pointer; border-radius: 6px; }
.t-neutral .btn, .t-rombo .btn { background: var(--cie-navy); color: #fff; }
.t-neutral .btn:hover, .t-rombo .btn:hover { background: #0F1E35; }
.t-neutral .btn.sec, .t-rombo .btn.sec { background: transparent; color: var(--cie-navy); border-color: var(--cie-navy); }
.t-neutral :focus-visible, .t-rombo :focus-visible { outline: 3px solid var(--cie-navy); outline-offset: 2px; }
.t-neutral .site-foot :focus-visible, .t-rombo .site-foot :focus-visible { outline-color: var(--cie-gold); }

.foot-word { font-family: var(--cie-font-serif); font-weight: 700; font-size: 1.8rem; letter-spacing: .08em; display: block; margin-bottom: 12px; }
.rules { counter-reset: r; }
