/* ==========================================================================
   MEMORIA · Archivo audiovisual — estilos
   Paleta inspirada en el escudo del Instituto Pedagógico Campestre:
   azul noche como base, con matices del verde (#086838) y el azul (#283890)
   del escudo en degradados muy tenues. Cambia los colores aquí (:root).
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Base oscura */
  --bg: #0a0f1d;          /* azul noche */
  --bg-2: #111829;        /* superficies elevadas */
  --bg-3: #182037;

  /* Colores del escudo */
  --verde: #0e6b3f;       /* verde IPC */
  --verde-suave: #5fb38a; /* acentos sobre fondo oscuro */
  --azul: #2b3a92;        /* azul IPC */
  --azul-suave: #8a9cf2;

  /* Texto */
  --ink: #ece9e1;
  --ink-2: #bcc0cb;
  --mute: #7d8599;
  --line: rgba(236, 233, 225, .08);
  --line-2: rgba(236, 233, 225, .16);

  /* Degradado de acento (verde → azul) para líneas y textos */
  --fade: linear-gradient(90deg, var(--verde-suave), var(--azul-suave));
  --tinte: linear-gradient(100deg, #ece9e1 10%, #b7dcc7 50%, #b9c4f6 90%);

  --serif: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 4vw, 64px);
  --hdr: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 14px/1.6 var(--sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
select option { background: var(--bg-2); color: var(--ink); }
::selection { background: var(--verde); color: var(--ink); }
:focus-visible { outline: 1px solid var(--verde-suave); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Fondo ambiental: dos luces tenues (verde y azul) que se mueven despacio ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  opacity: .55; will-change: transform;
}
.ambient::before {
  left: -25vmax; top: -20vmax;
  background: radial-gradient(closest-side, rgba(14, 107, 62, .22), transparent);
  animation: deriva-a 38s ease-in-out infinite alternate;
}
.ambient::after {
  right: -25vmax; bottom: -25vmax;
  background: radial-gradient(closest-side, rgba(43, 58, 146, .28), transparent);
  animation: deriva-b 46s ease-in-out infinite alternate;
}
@keyframes deriva-a { to { transform: translate3d(18vw, 22vh, 0) scale(1.15); } }
@keyframes deriva-b { to { transform: translate3d(-20vw, -18vh, 0) scale(1.1); } }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 10px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  color: var(--mute); margin: 0;
}
.display { font: 400 clamp(84px, 12vw, 210px)/.84 var(--serif); letter-spacing: -.035em; margin: 0; }
.h1 { font: 400 clamp(46px, 6.2vw, 100px)/.95 var(--serif); letter-spacing: -.03em; margin: 0; }
.h2 { font: 400 clamp(34px, 3.8vw, 58px)/1 var(--serif); letter-spacing: -.025em; margin: 0; }
.h1 em, .h2 em, .serif-i, .tinte {
  font-style: italic;
  background: var(--tinte); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 15px; line-height: 1.75; color: var(--ink-2); max-width: 46ch; margin: 0; }
.mute { color: var(--mute); }

/* ---------- Botones y enlaces ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 48px; padding: 0 28px; overflow: hidden; isolation: isolate;
  color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 10px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  transition: color .5s var(--ease), box-shadow .5s var(--ease), gap .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14, 107, 62, .55), rgba(43, 58, 146, .55));
  opacity: 0; transition: opacity .6s var(--ease);
}
.btn:hover { gap: 20px; box-shadow: inset 0 0 0 1px transparent; }
.btn:hover::before { opacity: 1; }
.btn--solid { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn--solid:hover { color: var(--ink); }
.btn--ghost { }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }

.link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2);
  font-size: 10px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  background: var(--fade) 0 100% / 100% 1px no-repeat; padding-bottom: 5px;
  transition: background-size .6s var(--ease), color .4s var(--ease);
}
.link:hover { color: var(--ink); background-size: 0 1px; background-position: 100% 100%; }
.arrow { display: inline-block; transition: transform .5s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* Línea divisoria que se desvanece (verde → azul → transparente) */
.fade-rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }

/* ---------- Encabezado ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .6s var(--ease), border-color .6s var(--ease), backdrop-filter .6s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled, body.menu-open .hdr {
  background: rgba(10, 15, 29, .72);
  -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line);
}
.hdr__in { height: var(--hdr); padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo__crest { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.logo__crest img { width: 100%; height: 100%; object-fit: contain; }
.logo__crest.sin::after {
  content: attr(data-sigla); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: italic 400 12px/1 var(--serif); letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px var(--line-2);
  background: linear-gradient(135deg, rgba(14, 107, 62, .35), rgba(43, 58, 146, .35));
}
.logo__word { font: 400 26px/1 var(--serif); letter-spacing: -.02em; }
.logo__sub { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); padding-left: 12px; border-left: 1px solid var(--line-2); line-height: 1.3; max-width: 170px; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; padding: 6px 0; position: relative; color: var(--mute); white-space: nowrap; transition: color .4s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fade);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); transform-origin: left; }
.nav a.on { color: var(--ink); }
/* El acceso al panel se muestra; el contenido se protege con inicio de sesión real. */

.hdr__tools { justify-self: end; display: flex; align-items: center; gap: 26px; }
.tool { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); transition: color .4s; }
.tool:hover { color: var(--ink); }
.tool b { font-weight: 400; color: var(--ink-2); }
.role__ico { display: none; }
.role { position: relative; }
.role__menu {
  position: absolute; right: 0; top: calc(100% + 18px); width: 300px;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.role.open .role__menu { opacity: 1; visibility: visible; transform: none; }
.role__opt { width: 100%; text-align: left; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; transition: background .3s; }
.role__opt:hover { background: var(--bg-3); }
.role__opt b { font-weight: 400; font-size: 13px; }
.role__opt small { grid-column: 1; color: var(--mute); font-size: 12px; }
.role__opt i { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 6px; height: 6px; border-radius: 50%; }
.role__opt.on i { background: var(--verde-suave); box-shadow: 0 0 12px var(--verde-suave); }
.role__foot { padding: 10px 14px 6px; border-top: 1px solid var(--line); margin-top: 6px; font-size: 11.5px; color: var(--mute); line-height: 1.5; }

.hdr__burger { display: none; width: 28px; height: 28px; position: relative; }
.hdr__burger span { position: absolute; left: 3px; right: 3px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.hdr__burger span:first-child { top: 10px; }
.hdr__burger span:last-child { top: 17px; }
body.menu-open .hdr__burger span:first-child { top: 14px; transform: rotate(45deg); }
body.menu-open .hdr__burger span:last-child { top: 14px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; top: var(--hdr); z-index: 45; background: var(--bg);
  padding: 32px var(--pad); opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
body.menu-open .mnav { opacity: 1; visibility: visible; transform: none; }
.mnav nav { display: flex; flex-direction: column; }
.mnav a { font: 400 40px/1.2 var(--serif); padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Contenedor, apariciones y cambios de tono al desplazarse ---------- */
.app {
  min-height: 70vh; outline: none; padding-top: var(--hdr);
  /* saltos de color muy tenues a lo largo de la página */
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(14, 107, 62, .07) 20%,
    transparent 40%,
    rgba(43, 58, 146, .09) 62%,
    rgba(14, 107, 62, .05) 84%,
    transparent 100%);
}
.app.in > *:not(.reveal) { animation: rise 1.1s var(--ease) both; }
.app.in > *:nth-child(2):not(.reveal) { animation-delay: .08s; }
.app.in > *:nth-child(3):not(.reveal) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.app img, .so img { opacity: 0; transition: opacity 1s var(--ease), transform 1.6s var(--ease), filter 1s var(--ease); }
.app img.ok, .so img.ok { opacity: 1; }
.noimg { position: relative; }
.noimg::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 20px var(--serif); color: var(--mute); }

.sec { padding: clamp(64px, 8vw, 124px) var(--pad); }
.sec--tight { padding-top: clamp(40px, 5vw, 80px); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 4.5vw, 64px); flex-wrap: wrap; }
.sec__head .eyebrow { margin-bottom: 18px; }

/* Imágenes apagadas que recuperan su color al pasar el ratón */
.card__media img, .ccard__media img, .tile__media img, .dec__media img, .tl__th img, .colhead__img img {
  filter: saturate(.75) brightness(.86);
}
.card:hover .card__media img, .ccard:hover .ccard__media img, .tile:hover .tile__media img,
.dec:hover .dec__media img, .tl__th:hover img { filter: none; }

/* ---------- Portada (hero) ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; margin-top: calc(var(--hdr) * -1); overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: var(--bg-2); }
/* La imagen y su velo se desvanecen hacia el fondo de la página: sin cortes */
.hero__media, .hero__veil {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .55) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .55) 80%, transparent 100%);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 2.2s var(--ease); cursor: zoom-in; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(.8); transition: opacity 1s var(--ease), transform 9s linear !important; }
.slide.on img { transform: scale(1); }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 15, 29, .55) 0%, rgba(10, 15, 29, .05) 30%, rgba(10, 15, 29, .2) 65%, rgba(10, 15, 29, .5) 100%),
    linear-gradient(90deg, rgba(10, 15, 29, .75) 0%, rgba(10, 15, 29, .2) 55%, transparent 80%),
    linear-gradient(160deg, rgba(14, 107, 62, .25), transparent 45%, rgba(43, 58, 146, .3));
}
.hero__content { position: absolute; left: var(--pad); bottom: clamp(56px, 10vh, 120px); max-width: 720px; pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero__title {
  margin: 22px 0 0;
  background: linear-gradient(100deg, #ece9e1 0%, #ece9e1 35%, #b7dcc7 50%, #b9c4f6 62%, #ece9e1 78%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brillo 14s ease-in-out infinite alternate;
}
@keyframes brillo { to { background-position: 100% 0; } }
.hero__years { display: flex; align-items: center; gap: 18px; font: italic 400 clamp(22px, 2.2vw, 30px)/1 var(--serif); color: var(--ink-2); margin: 20px 0 40px; }
.hero__years i { width: clamp(80px, 12vw, 180px); height: 1px; background: var(--fade); opacity: .8; }
.hero__cap {
  position: absolute; right: var(--pad); bottom: clamp(56px, 10vh, 120px); text-align: right;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
}
.hero__cap b { display: block; font: italic 400 20px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: 6px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots button { width: 22px; height: 16px; position: relative; }
.hero__dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(236, 233, 225, .28); transition: background .5s; }
.hero__dots button.on::after { background: var(--fade); }

/* ---------- Introducción ---------- */
.intro { padding: clamp(80px, 12vw, 180px) var(--pad) clamp(40px, 6vw, 90px); text-align: center; }
.intro__text { font: 400 clamp(28px, 3.3vw, 50px)/1.18 var(--serif); letter-spacing: -.015em; max-width: 26ch; margin: 26px auto 0; color: var(--ink); }
.intro + .sec { padding-top: clamp(40px, 5vw, 80px); }
.intro__stats { margin-top: 40px; display: inline-flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.intro__stats span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.intro__stats b { font: 400 22px/1 var(--serif); letter-spacing: 0; color: var(--ink); margin-right: 8px; }

/* ---------- Carrusel de colecciones ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 25vw, 380px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scroll-padding: var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; color: var(--ink-2); transition: background .4s, color .4s; }
.rail-nav button:hover { background: var(--ink); color: var(--bg); }

.ccard { display: block; }
.ccard__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); position: relative; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; }
.ccard:hover .ccard__media img { transform: scale(1.04); }
.ccard__n { position: absolute; top: 16px; left: 16px; color: var(--ink); font-size: 10px; letter-spacing: .22em; }
.ccard__meta { padding-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.ccard__t { font: 400 28px/1.05 var(--serif); letter-spacing: -.015em; }
.ccard__c { font-size: 11px; color: var(--mute); }
.ccard__p { grid-column: 1 / -1; }

/* ---------- Índice de categorías ---------- */
.idx { position: relative; }
.idx::before { content: ""; display: block; height: 1px; background: linear-gradient(90deg, var(--verde-suave), var(--azul-suave) 45%, transparent); opacity: .7; }
.idx__row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 36px; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); transition: color .5s var(--ease);
}
.idx__n { font-size: 10px; letter-spacing: .2em; color: var(--mute); }
.idx__name { font: 400 clamp(26px, 3vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; transition: transform .7s var(--ease); }
.idx__count { font-size: 10px; letter-spacing: .2em; color: var(--mute); }
.idx__arrow { justify-self: end; opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); color: var(--verde-suave); }
.idx:hover .idx__row { color: rgba(236, 233, 225, .22); }
.idx .idx__row:hover { color: var(--ink); }
.idx__row:hover .idx__name { transform: translateX(18px); font-style: italic; }
.idx__row:hover .idx__arrow { opacity: 1; transform: none; }
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: 220px; aspect-ratio: 3 / 4; object-fit: cover;
  pointer-events: none; opacity: 0; transform: translate(36px, -50%) scale(.92);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.peek.on { opacity: 1; transform: translate(36px, -50%) scale(1); }

/* ---------- Décadas ---------- */
.decades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dec { display: block; }
.dec__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); position: relative; }
.dec__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 15, 29, .75)); pointer-events: none; }
.dec__media img { width: 100%; height: 100%; object-fit: cover; }
.dec:hover .dec__media img { transform: scale(1.05); }
.dec__t { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: var(--ink); font: 400 clamp(44px, 4.6vw, 76px)/1 var(--serif); letter-spacing: -.03em; }
.dec__meta { display: flex; justify-content: space-between; padding-top: 14px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

/* ---------- Encabezado de página ---------- */
.phead { padding: clamp(56px, 8vw, 120px) var(--pad) clamp(32px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.phead .eyebrow { margin-bottom: 20px; }
.phead .lead { margin-top: 24px; }
.phead__side { text-align: right; }
.phead__side b { display: block; font: 400 60px/1 var(--serif); letter-spacing: -.03em; }
.phead__img { width: clamp(140px, 15vw, 210px); aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.75) brightness(.86); }
.crumbs { display: flex; gap: 10px; align-items: center; }
.crumbs a { color: var(--mute); transition: color .3s; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Barra de herramientas del archivo ---------- */
.toolbar {
  position: sticky; top: var(--hdr); z-index: 20;
  background: rgba(10, 15, 29, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px var(--pad); display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap;
}
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 460px; border-bottom: 1px solid var(--line-2); color: var(--mute); transition: border-color .4s; }
.search:focus-within { border-image: var(--fade) 1; }
.search input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--mute); }
.search input::-webkit-search-cancel-button { display: none; }
.seg { display: inline-flex; gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); transition: background .4s, color .4s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--bg-3); color: var(--ink); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.fbtn { height: 34px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); display: inline-flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); transition: box-shadow .4s, color .4s; }
.fbtn:hover { box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink); }
.fbtn i { font-style: normal; min-width: 18px; height: 18px; border-radius: 9px; background: var(--verde); color: var(--ink); font-size: 10px; letter-spacing: 0; display: inline-grid; place-items: center; padding: 0 5px; }
.density { display: flex; gap: 4px; }
.density button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--mute); opacity: .7; transition: color .3s, opacity .3s; }
.density button.on, .density button:hover { color: var(--ink); opacity: 1; }
.sort { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237d8599' stroke-width='1.6'/%3E%3C/svg%3E") right center / 12px no-repeat; padding-right: 20px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); cursor: pointer; height: 34px; outline: none; }

.subbar { padding: 20px var(--pad) 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  height: 30px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .4s var(--ease), color .4s, box-shadow .4s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.chip.on { background: linear-gradient(100deg, rgba(14, 107, 62, .45), rgba(43, 58, 146, .45)); box-shadow: none; color: var(--ink); }
.chip--x::after { content: "✕"; font-size: 9px; opacity: .7; }
.count { font-size: 12px; color: var(--mute); }
.notice { margin: 18px var(--pad) 0; padding: 14px 18px; background: rgba(43, 58, 146, .14); border-left: 1px solid var(--azul-suave); font-size: 12.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.notice button { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- Rejilla de tarjetas ---------- */
.wrap { padding: 32px var(--pad) clamp(90px, 11vw, 160px); }
.grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(32px, 3.8vw, 56px) clamp(12px, 1.5vw, 22px); }
.grid[data-cols="3"] { --cols: 3; }
.grid[data-cols="6"] { --cols: 6; }
.card { margin: 0; cursor: pointer; outline: none; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.035); }
.card:focus-visible .card__media { outline: 1px solid var(--verde-suave); outline-offset: 3px; }
.card figcaption { padding-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.card__t { font-size: 13px; line-height: 1.4; color: var(--ink); }
.card__y { font: italic 400 16px/1 var(--serif); color: var(--ink-2); }
.card__c { grid-column: 1 / -1; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.grid[data-cols="6"] .card__t { font-size: 12px; }
.grid[data-cols="6"] .card__c { display: none; }
.badge {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(10, 15, 29, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink);
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px 6px 9px; border-radius: 999px;
}
.badge--lock { top: 10px; bottom: auto; background: rgba(14, 107, 62, .7); }
.badge--local { top: 10px; bottom: auto; left: auto; right: 10px; background: rgba(43, 58, 146, .75); }
.play { width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

.more { display: flex; justify-content: center; margin-top: 72px; }
.empty { text-align: center; padding: 100px 20px; }
.empty h3 { font: 400 clamp(32px, 4vw, 50px)/1.05 var(--serif); margin: 16px 0 12px; }
.empty p { color: var(--mute); margin: 0 auto 30px; max-width: 44ch; }

/* ---------- Panel lateral de filtros ---------- */
.scrim { position: fixed; inset: 0; z-index: 69; background: rgba(3, 6, 12, .6); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100%); background: var(--bg-2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .7s var(--ease); visibility: hidden; border-left: 1px solid var(--line); }
.drawer.open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font: 400 30px/1 var(--serif); margin: 0; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 28px 28px; }
.drawer__foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--line); }
.fgroup { padding: 24px 0 6px; }
.fgroup .eyebrow { margin-bottom: 10px; }
.opt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 13.5px; color: var(--ink-2); transition: color .3s, padding .4s var(--ease); }
.opt:hover { color: var(--ink); padding-left: 6px; }
.opt small { color: var(--mute); font-size: 11px; }
.opt.on { color: var(--ink); }
.opt.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--verde-suave); box-shadow: 0 0 10px var(--verde-suave); margin-right: -4px; order: -1; }
.opt span { flex: 1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.sel, .inp, .txt { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; outline: none; height: 44px; font-size: 14px; color: var(--ink); border-radius: 0; transition: border-color .4s; }
.txt { height: auto; min-height: 100px; padding: 10px 0; resize: vertical; line-height: 1.6; }
.sel { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23bcc0cb' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center / 12px no-repeat; }
.sel:focus, .inp:focus, .txt:focus { border-bottom-color: var(--verde-suave); }
.inp::placeholder, .txt::placeholder { color: var(--mute); }

/* ---------- Visor (lightbox) ---------- */
.lb {
  position: fixed; inset: 0; z-index: 90; background: #060912; color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.lb::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 30% 40%, rgba(14, 107, 62, .12), transparent), radial-gradient(50% 50% at 70% 70%, rgba(43, 58, 146, .14), transparent); }
.lb.open { opacity: 1; visibility: visible; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 60px 88px; min-height: 0; }
.lb__media { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.lb__media img, .lb__media video { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; animation: lbin .8s var(--ease) both; }
.lb__media video { width: 100%; background: #000; }
.lb__media iframe { width: 100%; max-width: 1280px; aspect-ratio: 16 / 9; border: 0; background: #000; }
@keyframes lbin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; display: grid; place-items: center; color: var(--ink); opacity: .45; transition: opacity .3s; }
.lb__nav:hover { opacity: 1; }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
.lb__pos { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; font-size: 10px; letter-spacing: .24em; color: var(--mute); }
.lb__info { position: relative; background: rgba(13, 19, 34, .85); border-left: 1px solid var(--line); padding: 88px 36px 40px; overflow: auto; }
.lb__info h2 { font: 400 40px/1.04 var(--serif); letter-spacing: -.02em; margin: 14px 0 10px; }
.lb__date { font: italic 400 19px/1.2 var(--serif); color: var(--ink-2); margin: 0 0 24px; }
.lb__desc { font-size: 14px; line-height: 1.75; color: var(--ink-2); margin: 0 0 30px; }
.meta { display: grid; grid-template-columns: 110px 1fr; margin: 0 0 28px; border-top: 1px solid var(--line); }
.meta dt, .meta dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.meta dt { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); padding-top: 13px; }
.meta dd { font-size: 13px; color: var(--ink); }
.meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color .3s; }
.meta a:hover { text-decoration-color: var(--verde-suave); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag { height: 30px; padding: 0 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; transition: background .4s, color .4s; }
.tag:hover { background: linear-gradient(100deg, rgba(14, 107, 62, .5), rgba(43, 58, 146, .5)); color: var(--ink); box-shadow: none; }
.lb__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lb__actions .btn { height: 42px; padding: 0 18px; }
.lb__close { position: absolute; top: 24px; right: 30px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; gap: 10px; align-items: center; z-index: 2; transition: color .3s; }
.lb__close:hover { color: var(--ink); }

/* ---------- Buscador ---------- */
.so { position: fixed; inset: 0; z-index: 80; background: rgba(8, 12, 24, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.so.open { opacity: 1; visibility: visible; }
.so__bar { display: flex; align-items: center; gap: 18px; padding: 24px var(--pad); border-bottom: 1px solid var(--line); color: var(--mute); }
.so__bar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 clamp(32px, 4.6vw, 64px)/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.so__bar input::placeholder { color: rgba(236, 233, 225, .2); }
.so__bar input::-webkit-search-cancel-button { display: none; }
.so__close { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.so__body { flex: 1; overflow: auto; padding: 32px var(--pad) 60px; }
.so__sug { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.so__sug .eyebrow { margin-bottom: 16px; }
.so__all { margin-top: 30px; }

/* ---------- Línea de tiempo ---------- */
.tlnav { position: sticky; top: var(--hdr); z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; padding: 12px var(--pad); background: rgba(10, 15, 29, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl { list-style: none; margin: 0; padding: 0 var(--pad) 130px; }
.tl__dec { position: relative; font: italic 400 clamp(38px, 4.6vw, 68px)/1 var(--serif); padding: 72px 0 20px; scroll-margin-top: calc(var(--hdr) + 70px); background: var(--tinte); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl__dec::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--verde-suave), var(--azul-suave) 45%, transparent); opacity: .7; }
.tl__year { display: grid; grid-template-columns: 200px minmax(0, 1fr) 120px; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl__num { font: 400 clamp(50px, 5vw, 78px)/.85 var(--serif); letter-spacing: -.03em; }
.tl__label .eyebrow { margin-top: 14px; }
.tl__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tl__strip .tl__th { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); cursor: pointer; position: relative; }
.tl__th img { width: 100%; height: 100%; object-fit: cover; }
.tl__th:hover img { transform: scale(1.05); }
.tl__th .play { position: absolute; left: 8px; bottom: 8px; color: var(--ink); border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.tl__empty { grid-column: 1 / -1; min-height: 110px; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--mute); font-size: 12.5px; background: linear-gradient(100deg, rgba(14, 107, 62, .06), rgba(43, 58, 146, .08)); border: 1px dashed var(--line-2); }
.tl__empty em { font: italic 400 20px var(--serif); color: var(--ink-2); display: block; margin-bottom: 4px; }
.tl__go { justify-self: end; padding-top: 8px; }

/* ---------- Categorías y colecciones ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4.4vw, 64px) clamp(14px, 1.6vw, 24px); }
.tile { display: block; }
.tile__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); position: relative; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile__media img { transform: scale(1.045); }
.tile__n { position: absolute; top: 14px; left: 14px; color: var(--ink); font-size: 10px; letter-spacing: .2em; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.tile__meta { padding-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.tile__t { font: 400 24px/1.1 var(--serif); letter-spacing: -.015em; }
.tile__c { font-size: 11px; color: var(--mute); white-space: nowrap; }
.tile__d { grid-column: 1 / -1; font-size: 12.5px; color: var(--mute); line-height: 1.6; margin-top: 2px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--3 .tile__media { aspect-ratio: 4 / 5; }
.tiles--3 .tile__t { font-size: 32px; }

.colhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pad); padding: clamp(56px, 7vw, 110px) var(--pad) clamp(44px, 5vw, 80px); align-items: end; }
.colhead__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.colhead__img img { width: 100%; height: 100%; object-fit: cover; }
.colhead .lead { margin-top: 24px; }
.colhead .eyebrow { margin-bottom: 20px; }

/* ---------- Cargar material ---------- */
.up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: 12px var(--pad) 130px; align-items: start; }
.up__left { position: sticky; top: calc(var(--hdr) + 24px); }
.drop { border: 1px dashed rgba(236, 233, 225, .25); min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; cursor: pointer; background: linear-gradient(135deg, rgba(14, 107, 62, .05), rgba(43, 58, 146, .07)); transition: background .5s, border-color .5s; }
.drop:hover, .drop.drag { background: linear-gradient(135deg, rgba(14, 107, 62, .16), rgba(43, 58, 146, .2)); border-color: var(--ink-2); }
.drop h3 { font: 400 clamp(28px, 2.8vw, 40px)/1.05 var(--serif); margin: 18px 0 10px; letter-spacing: -.02em; }
.drop p { color: var(--mute); margin: 0; font-size: 13px; }
.drop svg { color: var(--ink-2); }
.previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pv { position: relative; aspect-ratio: 1; background: var(--bg-2); overflow: hidden; }
.pv img, .pv video { width: 100%; height: 100%; object-fit: cover; opacity: 1 !important; }
.pv button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(10, 15, 29, .8); font-size: 10px; display: grid; place-items: center; }
.pv span { position: absolute; left: 4px; bottom: 4px; background: rgba(10, 15, 29, .8); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 6px; }
.form { display: grid; gap: 24px; }
.fld .eyebrow { display: block; margin-bottom: 4px; }
.fld .eyebrow b { color: var(--verde-suave); font-weight: 400; }
.hint { font-size: 11.5px; color: var(--mute); margin-top: 6px; }
.hint input[type="checkbox"] { accent-color: var(--verde); }
.access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.access label { display: block; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .4s, background .4s; }
.access label:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.access input { position: absolute; opacity: 0; pointer-events: none; }
.access b { display: block; font-weight: 400; font-size: 13px; }
.access small { color: var(--mute); font-size: 11.5px; line-height: 1.4; display: block; margin-top: 4px; }
.access label:has(input:checked) { box-shadow: inset 0 0 0 1px var(--verde-suave); background: linear-gradient(135deg, rgba(14, 107, 62, .2), rgba(43, 58, 146, .14)); }
.note { background: rgba(43, 58, 146, .12); border-left: 1px solid var(--azul-suave); padding: 16px 18px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.note b { font-weight: 500; color: var(--ink); }
.locals { margin-top: 44px; }
.locals__head { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; flex-wrap: wrap; }
.locals__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--verde-suave), var(--azul-suave) 45%, transparent); opacity: .7; }
.locals__head h3 { font: 400 28px/1 var(--serif); margin: 0; }
.lrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lrow__th { width: 52px; height: 52px; background: var(--bg-2); overflow: hidden; cursor: pointer; }
.lrow__th img { width: 100%; height: 100%; object-fit: cover; }
.lrow b { font-weight: 400; font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow small { color: var(--mute); font-size: 11.5px; }
.lrow button { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); transition: color .3s; }
.lrow button:hover { color: var(--ink); }
.gate { text-align: center; padding: 80px var(--pad) 150px; }
.gate p { color: var(--mute); max-width: 46ch; margin: 20px auto 32px; }

/* ---------- Pie de página ---------- */
.ftr {
  position: relative; padding: clamp(80px, 10vw, 140px) var(--pad) 30px; overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 107, 62, .10) 55%, rgba(43, 58, 146, .16) 100%);
}
.ftr::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.ftr__grid .eyebrow { margin-bottom: 18px; }
.ftr__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); }
.ftr__grid a { transition: color .3s; }
.ftr__grid a:hover { color: var(--ink); }
.ftr__lema { font: italic 400 clamp(24px, 2.2vw, 32px)/1.2 var(--serif); max-width: 22ch; margin: 0; color: var(--ink-2); }
.ftr__word {
  font: 400 32.6vw/.74 var(--serif); letter-spacing: -.045em; margin: clamp(70px, 10vw, 140px) 0 30px -.02em;
  white-space: nowrap; overflow: hidden; padding-bottom: .04em;
  background: linear-gradient(180deg, rgba(236, 233, 225, .9) 0%, rgba(183, 220, 199, .35) 55%, rgba(185, 196, 246, .04) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--mute); letter-spacing: .04em; border-top: 1px solid var(--line); padding-top: 22px; }
