/* =========================================================
   ASTROLUME — v2
   Paleta tomada del logo (índigo) y de las series (gris papel)
   ========================================================= */
:root {
    --ink: #07070d;
    --ink-2: #0d0d17;
    --surface: #12121e;
    --surface-2: #181827;
    --line: rgba(236, 235, 230, 0.09);
    --line-strong: rgba(236, 235, 230, 0.18);
    --paper: #ecebe6;
    --muted: #9b9aa6;
    --faint: #6c6b78;
    --indigo: #4b32e0;
    --indigo-soft: #7c6cf2;
    --indigo-glow: rgba(75, 50, 224, 0.35);

    --font-display: 'Anton', 'Impact', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius: 14px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 72px;
}

/* La web es oscura por diseño; se mantiene igual en ambos temas */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { color-scheme: dark; }
}
:root[data-theme="dark"] { color-scheme: dark; }

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; border-radius: 6px; }

#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Escala de texto: títulos de sección (Anton) · entradilla 1rem · títulos de tarjeta 1.1rem · texto de tarjeta 0.93rem · etiquetas mono 0.68–0.78rem */

/* ---------- BOTONES ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: #5a43ea; box-shadow: 0 10px 30px var(--indigo-glow); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }

/* ---------- HEADER ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 0 var(--gutter);
    background: rgba(7, 7, 13, 0.55);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { background: rgba(7, 7, 13, 0.88); border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.brand-word { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.08em; }
.brand-word span { color: var(--indigo-soft); }

.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 0.9rem; color: var(--muted); transition: color .2s; }
.site-nav a:hover, .site-nav a.is-current { color: var(--paper); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
    background: none; border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 7px 12px; cursor: pointer; font-family: var(--font-mono); font-size: 0.75rem;
}
.lang-toggle span { color: var(--faint); transition: color .2s; }
.lang-toggle span.is-active { color: var(--paper); }
.lang-toggle .sep { margin: 0 4px; }

.menu-toggle { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--paper); transition: transform .25s ease, top .25s ease; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 22px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo-soft); box-shadow: 0 0 12px var(--indigo-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.display {
    font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
    font-size: clamp(3.2rem, 8.4vw, 7rem); line-height: 0.95; letter-spacing: 0.005em;
    margin: 22px 0 26px;
}
.display .accent { color: var(--muted); }
.display-md { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 10px 0 24px; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 48px; border-top: 1px solid var(--line); }
.hero-facts > .fact { padding: 18px 20px 0 0; margin-right: 20px; }
.hero-facts > .fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-facts > .fact:last-child { margin-right: 0; padding-right: 0; }
.fact-n { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.fact-l { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* Visual: parche de misión con órbitas */
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }
.patch {
    position: absolute; inset: 27%; border-radius: 50%; overflow: hidden;
    box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 10px rgba(236,235,230,0.03), 0 30px 80px var(--indigo-glow);
}
.patch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.orbit-1 { inset: 14%; animation: spin 28s linear infinite; }
.orbit-2 { inset: 3%; border-style: dashed; border-color: var(--line); animation: spin 46s linear infinite reverse; }
.orbit-3 { inset: -8%; border-color: rgba(236,235,230,0.05); }
.sat { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 16px var(--paper); }
.sat-alt { top: auto; bottom: 12%; left: 6%; width: 7px; height: 7px; background: var(--indigo-soft); box-shadow: 0 0 14px var(--indigo-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 1px solid var(--line-strong); border-radius: 12px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--paper); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- SECCIONES ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(13,13,23,0.85), rgba(13,13,23,0.95)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { position: relative; max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--indigo-soft); }
.kicker { display: inline-block; margin-left: 10px; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; margin-top: 14px; }
.section-sub { color: var(--muted); margin-top: 18px; max-width: 640px; }

/* Misión */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.mission-statement { font-size: 1rem; line-height: 1.65; color: var(--muted); max-width: 520px; }
.mission-statement strong { display: block; margin-bottom: 12px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.3; font-weight: 600; color: var(--paper); text-wrap: balance; }
.pillars { list-style: none; border-top: 1px solid var(--line); }
.pillars li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pillars i { color: var(--indigo-soft); font-size: 1.1rem; margin-top: 5px; width: 22px; }
.pillars h3 { font-size: 1.1rem; font-weight: 600; }
.pillars p { color: var(--muted); font-size: 0.93rem; }

