/* ==========================================================================
   Ideas Republicanas — hoja única del sitio
   Sistema heredado de accionrepublicana.cl (Barlow Condensed + Manrope,
   titulares en mayúsculas, hero oscuro con carrusel, accesos superpuestos).
   Paleta: SOLO los colores del logo —rojo #C1272D, azul #10368E y blanco—
   más tonos más claros u oscuros de esos mismos dos colores.
   ========================================================================== */

@font-face { font-family:'Barlow Condensed'; src:url('/assets/fonts/barlow-condensed-600-latin.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Barlow Condensed'; src:url('/assets/fonts/barlow-condensed-700-latin.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Manrope'; src:url('/assets/fonts/manrope-400-latin.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Manrope'; src:url('/assets/fonts/manrope-700-latin.woff2') format('woff2'); font-weight:700; font-display:swap; }

:root {
    /* Azul del logo y sus tonos */
    --azul:    #10368E;
    --azul-l:  #2451B8;
    --azul-d:  #0A2466;
    --azul-dd: #061840;
    --azul-s:  #EBF0FA;
    /* Rojo del logo y sus tonos */
    --rojo:    #C1272D;
    --rojo-d:  #9B1D22;
    --rojo-l:  #E5484E;   /* rojo legible sobre azul oscuro */
    --rojo-s:  #FCECED;

    --paper:  #F3F6FB;
    --line:   #E0E7F2;
    --line-2: #CBD6E8;
    --ink:    #0B1733;
    --ink-2:  #4A5875;
    --ink-3:  #7E8BA6;

    --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
    --sans:    'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --r-sm: 8px; --r: 14px; --r-lg: 22px;
    --sh:    0 12px 34px rgba(6,24,64,.10);
    --sh-lg: 0 28px 70px rgba(6,24,64,.18);
    --ease: cubic-bezier(.22,.61,.36,1);
    --t: .32s var(--ease);
    --head: 84px;
    --gut: 1.3rem;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: .95; text-transform: uppercase; letter-spacing: .005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--rojo-l); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rojo); color: #fff; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(1240px, 100% - var(--gut) * 2); margin-inline: auto; }
@media (max-width: 560px) { :root { --gut: 1rem; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--azul-d); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.empty { color: var(--ink-2); padding: 2rem; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty a { color: var(--azul); font-weight: 700; text-decoration: underline; }

/* Aparición al hacer scroll (solo con JS activo) */
.js .rev { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rev.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rev { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --- Tipografía ---------------------------------------------------------- */
.kick { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--azul); }
.kick::before { content: ''; width: 26px; height: 2px; background: var(--rojo); flex: none; }
.kick--light { color: rgba(255,255,255,.75); }
.kick--light::before { background: var(--rojo-l); }
.h2 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.3rem); color: var(--azul-d); margin-top: .7rem; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--rojo); }
.h2--light { color: #fff; }
.h2--light em { color: var(--rojo-l); }
.lead { color: var(--ink-2); font-size: 1.04rem; max-width: 62ch; margin-top: .9rem; line-height: 1.75; }

.sec { padding-block: clamp(3.4rem, 2rem + 5vw, 6.2rem); }
.sec--tight { padding-block: clamp(2.2rem, 1.6rem + 3vw, 4rem); }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--azul-dd); color: #fff; position: relative; overflow: hidden; }
.sec--dark::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 100% 0%, rgba(36,81,184,.45), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(193,39,45,.22), transparent 60%); }
.sec--dark > .wrap { position: relative; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.head-row > div:first-child { min-width: 0; flex: 1 1 420px; }

/* --- Botones ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .82rem 1.4rem; min-height: 44px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 700; font-size: .88rem; letter-spacing: .02em; line-height: 1.1; cursor: pointer; transition: transform var(--t), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t); white-space: nowrap; }
.btn .ic { width: 17px; height: 17px; }
.btn small { font-weight: 400; opacity: .7; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--azul); color: #fff; box-shadow: 0 10px 24px rgba(16,54,142,.28); }
.btn--primary:hover { background: var(--azul-l); }
.btn--red { background: var(--rojo); color: #fff; box-shadow: 0 10px 24px rgba(193,39,45,.32); }
.btn--red:hover { background: var(--rojo-d); }
.btn--white { background: #fff; color: var(--azul-d); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn--white:hover { background: var(--azul-s); }
.btn--dark { background: var(--azul-d); color: #fff; }
.btn--dark:hover { background: var(--azul); }
.btn--line { border-color: var(--line-2); color: var(--azul-d); background: #fff; }
.btn--line:hover { border-color: var(--azul); color: var(--azul); background: var(--azul-s); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn--ig { color: #fff; background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); }
.btn--lg { padding: 1rem 1.8rem; font-size: .95rem; }
.btn--sm { padding: .55rem 1rem; font-size: .8rem; min-height: 38px; }
.btn--block { width: 100%; }

/* --- Barra superior ------------------------------------------------------ */
.topbar { background: var(--azul-dd); color: rgba(255,255,255,.75); font-size: .78rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__msg { display: flex; align-items: center; gap: .5rem; }
.topbar__msg .ic { color: var(--rojo-l); width: 14px; height: 14px; }
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.topbar__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: #fff; }
.topbar__link .ic { width: 13px; height: 13px; opacity: .7; }
.topbar__link:hover { color: var(--rojo-l); }
.topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,.18); }
@media (max-width: 760px) { .topbar__msg { display: none; } .topbar__in { justify-content: center; } }