.borrador { display: inline-flex; align-items: center; gap: 8px; }
.borrador::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--verde-suave); box-shadow: 0 0 10px var(--verde-suave); }

/* ---------- Aviso emergente ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; translate: -50% 20px; background: var(--ink); color: var(--bg); padding: 14px 22px; font-size: 12.5px; letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), translate .5s var(--ease); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   Tabletas y celulares
   ========================================================================== */
@media (max-width: 1280px) {
  .logo__sub, .role__btn .tool__lbl { display: none; }
}
@media (max-width: 1100px) {
  .grid { --cols: 3; }
  .grid[data-cols="3"] { --cols: 2; }
  .grid[data-cols="6"] { --cols: 4; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1080px) {
  .hdr__in { grid-template-columns: auto 1fr auto; gap: 14px; }
  .hdr__burger { display: block; }
  .nav { display: none; }
  .hdr__tools { gap: 18px; }
}
@media (max-width: 900px) {
  :root { --hdr: 62px; }
  .tool__lbl { display: none; }
  .logo__word { font-size: 24px; }
  .hdr__tools { gap: 16px; }
  .hero { min-height: 520px; height: 88svh; }
  .hero__title { font-size: 24vw; }
  .hero__cap { display: none; }
  .decades { grid-template-columns: 1fr 1fr; }
  .idx__row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .idx__arrow { display: none; }
  .peek { display: none; }
  .phead { grid-template-columns: 1fr; }
  .phead__side { text-align: left; }
  .phead__img { display: none; }
  .tb-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .density { display: none; }
  .lb { grid-template-columns: 1fr; grid-template-rows: minmax(52vh, auto) auto; overflow: auto; }
  .lb__stage { padding: 60px 12px 44px; }
  .lb__media img, .lb__media video { max-height: 60vh; }
  .lb__info { border-left: 0; padding: 32px 22px 60px; }
  .lb__close { position: fixed; top: 18px; right: 18px; }
  .lb__nav { width: 44px; height: 44px; }
  .lb__prev { left: 0; }
  .lb__next { right: 0; }
  .so__sug { grid-template-columns: 1fr; gap: 28px; }
  .tl__year { grid-template-columns: 1fr; gap: 14px; }
  .tl__label { display: flex; align-items: baseline; gap: 16px; }
  .tl__label .eyebrow { margin-top: 0; }
  .tl__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tl__go { justify-self: start; padding-top: 0; }
  .tiles, .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__t, .tiles--3 .tile__t { font-size: 22px; }
  .colhead { grid-template-columns: 1fr; }
  .colhead__img { order: -1; }
  .up { grid-template-columns: 1fr; }
  .up__left { position: static; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .grid, .grid[data-cols="3"] { --cols: 2; }
  .grid[data-cols="6"] { --cols: 3; }
  .card__t { font-size: 12px; }
  .tl__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row2, .access { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 78%; }
  .rail-nav { display: none; }
  .intro__stats { gap: 18px; }
  .role__ico { display: block; }
  #role-name { display: none; }
  .role__menu { width: min(300px, calc(100vw - 32px)); }
}

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

/* Herramientas de publicación real: conservan la paleta y tipografía originales. */
.acciones-publicar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.acciones-publicar .btn { justify-content: center; text-align: center; }
.admin-login { display: flex; flex-direction: column; gap: 16px; margin: 24px auto 0; max-width: 420px; text-align: left; }
.admin-login .btn { align-self: flex-start; }
.admin-login #login-error { color: #ffb3ae; }
.lrow--admin { grid-template-columns: 80px minmax(0,1fr); }
.lrow__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lrow__buttons button { border: 1px solid var(--line); padding: 7px 9px; font-size: 11px; color: var(--ink-2); cursor: pointer; }
.lrow__buttons button:hover { border-color: var(--verde-suave); color: var(--ink); }
.lrow__buttons button:disabled { opacity: .45; cursor: progress; }
@media (max-width: 560px) { .acciones-publicar { grid-template-columns: 1fr; } }

.notice a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); white-space: nowrap; }