/* Formatos */
.formats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.format-card { background: var(--ink-2); padding: 30px 26px 26px; text-decoration: none; display: flex; flex-direction: column; min-height: 300px; transition: background .25s ease; }
.format-card:hover { background: var(--surface); }
.format-tag { color: var(--faint); text-transform: uppercase; }
.format-icon { font-size: 1.5rem; color: var(--indigo-soft); margin: 28px 0 18px; }
.format-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.format-card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.format-link { margin-top: 22px; font-size: 0.88rem; font-weight: 600; color: var(--paper); opacity: .7; transition: opacity .2s, transform .2s; }
.format-card:hover .format-link { opacity: 1; transform: translateX(4px); }

/* Series */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); gap: 20px; }
.series-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: transform .3s ease, border-color .3s ease; }
.series-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.series-card .stack { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.series-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.series-card:hover img { transform: scale(1.03); }
.series-meta { display: grid; gap: 4px; padding: 14px 16px; border-top: 1px solid var(--line); }
.series-meta h3 { font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.series-meta .mono { color: var(--muted); white-space: nowrap; }

/* Blog */
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 32px; }
.tab { background: none; border: 0; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 0.9rem; color: var(--muted); transition: background .2s, color .2s; }
.tab.is-active { background: var(--paper); color: var(--ink); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .25s, transform .25s; }
.post:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; flex: 1; }
.post-body h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.38; text-wrap: balance; }
.post-body .mono { color: var(--faint); }

/* Portadas ilustradas: papel (nuestro contenido) y tinta (selección externa) */
.cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.cover svg { width: 58%; max-height: 74%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s ease; }
.post:hover .cover svg { transform: scale(1.04); }
.cover .hl { stroke: var(--indigo); stroke-width: 2.2; }
.cover-tag { position: absolute; top: 14px; left: 16px; text-transform: uppercase; letter-spacing: .1em; font-size: 0.68rem; }
.cover-paper { background: var(--paper); color: #2f3a36; }
.cover-paper .cover-tag { color: #5c6662; }
.cover-paper::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--indigo); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.post:hover .cover-paper::after { transform: scaleX(1); }
.cover-ink { background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--line); }
.cover-ink .hl { stroke: var(--indigo-soft); }
.cover-ink .cover-tag { color: var(--faint); }

.posts-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.posts-actions [hidden] { display: none; }

/* Mentorías */
.mentor-panel { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.mentor-copy > p { font-size: 1rem; color: var(--muted); max-width: 560px; }
.steps { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.93rem; }
.steps .mono { color: var(--indigo-soft); padding-top: 3px; }
.mentor-cta { display: grid; gap: 14px; }
.cta-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-strong); text-decoration: none; background: var(--surface); transition: background .25s, border-color .25s, transform .25s; }
.cta-card .mono { grid-column: 1; color: var(--muted); text-transform: uppercase; }
.cta-card strong { grid-column: 1; font-size: 1.1rem; font-weight: 600; }
.cta-card i { grid-column: 2; grid-row: 1 / span 2; color: var(--indigo-soft); transition: transform .25s; }
.cta-card:hover { background: var(--indigo); border-color: var(--indigo); transform: translateY(-2px); }
.cta-card:hover .mono, .cta-card:hover i { color: #fff; }
.cta-card:hover i { transform: translateX(4px); }

/* En camino */
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.soon-card { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: rgba(124,108,242,0.12); color: var(--indigo-soft); }
.soon-card h3 { font-size: 1.1rem; font-weight: 600; margin: 18px 0 8px; }
.soon-card p { color: var(--muted); font-size: 0.93rem; }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; align-items: start; }
.member { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .04em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1rem; font-weight: 600; margin-top: 14px; line-height: 1.3; }
.member .role { color: var(--indigo-soft); }
.member p.bio { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
.member-more { margin-top: 12px; }
.member-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; transition: color .2s; }
.member-more summary::-webkit-details-marker { display: none; }
.member-more summary::after { content: '+'; font-size: 1rem; line-height: 1; }
.member-more[open] summary::after { content: '−'; }
.member-more summary:hover, .member-more summary:focus-visible { color: var(--paper); }