.soc { display: flex; gap: .45rem; }
.soc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: #fff; transition: var(--t); }
.soc a:hover { background: var(--rojo); border-color: var(--rojo); transform: translateY(-2px); }
.soc .ic { width: 17px; height: 17px; }
.soc--sm a { width: 30px; height: 30px; border: 0; color: rgba(255,255,255,.78); }
.soc--sm a:hover { background: rgba(255,255,255,.1); color: #fff; transform: none; }
.soc--sm .ic { width: 15px; height: 15px; }

/* --- Encabezado ---------------------------------------------------------- */
.head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow var(--t), border-color var(--t); }
.head.is-stuck { box-shadow: 0 8px 30px rgba(6,24,64,.08); border-color: var(--line); }
.head__in { display: flex; align-items: center; gap: 1.6rem; height: var(--head); transition: height var(--t); }
.head.is-stuck .head__in { height: 70px; }
.brand img { height: 54px; width: auto; transition: height var(--t); }
.head.is-stuck .brand img { height: 46px; }
.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav > a { position: relative; padding: .55rem .85rem; font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: .05em; text-transform: uppercase; color: var(--azul-d); border-radius: 8px; transition: color var(--t); }
.nav > a::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; background: var(--rojo); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.nav > a:hover { color: var(--azul); }
.nav > a:hover::after, .nav > a.is-on::after { transform: scaleX(1); }
.nav > a.is-on { color: var(--azul); }
.nav__mobile-extra { display: none; }
.head__cta { flex: none; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); background: #fff; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; }
.burger span { width: 20px; height: 2px; background: var(--azul-d); border-radius: 2px; transition: var(--t); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
    /* backdrop-filter haría del encabezado el contenedor del menú fijo */
    .head { backdrop-filter: none; background: #fff; }
    .head__cta { display: none; }
    .burger { display: flex; }
    .nav { position: fixed; inset: var(--navtop, 124px) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem var(--gut) 2rem; background: #fff; overflow-y: auto; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; margin: 0; border-top: 1px solid var(--line); }
    .nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .nav > a { font-size: 1.55rem; padding: .8rem .2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav > a::after { display: none; }
    .nav > a.is-on { color: var(--rojo); }
    .nav__mobile-extra { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
    .nav__mobile-extra .soc a { border-color: var(--line-2); color: var(--azul-d); }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) { :root { --head: 68px; } .head.is-stuck .head__in { height: 62px; } .brand img, .head.is-stuck .brand img { height: 42px; } }

/* ==========================================================================
   Hero / carrusel
   ========================================================================== */
.hero { position: relative; background: var(--azul-dd); overflow: hidden; isolation: isolate; }
.hero__stage { position: relative; min-height: clamp(600px, 80vh, 780px); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.hero__slide.is-on { opacity: 1; visibility: visible; }
.hero__ph { position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; transform: scale(1.04); transition: transform 12s linear; }
.hero__slide.is-on .hero__ph { transform: scale(1.14); }
.hero__scrim { position: absolute; inset: 0; background:
    linear-gradient(97deg, rgba(6,24,64,.96) 0%, rgba(6,24,64,.86) 36%, rgba(6,24,64,.42) 68%, rgba(6,24,64,.62) 100%),
    linear-gradient(0deg, rgba(6,24,64,.92) 0%, rgba(6,24,64,0) 50%); }
.hero__body { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding-block: 3.5rem 9rem; }
.hero__box { max-width: 760px; color: #fff; }
.hero__slide .hero__box, .hero__slide .hero__cover { opacity: 0; transform: translateY(26px); transition: opacity .8s .25s var(--ease), transform .8s .25s var(--ease); }
.hero__slide.is-on .hero__box, .hero__slide.is-on .hero__cover { opacity: 1; transform: none; }
.hero__slide.is-on .hero__cover { transition-delay: .45s; }
.hero__tag { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .95rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero__tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rojo-l); }
.hero__tag:has(.ic)::before { display: none; }
.hero__tag .ic { width: 14px; height: 14px; }
.hero__tag--red { background: var(--rojo); border-color: var(--rojo); }
.hero__tag--blue { background: var(--azul); border-color: var(--azul-l); }
.hero__t { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 5.6rem); color: #fff; line-height: .9; margin-top: 1.1rem; text-wrap: balance; }
.hero__t--md { font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.4rem); }
/* Énfasis: blanco subrayado en rojo (sin colores ajenos al logo) */
.hero__t em { font-style: normal; color: #fff; background: linear-gradient(var(--rojo), var(--rojo)) 0 92% / 100% .13em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__sub { color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.7; max-width: 56ch; margin-top: 1.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.hero__split { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.hero__cover { flex: none; width: clamp(200px, 20vw, 290px); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.55); rotate: 3deg; }
@media (max-width: 900px) { .hero__cover { display: none; } }

.hero__ctrl { position: absolute; z-index: 4; left: 0; right: 0; bottom: 5.2rem; }
.hero__ctrl-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero__dots { display: flex; gap: .5rem; }
.hero__dots button { width: 40px; height: 4px; border: 0; padding: 0; border-radius: 99px; cursor: pointer; background: rgba(255,255,255,.3); position: relative; overflow: hidden; transition: var(--t); }
.hero__dots button::before { content: ''; position: absolute; inset: -14px 0; }
.hero__dots button[aria-selected="true"] { width: 66px; }
.hero__dots button[aria-selected="true"]::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill var(--dur, 7s) linear forwards; }
.hero.is-paused .hero__dots button::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: .5rem; }
.hero__arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(6,24,64,.4); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); transition: var(--t); }
.hero__arrows button:hover { background: var(--rojo); border-color: var(--rojo); }
.hero__arrows .ic { width: 20px; height: 20px; }
@media (max-width: 700px) {
    .hero__stage { min-height: 600px; height: calc(100svh - 108px); max-height: 720px; }
    .hero__body { padding-block: 2rem 7.4rem; align-items: flex-end; }
    .hero__ph { background-image: var(--bg-m, var(--bg)); }
    .hero__arrows { display: none; }
    .hero__ctrl { bottom: 4.6rem; }
    .hero__t { font-size: clamp(2.3rem, 1.2rem + 7vw, 3.2rem); }
    .hero__t--md { font-size: clamp(2rem, 1rem + 6vw, 2.8rem); }
    .hero__sub { font-size: .96rem; margin-top: .9rem; }
    .hero__cta { margin-top: 1.4rem; gap: .55rem; }
    .hero__cta .btn { flex: 1 1 100%; }
}

/* --- Accesos superpuestos ------------------------------------------------ */
.access { position: relative; z-index: 5; margin-top: -54px; }
.access__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lg); }
.access__it { display: flex; align-items: flex-start; gap: .9rem; padding: 1.5rem 1.4rem; background: #fff; transition: background var(--t); }
.access__it:hover { background: var(--azul-s); }
.access__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--azul); color: #fff; transition: var(--t); }
.access__ic--red { background: var(--rojo); }
.access__it:hover .access__ic { background: var(--rojo); rotate: -6deg; }
.access__ic .ic { width: 20px; height: 20px; }
.access__it h3 { font-size: 1.25rem; color: var(--azul-d); }
.access__it p { font-size: .84rem; color: var(--ink-2); line-height: 1.5; margin-top: .3rem; }
@media (max-width: 980px) { .access__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .access { margin-top: -38px; }
    .access__it { flex-direction: column; gap: .6rem; padding: 1rem; }
    .access__ic { width: 38px; height: 38px; border-radius: 10px; }
    .access__it h3 { font-size: 1.1rem; }
    .access__it p { font-size: .76rem; margin-top: .15rem; }
}