/* Únete */
.join { background: radial-gradient(ellipse 80% 70% at 85% 30%, rgba(75,50,224,0.22), transparent 60%); }
.join-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.join-list { list-style: none; display: grid; gap: 16px; }
.join-list li { display: flex; gap: 14px; color: var(--muted); }
.join-list i { color: var(--indigo-soft); width: 20px; margin-top: 5px; }
.newsletter { padding: clamp(26px, 4vw, 40px); border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(13,13,23,0.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.newsletter h3 { font-size: 1.25rem; font-weight: 600; }
.newsletter > p { color: var(--muted); margin: 10px 0 24px; }
.inline-form { display: flex; gap: 10px; }
.news-includes-title { text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: -8px 0 12px; }
.news-includes { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.news-includes li { display: flex; gap: 12px; color: var(--paper); font-size: 0.93rem; }
.news-includes i { color: var(--indigo-soft); width: 18px; margin-top: 4px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; padding: 0; accent-color: var(--indigo); }
.consent a { color: var(--paper); }
.contact-form .consent { display: flex; margin-top: 0; }
.footer-link { color: var(--muted); }
.footer-link:hover { color: var(--paper); }
.inline-form input { flex: 1; min-width: 0; }

input, textarea {
    width: 100%; padding: 13px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--line-strong);
    color: var(--paper); font: inherit; font-size: 0.95rem;
    transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus { outline: none; border-color: var(--indigo-soft); background: rgba(255,255,255,0.05); }
textarea { resize: vertical; }

.feedback { margin-top: 12px; font-size: 0.9rem; min-height: 1.4em; }
.feedback.ok { color: #8ee6c4; }
.feedback.error { color: #ff9a9a; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.section-head-left { margin-bottom: 32px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.contact-list i { color: var(--indigo-soft); width: 20px; }
.contact-list a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line-strong); word-break: break-all; }
.contact-list a:hover { border-color: var(--paper); }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--ink); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid p { color: var(--faint); font-size: 0.85rem; }
.footer-grid .footer-license { flex-basis: 100%; font-size: 0.78rem; max-width: 720px; }
.brand-footer .brand-word { font-size: 1.1rem; }
.brand-footer .brand-mark { width: 28px; height: 28px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--paper); border-color: var(--paper); }

/* Visor de series */
.viewer { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.viewer[hidden] { display: none; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(4,4,8,0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer-body { position: relative; width: min(560px, 100% - 32px); }
.viewer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); }
.viewer-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--paper); }
.viewer-stage { position: relative; }
.viewer-stage img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; background: var(--surface); }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(7,7,13,0.75); cursor: pointer; }
.viewer-nav:hover { background: var(--indigo); border-color: var(--indigo); }
.viewer-nav.prev { left: -22px; }
.viewer-nav.next { right: -22px; }
.viewer-count { text-align: center; color: var(--muted); margin-top: 12px; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
    .site-nav { gap: 20px; }
    .formats-grid { grid-template-columns: repeat(2, 1fr); }
    .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .site-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
        background: rgba(7,7,13,0.97); border-bottom: 1px solid var(--line);
        transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: opacity .25s ease, transform .25s ease;
    }
    .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }

    .hero-grid, .mission-grid, .mentor-panel, .join-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 320px; order: -1; }
    .soon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .header-actions .btn-sm { display: none; }
    .formats-grid { grid-template-columns: 1fr; }
    .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .format-card { min-height: 0; }
    .posts { grid-template-columns: 1fr; }
    .inline-form { flex-direction: column; }
    .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
    .hero-facts > .fact { padding-right: 0; margin-right: 0; }
    .hero-facts > .fact + .fact { padding-left: 14px; }
    .hero-facts { row-gap: 14px; }
    .hero-facts > .fact:nth-child(3n+1) { padding-left: 0; border-left: 0; }
    .fact-n { font-size: 1.6rem; }
    .hero-visual { max-width: 240px; }
    .scroll-cue { display: none; }
    .viewer-nav.prev { left: 6px; }
    .viewer-nav.next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* Página de privacidad */