/* --- Quiénes somos ------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about__txt .lead + .lead { margin-top: 1rem; }
.about__link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; font-weight: 700; color: var(--azul); border-bottom: 2px solid var(--rojo); padding-bottom: .2rem; }
.about__link .ic { width: 16px; height: 16px; transition: transform var(--t); }
.about__link:hover .ic { transform: translateX(4px); }
.frentes { display: grid; border-top: 2px solid var(--azul-d); }
.frente { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-2); }
.frente__n { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: .85; color: var(--rojo); min-width: 2.2ch; }
.frente h3 { font-size: 1.7rem; color: var(--azul-d); }
.frente p { color: var(--ink-2); margin-top: .5rem; line-height: 1.7; font-size: .97rem; }
.frente a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--azul); }
.frente a .ic { width: 14px; height: 14px; transition: transform var(--t); }
.frente a:hover { color: var(--rojo); }
.frente a:hover .ic { transform: translateX(3px); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .frente { gap: 1rem; padding: 1.3rem 0; } .frente__n { font-size: 2rem; } .frente h3 { font-size: 1.45rem; } }

/* Banda de misión y visión */
.mvband { position: relative; background: var(--azul); color: #fff; overflow: hidden; isolation: isolate; }
.mvband__star { position: absolute; z-index: -1; right: -6%; top: 50%; translate: 0 -50%; width: min(560px, 70vw); color: rgba(255,255,255,.08); }
.mvband::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--rojo); }
.mvband__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.2rem, 6vw, 5.4rem); }
.mvband__k { display: flex; align-items: center; gap: .8rem; font-size: 1rem; letter-spacing: .26em; color: rgba(255,255,255,.78); }
.mvband__k::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.25); }
.mvband p { font-size: clamp(1.06rem, .95rem + .55vw, 1.32rem); line-height: 1.6; margin-top: 1.1rem; color: #fff; }
@media (max-width: 800px) { .mvband__in { grid-template-columns: 1fr; gap: 2.4rem; } }

/* --- Portadas ------------------------------------------------------------ */
.cover { position: relative; aspect-ratio: 600 / 776; background: var(--azul-d); }
.cover__img { width: 100%; height: 100%; object-fit: cover; }
.cover__gen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8% 9%; color: #fff; overflow: hidden; background: linear-gradient(160deg, var(--azul) 0%, var(--azul-d) 60%, var(--azul-dd) 100%); }
.cover__star { position: absolute; right: -18%; top: 22%; width: 80%; color: rgba(193,39,45,.6); }
.cover__gen-top img { width: 36%; height: auto; }
.cover__gen-n { margin-top: auto; font-weight: 700; font-size: .62rem; letter-spacing: .2em; color: var(--rojo-l); position: relative; }
.cover__gen-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: .95; margin-top: .5rem; position: relative; }
.cover__gen-d { margin-top: .8rem; font-size: .7rem; opacity: .75; position: relative; border-top: 1px solid rgba(255,255,255,.2); padding-top: .6rem; }

/* --- Revistas ------------------------------------------------------------ */
.mags { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); }
.mags--all { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mag { display: block; }
.mag__cover { border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(6,24,64,.16); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.mag__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18) 0, rgba(255,255,255,.08) 2.5%, transparent 6%); pointer-events: none; }
.mag:hover .mag__cover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 60px rgba(6,24,64,.25); }
.mag__badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: .3rem .7rem; border-radius: 999px; background: var(--rojo); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mag__read { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--azul-d); font-size: .8rem; font-weight: 700; opacity: 0; transform: translateY(10px); transition: var(--t); }
.mag__read .ic { width: 16px; height: 16px; }
.mag:hover .mag__read, .mag:focus-visible .mag__read { opacity: 1; transform: none; }
@media (hover: none) { .mag__read { display: none; } }
.mag__meta { padding-top: 1rem; }
.mag__type { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rojo); }
.mag__t { font-size: 1.45rem; color: var(--azul-d); margin-top: .35rem; line-height: 1; transition: color var(--t); }
.mag:hover .mag__t { color: var(--azul); }
.mag__date { display: block; margin-top: .5rem; font-size: .8rem; color: var(--ink-3); }
@media (max-width: 980px) { .mags { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mags, .mags--all { grid-template-columns: 1fr 1fr; gap: 1.4rem .9rem; } .mag__t { font-size: 1.12rem; } .mag__type { font-size: .58rem; letter-spacing: .1em; } }

.chips { display: flex; gap: .5rem; margin-bottom: 2rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .55rem 1.05rem; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: .84rem; font-weight: 700; color: var(--azul-d); cursor: pointer; transition: var(--t); }
.chip span { margin-left: .2rem; color: var(--ink-3); font-weight: 400; }
.chip:hover { border-color: var(--azul); }
.chip.is-on { background: var(--azul-d); border-color: var(--azul-d); color: #fff; }
.chip.is-on span { color: rgba(255,255,255,.65); }

/* --- Detalle de revista -------------------------------------------------- */
.issue { padding-block: 1.8rem clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--paper), #fff); }
.issue__grid { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: 2rem; }
.issue__cover { border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px rgba(6,24,64,.25); rotate: -2deg; }
.issue__t { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); color: var(--azul-d); margin-top: .9rem; text-wrap: balance; }
.issue__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; color: var(--ink-2); font-size: .9rem; font-weight: 700; }
.issue__facts li { display: inline-flex; align-items: center; gap: .45rem; }
.issue__facts .ic { color: var(--rojo); width: 17px; height: 17px; }
.issue__sum { margin-top: 1.3rem; font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); max-width: 64ch; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; }
.tags li { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .78rem; font-weight: 700; color: var(--azul-d); }
.issue__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
@media (max-width: 800px) {
    .issue__grid { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 1.4rem; }
    .issue__cover { width: min(230px, 60vw); margin-inline: auto; }
    .issue__cta .btn { flex: 1 1 100%; }
    .crumbs--dark span:last-child { display: none; }
}