.legal-page { padding: calc(var(--header-h) + 48px) 0 96px; }
.legal { max-width: 760px; }
.legal .h2 { margin-top: 10px; }
.legal .updated { color: var(--faint); margin-top: 14px; }
.legal-lang { display: flex; gap: 10px; margin: 28px 0 8px; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 10px; }
.legal strong { color: var(--paper); font-weight: 600; }
.legal a { color: var(--paper); }
.legal-table { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal-table th { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 500; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-divider { border: 0; border-top: 1px solid var(--line); margin: 72px 0 0; }
.legal .kicker { margin-left: 0; }
.legal-table + p { margin-top: 14px; }
.legal .legal-section { margin-top: 72px; scroll-margin-top: calc(var(--header-h) + 24px); font-size: clamp(1.5rem, 3vw, 2rem); }
.legal ol { padding-left: 1.3em; display: grid; gap: 10px; margin-top: 14px; }
.legal ol ul { margin-top: 8px; }

/* Formas de participar */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-bottom: clamp(64px, 9vw, 110px); }
.tier { display: flex; flex-direction: column; padding: 28px; background: rgba(13,13,23,0.8); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.tier-featured { border-color: var(--indigo); background: linear-gradient(180deg, rgba(75,50,224,0.16), rgba(13,13,23,0.85) 60%); }
.tier-tag { text-transform: uppercase; letter-spacing: .1em; font-size: 0.68rem; color: var(--faint); }
.tier-new { color: var(--indigo-soft); }
.tier h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; line-height: 1; margin: 14px 0 10px; }
.tier-desc { color: var(--paper); font-size: 0.93rem; }
.tier-sub { text-transform: uppercase; letter-spacing: .1em; font-size: 0.68rem; color: var(--indigo-soft); margin: 22px 0 4px; }
.tier-list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.tier-sub + .tier-list { margin-top: 8px; }
.tier-list li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.93rem; }
.tier-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--indigo-soft); }
.tier-list-check li::before { border: 0; width: auto; height: auto; top: 0; content: "✓"; color: var(--indigo-soft); font-size: 0.85rem; }
.tier-sign { margin-top: auto; padding-top: 22px; color: var(--muted); font-size: 0.82rem; }
.tier-cta { margin-top: auto; align-self: flex-start; }
.tier-list:nth-last-child(2) { margin-bottom: 26px; }
.tier-sign + .tier-cta { margin-top: 12px; }
.team-join-btn { margin-top: 28px; }
.map-body.team-join-body { width: min(720px, 100% - 32px); }
.team-join-panel { display: grid; gap: 14px; justify-items: start; }
.team-cta-note { color: var(--muted); max-width: 560px; font-size: 0.93rem; }
.team-conditions { max-width: 560px; }
.team-cta-sign { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* Embajadores dentro de Equipo */
.ambassadors { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.ambassadors-head { margin-bottom: 22px; }
.ambassadors-head h3 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.ambassadors-head p { color: var(--muted); font-size: 0.93rem; margin-top: 4px; }
.member-empty { display: block; text-decoration: none; background: transparent; border-style: dashed; border-color: var(--line-strong); transition: border-color .25s, background .25s; }
.member-empty:hover { border-color: var(--indigo-soft); background: rgba(75,50,224,0.06); }
.avatar-empty { background: transparent; border: 1.5px dashed var(--indigo-soft); color: var(--indigo-soft); font-family: var(--font-body); font-size: 1.6rem; }

/* Países de la comunidad (tarjeta Comunidad) */
.community-countries { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.community-countries li { font-size: 0.75rem; color: var(--muted); padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }

/* Cifras con mapa */
.fact-btn { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.fact-btn .fact-n { text-decoration: underline; text-decoration-color: var(--indigo-soft); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fact-map { display: block; margin-top: 4px; font-size: 0.68rem; color: var(--indigo-soft); text-transform: uppercase; letter-spacing: .08em; }
.fact-btn:hover .fact-n { color: var(--indigo-soft); }
.link-btn { background: none; border: 0; padding: 0; margin-top: 12px; color: var(--indigo-soft); cursor: pointer; text-transform: uppercase; letter-spacing: .08em; font-size: 0.7rem; align-self: flex-start; }
.link-btn:hover { color: var(--paper); }
.team-map-btn { margin-top: 22px; }

/* Ventana del mapa */
.map-body { position: relative; width: min(1100px, 100% - 32px); max-height: 92vh; overflow: auto; background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(18px, 3vw, 30px); }
.map-top { align-items: flex-start; margin-bottom: 18px; }
.map-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1; color: var(--paper); }
.map-sub { color: var(--muted); margin-top: 8px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
.map-wrap { position: relative; aspect-ratio: 2 / 1; max-width: 100%; }
.map-img, .map-lines, .map-pins { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-lines line { stroke: var(--indigo-soft); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.map-lines circle { fill: var(--indigo-soft); }

.pin { position: absolute; transform: translate(-50%, -50%); }
.pin-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--indigo-soft); padding: 0; cursor: pointer; box-shadow: 0 0 0 4px rgba(124,108,242,0.25); transition: transform .2s; }
.pin-big { width: 14px; height: 14px; }
.pin-dot.is-hot, .pin-dot:hover, .pin-dot:focus-visible { transform: translate(-50%, -50%) scale(1.5); z-index: 3; }
.pin-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; padding: 4px 9px; border-radius: 6px; background: var(--paper); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .15s; }
.pin-dot.is-hot .pin-tip, .pin-dot:hover .pin-tip, .pin-dot:focus-visible .pin-tip { opacity: 1; }

.pin-team { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .2s; }
.pin-team.is-hot { transform: translate(-50%, -50%) scale(1.12); z-index: 3; }
.pin-faces { display: flex; }
.pin-avatar { width: clamp(26px, 3.6vw, 40px); height: clamp(26px, 3.6vw, 40px); border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--indigo); color: #fff; font-family: var(--font-display); font-size: clamp(0.65rem, 1.2vw, 0.95rem); border: 2px solid var(--ink-2); box-shadow: 0 0 0 1.5px var(--indigo-soft); }
.pin-avatar + .pin-avatar { margin-left: -8px; }
.pin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pin-avatar-anon { background: var(--surface-2); box-shadow: 0 0 0 1.5px var(--line-strong); }
.pin-avatar-anon svg { width: 60%; height: 60%; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.pin-label { font-size: clamp(0.6rem, 1vw, 0.75rem); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgba(7,7,13,0.85); border: 1px solid var(--line-strong); color: var(--paper); }

.map-legend { list-style: none; display: grid; gap: 2px; max-height: 460px; overflow: auto; }
.map-legend li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border-radius: 8px; font-size: 0.85rem; color: var(--muted); cursor: default; }
.map-legend li small { display: block; font-size: 0.75rem; color: var(--faint); margin-top: 2px; }
.map-legend li.is-hot { background: var(--surface-2); color: var(--paper); }
.map-legend .mono { color: var(--indigo-soft); }
@media (max-width: 820px) { .map-layout { grid-template-columns: 1fr; } .map-legend { max-height: none; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* Oportunidades */
.jobs-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)) 1fr; gap: 14px; align-items: end; margin-bottom: 24px; }
.field { display: grid; gap: 8px; }
.field .mono { text-transform: uppercase; letter-spacing: .1em; font-size: 0.68rem; color: var(--faint); }
.field select {
    appearance: none; -webkit-appearance: none; width: 100%; padding: 11px 38px 11px 14px; border-radius: 10px;
    background: rgba(255,255,255,0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239b9aa6' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid var(--line-strong); color: var(--paper); font: inherit; font-size: 0.92rem; cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--indigo-soft); }
.field option { background: var(--ink-2); color: var(--paper); }
.jobs-count { justify-self: end; color: var(--muted); padding-bottom: 12px; }
.jobs-list { display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s; }
.job:hover { border-color: var(--line-strong); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-type, .job-level { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; }
.job-type { background: rgba(124,108,242,0.14); color: var(--indigo-soft); }
.job-type-scholarship { background: rgba(142,230,196,0.12); color: #8ee6c4; }
.job-type-training { background: rgba(236,235,230,0.08); color: var(--paper); }
.job-type-job { background: rgba(255,196,120,0.12); color: #ffc478; }
.job-level { border: 1px solid var(--line-strong); color: var(--muted); }
.job h3 { font-size: 1.1rem; font-weight: 600; margin-top: 14px; }
.job-org { color: var(--indigo-soft); font-size: 0.88rem; margin-top: 2px; }
.job-desc { color: var(--muted); font-size: 0.93rem; margin-top: 10px; }
.job-meta { display: grid; gap: 12px; align-content: start; padding-left: 24px; border-left: 1px solid var(--line); }
.job-meta dt { text-transform: uppercase; letter-spacing: .1em; font-size: 0.66rem; color: var(--faint); }
.job-meta dd { font-size: 0.9rem; color: var(--paper); margin-top: 2px; }
.job-meta .btn { justify-self: start; margin-top: 4px; }
.jobs-empty { padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.jobs-empty .link-btn { margin-top: 10px; }
.jobs-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.jobs-updated { color: var(--faint); }
.soon-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
    .jobs-filters { grid-template-columns: 1fr 1fr; }
    .jobs-count { grid-column: 1 / -1; justify-self: start; padding: 0; }
    .job { grid-template-columns: 1fr; gap: 18px; }
    .job-meta { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
    .soon-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .jobs-filters { grid-template-columns: 1fr; } }

/* ---------- Historia de la misión ---------- */
.mission-copy { display: grid; gap: 28px; align-content: start; justify-items: start; }
.mission-more i { font-size: 0.8rem; transition: transform .2s ease; }
.mission-more:hover i { transform: translateX(3px); }
.story {
    width: min(680px, 100% - 32px); max-height: 86vh; margin: auto;
    padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface); color: var(--paper); overflow: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px var(--indigo-glow);
}
.story::backdrop { background: rgba(4,4,8,0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.story[open] { animation: story-in .35s ease; }
@keyframes story-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.story-inner { position: relative; padding: clamp(28px, 5vw, 52px); }
.story-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.story-close:hover { color: var(--paper); }
.story-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.1; text-transform: uppercase; margin: 10px 0 26px; padding-right: 28px; text-wrap: balance; }
.story-text { display: grid; gap: 16px; margin-bottom: 32px; }
.story-text p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.story-text p:first-child { color: var(--paper); font-size: 1.12rem; }
.story-text { margin-bottom: 36px; }
.story-finale {
    position: relative; overflow: hidden; text-align: center;
    margin: 0 calc(-1 * clamp(28px, 5vw, 52px)) calc(-1 * clamp(28px, 5vw, 52px));
    padding: clamp(40px, 7vw, 64px) clamp(24px, 5vw, 52px);
    border-top: 1px solid var(--line-strong);
    background:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.7), transparent 60%),
        radial-gradient(1px 1px at 82% 18%, rgba(255,255,255,.6), transparent 60%),
        radial-gradient(1.5px 1.5px at 68% 78%, rgba(255,255,255,.5), transparent 60%),
        radial-gradient(1px 1px at 26% 84%, rgba(255,255,255,.5), transparent 60%),
        radial-gradient(1px 1px at 92% 58%, rgba(255,255,255,.6), transparent 60%),
        radial-gradient(1px 1px at 6% 60%, rgba(255,255,255,.4), transparent 60%),
        radial-gradient(ellipse 90% 80% at 50% 115%, var(--indigo-glow), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--ink));
}
.story-finale-lead { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 46ch; margin: 0 auto 22px; text-wrap: balance; }
.story-motto {
    font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
    font-size: clamp(2.1rem, 6.5vw, 3.4rem); line-height: 1.02; letter-spacing: 0.01em;
    color: var(--paper); text-wrap: balance; margin-bottom: 18px;
    text-shadow: 0 0 40px var(--indigo-glow);
}
.story-finale-sub { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--indigo-soft); margin-bottom: 30px; }
@media (prefers-reduced-motion: reduce) { .story[open] { animation: none; } }
.story .kicker { margin-left: 0; }

/* ---------- Versión provisional: contacto por email ---------- */
.mail-note { margin-top: 22px; color: var(--muted); line-height: 1.6; }
.mail-note a { color: var(--paper); font-weight: 600; word-break: break-all; }
.contact-mail { display: grid; gap: 14px; align-content: start; }
.contact-mail p { color: var(--muted); line-height: 1.65; }
.contact-mail .btn { justify-self: stretch; word-break: break-all; }

/* Enlace a LinkedIn en las fichas del equipo */
.member-link{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-family:var(--font-mono);font-size:12px;color:var(--indigo-soft);text-decoration:none;transition:color .2s}
.member-link:hover,.member-link:focus-visible{color:var(--paper)}