/* --- Visor PDF ----------------------------------------------------------- */
.viewer { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.viewer__bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: var(--azul-d); color: #fff; }
.viewer__title { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.viewer__grp { display: flex; align-items: center; gap: .3rem; flex: none; }
.viewer__grp button, .viewer__grp a { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: var(--t); }
.viewer__grp button:hover, .viewer__grp a:hover { background: var(--rojo); }
.viewer__grp button:disabled { opacity: .35; cursor: default; background: rgba(255,255,255,.1); }
.viewer__grp .ic { width: 18px; height: 18px; }
.viewer__pg { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; padding-inline: .3rem; }
.viewer__pg input { width: 3.2em; padding: .35rem .3rem; border: 0; border-radius: 8px; text-align: center; font: inherit; font-weight: 700; background: rgba(255,255,255,.16); color: #fff; -moz-appearance: textfield; }
.viewer__pg input::-webkit-inner-spin-button { -webkit-appearance: none; }
.viewer__zoom { min-width: 3.4em; text-align: center; font-size: .82rem; font-weight: 700; }
.viewer__stage { position: relative; height: min(88vh, 1100px); overflow: auto; background: #4C5770; padding: 1.4rem 0; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; overscroll-behavior: contain; }
.viewer__page { position: relative; flex: none; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.viewer__page canvas { display: block; width: 100%; height: 100%; }
.viewer__loading { margin: auto; display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; }
.spin { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.viewer:fullscreen .viewer__stage { height: auto; flex: 1; }
@media (max-width: 680px) {
    #visor > .wrap { width: 100%; }
    .viewer { border-radius: 0; border-inline: 0; }
    .viewer__title, .viewer__zoom, [data-v="full"] { display: none; }
    .viewer__stage { height: 75svh; padding: .8rem 0; gap: .8rem; }
    .viewer__bar { padding: .55rem .6rem; }
    .viewer__grp button, .viewer__grp a { width: 36px; height: 36px; }
}

/* --- Videos -------------------------------------------------------------- */
.vids { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.6rem; }
.vids__list { display: grid; gap: 1rem; align-content: start; }
.vids__more { display: flex; justify-content: center; margin-top: 2.4rem; }
.vid__media { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #000; cursor: pointer; }
.vid__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity var(--t); }
.vid__media:hover img { transform: scale(1.05); opacity: .85; }
.vid__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--rojo); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform var(--t); }
.vid__play .ic { width: 24px; height: 24px; margin-left: 3px; }
.vid__media:hover .vid__play { transform: scale(1.1); }
.vid__body { padding-top: .9rem; }
.vid__date { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.vid__t { font-size: 1.3rem; line-height: 1.02; margin-top: .3rem; color: var(--azul-d); }
.vid__t a:hover { color: var(--rojo); }
.sec--dark .vid__date { color: rgba(255,255,255,.58); }
.sec--dark .vid__t { color: #fff; }
.sec--dark .vid__t a:hover { color: var(--rojo-l); }
.vid--feature .vid__t { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); }
.vid--feature .vid__play { width: 82px; height: 82px; }
.vid--row { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.vid--row:last-child { border-bottom: 0; }
.vid--row .vid__media { border-radius: 10px; }
.vid--row .vid__play { width: 40px; height: 40px; }
.vid--row .vid__play .ic { width: 16px; height: 16px; }
.vid--row .vid__body { padding: 0; }
.vid--row .vid__t { font-size: 1.1rem; }
.vid.is-playing.vid--row { grid-template-columns: 1fr; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
.vid--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: center; }
.vid--wide .vid__t { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); }
@media (max-width: 980px) { .vids { grid-template-columns: 1fr; } .vgrid { grid-template-columns: repeat(2, 1fr); } .vid--wide { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 600px) {
    .vgrid { grid-template-columns: 1fr; }
    .vid--row { grid-template-columns: 128px 1fr; gap: .8rem; }
    .vid--row .vid__t { font-size: 1rem; }
    .vid--row .vid__date { font-size: .64rem; }
    .vids__more .btn { width: 100%; }
}

/* --- Redes / Instagram --------------------------------------------------- */
.igprof { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.igprof > div { min-width: 0; }
.igprof strong, .igprof span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.igprof img { flex: none;  width: 56px; height: 56px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.igprof div { display: grid; line-height: 1.3; }
.igprof strong { font-size: 1rem; }
.igprof span { font-size: .82rem; color: var(--ink-2); }
.igprof .btn { margin-left: auto; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 3rem) / 4); } }
@media (max-width: 560px) { .rail { grid-auto-columns: 78%; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); } }

/* Publicaciones por API (imagen real) */
.igp { display: flex; flex-direction: column; scroll-snap-align: start; }
.igp__media { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--azul-s); }
.igp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.igp:hover .igp__media img { transform: scale(1.05); }
.igp__kind { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(6,24,64,.55); color: #fff; backdrop-filter: blur(6px); }
.igp__kind .ic { width: 16px; height: 16px; }
.igp__txt { margin-top: .8rem; font-size: .9rem; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.igp__date { margin-top: .4rem; font-size: .74rem; color: var(--ink-3); font-weight: 700; }

/* Tarjetas de Instagram (sin token): imagen guardada en el servidor */
.igc { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4/5; padding: 1rem; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; color: #fff; isolation: isolate; background: var(--azul-d); transition: transform var(--t), box-shadow var(--t); }
.igc:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.igc__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.igc:hover .igc__img { transform: scale(1.04); }
.igc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,24,64,.94) 0%, rgba(6,24,64,.55) 32%, rgba(6,24,64,0) 58%), linear-gradient(180deg, rgba(6,24,64,.45), rgba(6,24,64,0) 22%); }
.igc--txt::after { display: none; }
.igc--1 { background: linear-gradient(150deg, var(--rojo) 0%, var(--rojo-d) 100%); }
.igc--0 { background: linear-gradient(150deg, var(--azul) 0%, var(--azul-d) 100%); }
.igc__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.igc__tema { padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.igc__kind { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: rgba(6,24,64,.5); backdrop-filter: blur(6px); }
.igc__kind .ic { width: 15px; height: 15px; }
.igc__txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.igc__go { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-size: .74rem; font-weight: 700; opacity: .85; }
.igc__go .ic { width: 14px; height: 14px; }

.rail-arrows { display: flex; gap: .5rem; }
.rail-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--azul-d); display: grid; place-items: center; cursor: pointer; transition: var(--t); }
.rail-arrows button:hover:not(:disabled) { background: var(--azul-d); color: #fff; border-color: var(--azul-d); }
.rail-arrows button:disabled { opacity: .35; cursor: default; }
.rail-arrows .ic { width: 20px; height: 20px; }
@media (max-width: 560px) { .rail-arrows { display: none; } }

.socrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.socrow__it { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: var(--t); }
.socrow__it:hover { border-color: transparent; box-shadow: var(--sh); transform: translateY(-3px); }
.socrow__it span:nth-child(2) { display: grid; line-height: 1.25; }
.socrow__it small { color: var(--ink-2); font-size: .8rem; }
.socrow__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; flex: none; }
.socrow__ic .ic { width: 22px; height: 22px; }
.socrow__it--instagram .socrow__ic { background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); }
.socrow__it--youtube .socrow__ic { background: #FF0000; }
.socrow__it--x .socrow__ic { background: #000; }
.socrow__go { margin-left: auto; color: var(--ink-3); width: 18px; height: 18px; }
@media (max-width: 760px) { .socrow { grid-template-columns: 1fr; gap: .6rem; } .socrow__it { padding: .8rem 1rem; } }

/* --- Equipo -------------------------------------------------------------- */
/* Monograma: azul del logo, iniciales blancas y la estrella en rojo */
.mono { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--azul) 0%, var(--azul-d) 75%); }
.mono.has-photo { background: var(--azul-s); }
.mono img { width: 100%; height: 100%; object-fit: cover; }
.mono__star { position: absolute; width: 74%; right: -16%; bottom: -12%; color: var(--rojo); opacity: .9; transition: transform .7s var(--ease); }
.mono__ini { position: absolute; left: 10%; top: 9%; font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 5vw, 4.4rem); line-height: .85; color: #fff; letter-spacing: .02em; }

.people { display: grid; gap: 1.4rem; }
.people--lead { grid-template-columns: repeat(4, 1fr); }
.person { position: relative; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: box-shadow var(--t), transform var(--t); }
.person:hover { box-shadow: var(--sh); transform: translateY(-4px); }
.person:hover .mono__star { transform: rotate(14deg) scale(1.05); }
.person--grande { display: flex; flex-direction: column; }
.person--grande .person__ph { aspect-ratio: 4/5; }
.person--grande:nth-child(even) .mono:not(.has-photo) { background: linear-gradient(155deg, var(--azul-d) 0%, var(--azul-dd) 80%); }
.person__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.person__n { font-size: 1.5rem; color: var(--azul-d); }
.person__r { font-size: .84rem; font-weight: 700; color: var(--rojo); margin-top: .4rem; line-height: 1.35; }
.person__p { font-size: .82rem; color: var(--ink-3); margin-top: .2rem; }
.person__more { align-self: flex-start; margin-top: auto; padding: .9rem 0 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.person__more .ic { width: 14px; height: 14px; transition: transform var(--t); }
.person__more:hover { color: var(--rojo); }
.person__more:hover .ic { transform: translateX(4px); }
/* El botón cubre la tarjeta entera: más fácil de tocar en el celular */
.person__more::after { content: ''; position: absolute; inset: 0; }

.people--rows { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.person--fila { display: flex; align-items: center; gap: 1rem; padding: .8rem; }
.person--fila .person__ph { width: 84px; height: 84px; flex: none; border-radius: 10px; }
.person--fila .mono__ini { font-size: 1.9rem; left: 12%; top: 12%; }
.person--fila .mono__star { width: 80%; }
.person--fila .person__body { padding: 0; }
.person--fila .person__n { font-size: 1.25rem; }
.person--fila .person__r { font-size: .78rem; margin-top: .25rem; }
.person--fila .person__more { padding-top: .45rem; font-size: .68rem; }

.tgroup + .tgroup { margin-top: 3rem; }
.tgroup__head { display: flex; align-items: baseline; gap: .4rem 1.4rem; flex-wrap: wrap; margin-bottom: 1.3rem; padding-bottom: .9rem; border-bottom: 2px solid var(--azul-d); }
.tgroup__t { font-size: 1.6rem; color: var(--azul-d); }
.tgroup__head p { color: var(--ink-2); font-size: .92rem; }

@media (max-width: 1000px) { .people--lead { grid-template-columns: repeat(2, 1fr); } .people--rows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .people--lead { gap: .8rem; }
    .people--rows { grid-template-columns: 1fr; }
    .person--grande .person__body { padding: .85rem .9rem 1rem; }
    .person--grande .person__n { font-size: 1.2rem; }
    .person--grande .person__r { font-size: .74rem; }
    .person--grande .person__p { display: none; }
    .person--grande .person__more { font-size: .66rem; padding-top: .7rem; }
    .mono__ini { font-size: 2.6rem; }
}

/* Diálogo de perfil */
.pdlg { padding: 0; border: 0; border-radius: var(--r-lg); width: min(820px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); box-shadow: 0 40px 120px rgba(6,24,64,.45); color: var(--ink); overflow: auto; }
.pdlg::backdrop { background: rgba(6,24,64,.7); backdrop-filter: blur(4px); }
.pdlg[open] { animation: dlg-in .35s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.pdlg__in { position: relative; display: grid; grid-template-columns: 300px 1fr; }
.pdlg__ph { min-height: 100%; }
.pdlg__ph .mono__ini { font-size: 5rem; }
.pdlg__body { padding: 2.4rem 2.4rem 2.2rem; }
.pdlg__r { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rojo); padding-right: 3rem; }
.pdlg__n { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--azul-d); margin-top: .5rem; }
.pdlg__bio { margin-top: 1.2rem; line-height: 1.8; color: var(--ink-2); }
.pdlg__mail { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--azul-s); color: var(--azul); font-weight: 700; font-size: .86rem; word-break: break-all; }
.pdlg__mail:hover { background: var(--azul); color: #fff; }
.pdlg__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper); color: var(--azul-d); cursor: pointer; transition: var(--t); }
.pdlg__x:hover { background: var(--rojo); color: #fff; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 680px) {
    .pdlg { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
    .pdlg[open] { animation: sheet-in .35s var(--ease); }
    .pdlg__in { grid-template-columns: 1fr; }
    .pdlg__ph { height: 150px; min-height: 0; }
    .pdlg__ph .mono__ini { font-size: 3.2rem; }
    .pdlg__ph .mono__star { width: 40%; right: -4%; bottom: -30%; }
    .pdlg__ph.has-photo img { object-position: center 25%; }
    .pdlg__body { padding: 1.5rem var(--gut) 2rem; }
    .pdlg__r { padding-right: 0; }
    .pdlg__x { background: rgba(255,255,255,.92); }
}
body.dlg-open { overflow: hidden; }

/* Directorio */
.board { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 1.2rem 2rem; align-items: stretch; }
.board__lead { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 1.8rem; border-radius: var(--r-lg); background: linear-gradient(155deg, var(--azul) 0%, var(--azul-d) 80%); color: #fff; }
.board__star { position: absolute; z-index: -1; width: 70%; right: -14%; top: -10%; color: var(--rojo); }
.board__role { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.board__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.7rem); line-height: .95; margin-top: .5rem; }
.board__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6rem; border-top: 2px solid var(--azul-d); align-content: start; }
.board__list li { display: grid; padding: 1rem .2rem; border-bottom: 1px solid var(--line-2); line-height: 1.3; }
.board__list strong { font-size: 1rem; color: var(--azul-d); }
.board__list small { color: var(--ink-3); font-size: .8rem; margin-top: .15rem; }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } .board__lead { min-height: 180px; } }
@media (max-width: 520px) { .board__list { grid-template-columns: 1fr; } }

/* --- Cabecera de páginas interiores -------------------------------------- */
.phead { position: relative; background: var(--azul-dd); color: #fff; overflow: hidden; isolation: isolate; }
.phead__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .32; }
.phead::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(97deg, rgba(6,24,64,.97) 10%, rgba(6,24,64,.6)); }
.phead::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--rojo) 0 50%, var(--azul) 50%); }
.phead__in { padding-block: clamp(2.6rem, 6vw, 5.2rem); }
.phead__t { font-size: clamp(2.8rem, 1.6rem + 5vw, 5.4rem); margin-top: 1rem; }
.phead__sub { color: rgba(255,255,255,.82); font-size: 1.06rem; max-width: 58ch; margin-top: 1rem; margin-bottom: 1.4rem; }
.phead__sub:last-child { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.62); }
.crumbs a:hover { color: #fff; }
.crumbs--dark { color: var(--ink-3); }
.crumbs--dark a:hover { color: var(--azul); }
.subnav { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-top: .4rem; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-size: .82rem; font-weight: 700; transition: var(--t); }
.subnav a:hover { background: #fff; color: var(--azul-d); }

/* --- Aporte -------------------------------------------------------------- */
.give { position: relative; background: var(--azul-dd); color: #fff; overflow: hidden; isolation: isolate; }
.give__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .3; }
.give::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(6,24,64,.97) 30%, rgba(6,24,64,.75)); }
.give__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.6rem, 7vw, 6rem); }
.give__t { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem); margin: 1rem 0 1.2rem; text-wrap: balance; }
.give__t em { font-style: normal; color: #fff; background: linear-gradient(var(--rojo), var(--rojo)) 0 92% / 100% .13em no-repeat; }
.give__intro > p { color: rgba(255,255,255,.82); line-height: 1.8; max-width: 56ch; }
.give__intro .crumbs { margin-bottom: 1.4rem; }
.give__list { display: grid; gap: .7rem; margin-top: 1.6rem; }
.give__list li { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.give__list .ic { color: var(--rojo-l); width: 20px; height: 20px; }
.give__opts { display: grid; gap: 1rem; }
.opt { position: relative; padding: 1.8rem; border-radius: var(--r-lg); background: #fff; color: var(--ink); }
.opt--main { box-shadow: 0 30px 60px rgba(0,0,0,.35); outline: 3px solid var(--rojo); }
.opt__badge { position: absolute; top: -12px; right: 1.4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--rojo); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.opt__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--rojo-s); color: var(--rojo); }
.opt__ic .ic { width: 22px; height: 22px; }
.opt h2 { font-size: 2rem; color: var(--azul-d); margin-top: .9rem; }
.opt p { color: var(--ink-2); margin: .5rem 0 1.3rem; line-height: 1.65; }
.give__note { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: rgba(255,255,255,.78); line-height: 1.6; }
.give__note .ic { color: #fff; margin-top: .2rem; }
.give__note a { color: #fff; text-decoration: underline; word-break: break-all; }
@media (max-width: 900px) { .give__in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .opt { padding: 1.4rem; } .opt .btn { white-space: normal; } }

/* --- Banda de aporte + pie ----------------------------------------------- */
.donate-band { background: linear-gradient(120deg, var(--rojo) 0%, var(--rojo-d) 100%); color: #fff; position: relative; overflow: hidden; }
.donate-band::before { content: ''; position: absolute; right: -6%; top: -60%; width: 520px; aspect-ratio: 1; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); }
.donate-band__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.6rem, 5vw, 4rem); }
.donate-band__in > div:first-child { flex: 1 1 460px; }
.donate-band__t { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); margin-top: .7rem; text-wrap: balance; }
.donate-band__t em { font-style: normal; color: #fff; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.donate-band p { color: rgba(255,255,255,.9); margin-top: .8rem; max-width: 58ch; }
.donate-band__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.donate-band .btn--red { background: #fff; color: var(--rojo); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.donate-band .btn--red:hover { background: var(--rojo-s); }
.donate-band .kick--light { color: rgba(255,255,255,.85); }
.donate-band .kick--light::before { background: #fff; }
@media (max-width: 560px) { .donate-band__in > div:first-child { flex-basis: 100%; } .donate-band__cta { width: 100%; } .donate-band__cta .btn { flex: 1 1 100%; } }

.foot { background: var(--azul-dd); color: rgba(255,255,255,.72); font-size: .9rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-block: 4rem 3rem; }
.foot__brand img { width: 170px; height: auto; }
.foot__brand p { margin: 1.1rem 0 1.3rem; max-width: 36ch; line-height: 1.7; }
.foot__col { display: grid; gap: .65rem; align-content: start; }
.foot__col h3 { font-size: 1.15rem; color: #fff; letter-spacing: .06em; margin-bottom: .4rem; }
.foot__col a { display: inline-flex; align-items: center; gap: .5rem; transition: color var(--t); }
.foot__col a:hover { color: #fff; }
.foot__col .ic { color: var(--rojo-l); width: 16px; height: 16px; }
.foot__bot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.foot__top:hover { color: #fff; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__grid { gap: 2rem 1rem; padding-block: 3rem 2rem; } .foot__col:last-child { grid-column: 1 / -1; } .foot__col a { min-height: 32px; } }

/* --- 404 ----------------------------------------------------------------- */
.nf { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.nf__in { display: grid; justify-items: center; }
.nf__n { font-family: var(--display); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); line-height: .8; color: var(--azul-s); -webkit-text-stroke: 2px var(--azul); }
.nf .lead { margin-inline: auto; }
.nf .hero__cta { justify-content: center; }

/* =========================================================================
   Ajustes solo para celular (el escritorio no cambia)
   ========================================================================= */
@media (max-width: 700px) {
    /* Banner: alto según el contenido, sin el hueco vacío arriba */
    .hero__stage { min-height: 600px; height: auto; max-height: none; }
    .hero__body { align-items: center; padding-block: 2.2rem 7rem; }
    .hero__ctrl { bottom: 4.4rem; }
}

@media (max-width: 640px) {
    /* Quiénes somos */
    .about { gap: 2.2rem; }
    .about__txt .lead { font-size: 1rem; line-height: 1.7; }
    .about__txt .lead + .lead {
        margin-top: 1.3rem; padding: 1rem 1.1rem; border-left: 4px solid var(--rojo);
        border-radius: 0 12px 12px 0; background: var(--azul-s);
        color: var(--azul-d); font-weight: 600; line-height: 1.6;
    }
    .about__link {
        display: flex; justify-content: space-between; margin-top: 1.4rem; padding: .95rem 1.2rem;
        border: 1.5px solid var(--azul); border-radius: 999px; font-size: .95rem;
    }
    .frentes { gap: .8rem; border-top: 0; }
    .frente {
        position: relative; display: block; padding: 1.3rem 1.2rem 1.2rem; overflow: hidden;
        border: 1px solid var(--line-2); border-top: 4px solid var(--azul); border-radius: 14px;
        background: #fff; box-shadow: 0 6px 20px rgba(6, 24, 64, .06);
    }
    .frente:nth-child(2) { border-top-color: var(--rojo); }
    .frente__n {
        position: absolute; top: .7rem; right: 1rem; min-width: 0;
        font-size: 2.6rem; color: rgba(16, 54, 142, .12);
    }
    .frente h3 { font-size: 1.4rem; padding-right: 3rem; }
    .frente p { font-size: .94rem; line-height: 1.65; }
    .frente a { margin-top: .9rem; }

    /* Misión y visión: dos tarjetas con títulos visibles */
    .mvband::before { width: 100%; height: 5px; inset: 0 0 auto 0; }
    .mvband__in { gap: 1rem; padding-block: 3rem; }
    .mvband__star { width: 90vw; right: -30%; top: 30%; }
    .mvband__col {
        padding: 1.4rem 1.3rem; border-radius: 16px;
        background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
        backdrop-filter: blur(2px);
    }
    .mvband__k { font-size: 1.9rem; letter-spacing: .02em; color: #fff; gap: .6rem; }
    .mvband__k::before { content: ''; width: 6px; height: 1.4rem; border-radius: 3px; background: var(--rojo-l); }
    .mvband__k::after { display: none; }
    .mvband p { font-size: 1rem; line-height: 1.65; margin-top: .7rem; color: rgba(255, 255, 255, .92); }
}

/* --- Inicio en celular: «Quiénes somos» corto, con accesos a cada sección --- */
.qlinks { display: none; }
@media (max-width: 640px) {
    .is-home .about__txt .lead + .lead,
    .is-home .about__link,
    .is-home .about__frentes,
    .is-home #mision { display: none; }
    .is-home .about { gap: 0; }
    .qlinks { display: grid; gap: .55rem; margin-top: 1.5rem; }
    .qlinks a {
        display: flex; align-items: center; gap: .85rem; min-height: 58px; padding: .6rem 1rem .6rem .65rem;
        border: 1px solid var(--line-2); border-radius: 14px; background: #fff;
        box-shadow: 0 4px 14px rgba(6, 24, 64, .05);
        font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; color: var(--azul-d);
        transition: border-color var(--t), background var(--t);
    }
    .qlinks a:active { background: var(--azul-s); border-color: var(--azul); }
    .qlinks__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--azul); color: #fff; }
    .qlinks__ic--red { background: var(--rojo); }
    .qlinks__ic .ic { width: 19px; height: 19px; }
    .qlinks__go { width: 18px; height: 18px; margin-left: auto; color: var(--rojo); }
}
.frente[id], .mvband, #equipo { scroll-margin-top: calc(var(--head) + 24px); }
