/* ==========================================================================
   Memorias de Tarapacá — identidad original (negro, dorado, carmesí, Cinzel)
   reconstruida sin WordPress: liviana, rápida y con animaciones solo de
   transform/opacity (aceleradas por GPU).
   ========================================================================== */

@font-face { font-family: "Cinzel"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #080809;
  --bg-alt: #0b0b0d;
  --card: #121214;
  --input: #1b1b1e;
  --gold: #e5c158;
  --gold-hover: #f2d379;
  --gold-dark: #b3923b;
  --crimson: #991b1b;
  --crimson-hover: #c22f2f;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --border: rgba(229, 193, 88, .12);
  --border-strong: rgba(229, 193, 88, .3);
  --grad-gold: linear-gradient(135deg, #fff7d6 0%, #e5c158 50%, #b3923b 100%);
  --grad-crimson: linear-gradient(135deg, #ffb6b6 0%, #ff5e5e 50%, #b31e1e 100%);
  --font: "Cinzel", "Trajan Pro", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 90px;
  --radius: 8px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% -20%, #201010 0%, #080809 70%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 16.5px/1.85 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-hover); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 2000; background: var(--gold); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 60px; pointer-events: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.center { text-align: center; }

/* Tipografía */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.25; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.25rem; letter-spacing: 1.5px; }
.gold, .crimson {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.crimson { background-image: var(--grad-crimson); }
.gold a, .crimson a { -webkit-text-fill-color: transparent; color: transparent; background: inherit; -webkit-background-clip: text; background-clip: text; }
p { color: var(--muted); }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 4px; font-weight: 600; font-size: clamp(.8rem, .7rem + .3vw, 1.05rem); margin-bottom: 1.1rem; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.kicker a { color: inherit; }
.kicker a:hover { color: var(--gold-hover); }

/* Brillo dorado que recorre el título una vez */
@media (prefers-reduced-motion: no-preference) {
  .shine {
    background-image: linear-gradient(110deg, #b3923b 0%, #e5c158 28%, #fff7d6 42%, #fff 46%, #fff7d6 50%, #e5c158 64%, #b3923b 100%);
    background-size: 250% 100%;
    animation: shine 2.6s var(--ease) .35s both;
  }
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* Contenedores */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-wide { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 104px) 0; position: relative; }
.section--alt { background-color: var(--bg-alt); }
.section--tight { padding-top: 32px; }

.sec-head { text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin: 0 auto 44px; max-width: 900px; }
.sec-head h2 { margin-bottom: 8px; }
.sec-head__sub { font-style: italic; text-transform: uppercase; color: var(--muted); font-size: clamp(.9rem, .8rem + .3vw, 1.1rem); letter-spacing: 1px; margin: 0; }
.lead-text { max-width: 800px; margin: 0 auto 48px; text-align: center; font-size: 1.05rem; }
.lead-text p { margin-bottom: 1rem; }
.empty { text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--border-strong); border-radius: var(--radius); max-width: 700px; margin: 0 auto; }

/* Imágenes: color de fondo mientras cargan y aparición suave */
.pic { display: block; background-color: var(--c, #121214); }
.pic img { width: 100%; height: auto; }
html.js .pic img { opacity: 0; transition: opacity .5s ease; }
html.js .pic img.ld { opacity: 1; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 30px; border-radius: 50px; border: 1px solid transparent; overflow: hidden;
  font-family: var(--font); font-weight: 700; font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, border-color .25s, color .25s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--gold { background: linear-gradient(135deg, #f2d379 0%, #e5c158 50%, #c9a646 100%); color: var(--bg); }
.btn--gold:hover { color: var(--bg); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(229, 193, 88, .28); }
.btn--gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: rgba(8, 8, 9, .25); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
.btn--crimson { background: var(--crimson); color: #fff; }
.btn--crimson:hover { background: var(--crimson-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(194, 47, 47, .3); }
.btn--sm { padding: 10px 24px; font-size: .78rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 700; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .25s var(--ease); }
.link-arrow:hover::after { width: 30px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(8, 8, 9, .75);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .4);
  transition: background-color .35s, box-shadow .35s, border-color .35s;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); transition: height .35s var(--ease); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand__logo { width: auto; height: 56px; background: none; transition: height .35s var(--ease); }
.brand__logo img { height: 100%; width: auto; }
.brand__name { font-weight: 700; font-size: 1.35rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); white-space: nowrap; transition: font-size .35s var(--ease); }
html.is-scrolled .site-header { background-color: rgba(6, 6, 7, .97); box-shadow: 0 10px 40px rgba(0, 0, 0, .85); border-bottom-color: rgba(229, 193, 88, .25); }
html.is-scrolled .site-header__inner { height: 66px; }
html.is-scrolled .brand__logo { height: 40px; }
html.is-scrolled .brand__name { font-size: 1.15rem; }

.site-nav ul { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; }
.site-nav a { position: relative; display: block; padding: 10px 0; color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border: 1px solid var(--border-strong); border-radius: 50%; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; flex: none; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6, 6, 7, .98); border-bottom: 1px solid var(--border-strong);
    padding: 12px 20px 26px; box-shadow: 0 30px 40px rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 15px 0; font-size: .95rem; border-bottom: 1px solid var(--border); }
  .site-nav a::after { display: none; }
}
@media (max-width: 480px) {
  :root { --header-h: 74px; }
  .brand__logo { height: 44px; }
  .brand__name { font-size: 1rem; letter-spacing: 1px; }
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; isolation: isolate; padding: 100px 0; }
.hero__bg, .feature__bg, .page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 9, .5) 0%, rgba(8, 8, 9, .62) 55%, rgba(8, 8, 9, .96) 100%); }
.hero__bg .pic, .feature__bg .pic, .page-hero__bg .pic { height: 100%; }
.hero__img img, .feature__img img, .page-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__inner { max-width: 960px; }
.hero__title { font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.2rem); line-height: 1.15; margin-bottom: 26px; filter: drop-shadow(0 4px 15px rgba(0, 0, 0, .9)); }
.hero__text { max-width: 720px; margin: 0 auto 36px; }
.hero__text p { color: #fff; font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem); line-height: 1.8; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.hero__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 44px; height: 44px; margin-left: -22px; border: 1px solid var(--border-strong); border-radius: 50%; display: grid; place-items: center; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .hero__img img { animation: settle 7s var(--ease) both; }
  .hero__in { animation: rise .8s var(--ease) both; }
  .hero__in:nth-child(2) { animation-delay: .12s; }
  .hero__in:nth-child(3) { animation-delay: .24s; }
  .hero__in:nth-child(4) { animation-delay: .36s; }
  .hero__scroll { animation: bob 2.4s ease-in-out 1.2s infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Cabecera de páginas interiores */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; min-height: clamp(320px, 46vh, 520px); padding: 90px 0 70px; border-bottom: 4px solid var(--gold); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 9, .45) 0%, rgba(8, 8, 9, .95) 100%); }
.page-hero:not(.has-img)::before { background: radial-gradient(circle at 50% 0%, #2a1212 0%, #080809 75%); }
.page-hero h1 { margin-bottom: 12px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .8)); }
.page-hero__sub { font-style: italic; color: var(--text); font-size: clamp(1rem, .9rem + .4vw, 1.3rem); max-width: 760px; margin: 0 auto; text-shadow: 0 2px 6px rgba(0, 0, 0, .9); }
@media (prefers-reduced-motion: no-preference) {
  .page-hero__img img { animation: settle 5s var(--ease) both; }
  .page-hero__inner > * { animation: rise .7s var(--ease) both; }
  .page-hero__inner > :nth-child(2) { animation-delay: .1s; }
  .page-hero__inner > :nth-child(3) { animation-delay: .2s; }
}

/* ---------- Revelado al hacer scroll (animación que no bloquea los efectos al pasar el mouse) ---------- */
html.js .reveal:not(.in) { opacity: 0; }
html.js .reveal.in { animation: rise .65s var(--ease) backwards; }
.cards > .reveal.in:nth-child(3n+2), .members > .reveal.in:nth-child(4n+2), .mosaic > .reveal.in:nth-child(4n+2), .albums > .reveal.in:nth-child(3n+2) { animation-delay: .08s; }
.cards > .reveal.in:nth-child(3n), .members > .reveal.in:nth-child(4n+3), .mosaic > .reveal.in:nth-child(4n+3), .albums > .reveal.in:nth-child(3n) { animation-delay: .16s; }
.members > .reveal.in:nth-child(4n), .mosaic > .reveal.in:nth-child(4n) { animation-delay: .24s; }

/* ---------- Integrantes ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; max-width: 1100px; margin: 0 auto 40px; }
.member { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; padding-bottom: 18px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.member:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(212, 175, 55, .12); }
.member__photo { aspect-ratio: 1; overflow: hidden; background: #17171a; display: grid; place-items: center; margin-bottom: 14px; }
.member__photo .pic { width: 100%; height: 100%; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s var(--ease), opacity .5s; }
.member:hover .member__photo img { transform: scale(1.05); }
.member__initial { font-size: 4rem; font-weight: 700; color: var(--border-strong); }
.member__name { font-size: 1.02rem; letter-spacing: .5px; margin: 0 12px 4px; color: var(--gold); }
.member__role { font-size: .78rem; font-style: italic; text-transform: uppercase; color: var(--text); margin: 0 12px; line-height: 1.5; }
.member__bio { font-size: .85rem; margin: 10px 16px 0; line-height: 1.6; }

/* ---------- Tarjetas (obras y blog) ---------- */
.cards { display: grid; gap: 30px; margin: 0 auto 44px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 1140px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(212, 175, 55, .15); }
.card__media { display: block; height: 220px; overflow: hidden; background: #17171a; }
.card__media .pic { height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card__meta { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.card__body > p:not(.card__meta) { font-size: .9rem; line-height: 1.65; margin-bottom: 20px; flex-grow: 1; }
.card .btn { align-self: flex-start; }

/* ---------- Obra destacada (memoria social) ---------- */
.feature { position: relative; isolation: isolate; overflow: hidden; padding: clamp(90px, 12vw, 150px) 0; min-height: 80vh; display: flex; align-items: center; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 9, .78) 0%, rgba(8, 8, 9, .95) 100%), radial-gradient(circle at 20% 50%, rgba(153, 27, 27, .35), transparent 60%); }
.feature__img img { filter: grayscale(.2); }
.feature__inner { max-width: 900px; }
.feature__tag { color: #ff5e5e; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: .85rem; margin-bottom: 14px; }
.feature h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); margin-bottom: 20px; }
.feature__lead { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Mosaico de fotos (inicio y obras) ---------- */
.mosaic { columns: 4 220px; column-gap: 14px; margin: 0 auto 40px; }
.mosaic__item { position: relative; display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: border-color .3s; }
.mosaic__item img { transition: transform .7s var(--ease), opacity .5s; }
.mosaic__item:hover { border-color: var(--gold); }
.mosaic__item:hover img { transform: scale(1.06); }
.mosaic__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(180deg, transparent, rgba(8, 8, 9, .9)); color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.mosaic__item:hover .mosaic__label, .mosaic__item:focus-visible .mosaic__label { opacity: 1; transform: none; }

/* ---------- Álbumes ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.albums--small { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.album { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: border-color .35s, box-shadow .35s; }
.album__media, .album__media .pic { position: absolute; inset: 0; height: 100%; }
.album__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 8, 9, .92) 100%); }
.album__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; display: grid; gap: 4px; }
.album__title { font-weight: 700; font-size: 1.1rem; letter-spacing: 1.5px; text-transform: uppercase; color: #fff7d6; line-height: 1.3; }
.album__count { font-size: .78rem; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.album:hover { border-color: var(--gold); box-shadow: 0 14px 30px rgba(212, 175, 55, .14); }
.album:hover img { transform: scale(1.07); }

/* ---------- Galería justificada (filas parejas, sin recortes raros) ---------- */
.jgrid { --rh: 260px; display: flex; flex-wrap: wrap; gap: 8px; }
.jgrid::after { content: ""; flex-grow: 1000000; }
.jgrid__item { flex: calc(var(--r) * 1000) 1 calc(var(--r) * var(--rh)); position: relative; }
.jgrid__btn { display: block; width: 100%; border-radius: 4px; overflow: hidden; cursor: zoom-in; position: relative; }
.jgrid__btn .pic { aspect-ratio: var(--r); }
.jgrid__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .5s, filter .3s; }
.jgrid__btn::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; border-radius: 4px; transition: border-color .3s; }
.jgrid__btn:hover img { transform: scale(1.04); filter: brightness(1.08); }
.jgrid__btn:hover::after { border-color: var(--gold); }
@media (max-width: 900px) { .jgrid { --rh: 180px; gap: 6px; } }
@media (max-width: 520px) { .jgrid { --rh: 120px; gap: 4px; } }

/* ---------- Visor de fotos ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 5, 6, .97); display: grid; grid-template-rows: 1fr auto auto; opacity: 0; transition: opacity .25s; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__stage { display: grid; place-items: center; min-height: 0; padding: 64px 76px 8px; touch-action: pan-y; }
.lb__fig { display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.lb__img { max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; border-radius: 3px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transition: opacity .22s, transform .3s var(--ease); }
.lb.is-changing .lb__img { opacity: 0; transform: scale(.985); }
.lb.is-open:not(.is-changing) .lb__img { animation: lbin .35s var(--ease); }
@keyframes lbin { from { transform: scale(.96); } to { transform: none; } }
.lb__cap { text-align: center; color: var(--gold); font-size: .85rem; letter-spacing: 1px; padding: 8px 20px 0; min-height: 1.6em; }
.lb__count { position: absolute; top: 20px; left: 22px; color: var(--muted); font-size: .8rem; letter-spacing: 2px; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(18, 18, 20, .7); color: var(--gold); display: grid; place-items: center; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.lb__btn:hover { border-color: var(--gold); background: rgba(229, 193, 88, .12); }
.lb__btn .icon { width: 24px; height: 24px; }
.lb__close { top: 12px; right: 14px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb__prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb__next:hover { transform: translateY(-50%) translateX(2px); }
.lb__thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; justify-content: safe center; }
.lb__thumbs button { flex: none; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; opacity: .45; border: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.lb__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumbs button.is-current { opacity: 1; border-color: var(--gold); }
.lb__thumbs button:hover { opacity: .85; }
@media (max-width: 700px) {
  .lb__stage { padding: 56px 6px 6px; }
  .lb__img { max-height: calc(100vh - 150px); }
  .lb__prev, .lb__next { top: auto; bottom: 14px; transform: none; }
  .lb__prev:hover, .lb__next:hover { transform: none; }
  .lb__prev { left: calc(50% - 62px); }
  .lb__next { right: calc(50% - 62px); }
  .lb__thumbs { display: none; }
  .lb__cap { padding-bottom: 76px; }
}

/* ---------- Texto largo ---------- */
.prose { color: var(--muted); }
.prose p { margin-bottom: 1.4rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose--long { font-size: 1.02rem; line-height: 1.95; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 2.6rem 0 1.1rem; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 .8rem; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose blockquote { margin: 2rem 0; padding: 22px 26px; border-left: 3px solid var(--gold); background: rgba(229, 193, 88, .05); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.4rem 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: 6px; border: 1px solid var(--border); margin: 1.8rem auto; }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .8rem; text-align: center; margin-top: .5rem; }
.prose hr { border: 0; height: 1px; background: var(--border-strong); margin: 2.5rem 0; }
.post-lead { font-size: 1.2rem; color: var(--text); line-height: 1.75; margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--border); }

/* ---------- Línea de tiempo ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding: 10px 0; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--border-strong) 8%, var(--border-strong) 92%, transparent); }
.timeline__item { position: relative; padding-left: 80px; margin-bottom: 40px; }
.timeline__dot { position: absolute; left: 20px; top: 26px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 4px solid var(--gold); transition: background-color .3s, box-shadow .3s; }
.timeline__item:hover .timeline__dot { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.timeline__content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; transition: border-color .3s; }
.timeline__item:hover .timeline__content { border-color: var(--gold); }
.timeline__date { display: inline-block; padding: 3px 14px; background: var(--crimson); color: #fff; border-radius: 20px; font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 12px; }
.timeline__content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline__content p { margin: 0; font-size: .92rem; }

/* ---------- Nosotros ---------- */
.split { display: grid; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

/* ---------- Ficha de obra ---------- */
.obra-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .obra-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; } .obra-side { position: sticky; top: 100px; align-self: start; } }
.glass { background: rgba(22, 22, 24, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: 0 8px 32px rgba(0, 0, 0, .5); }
.obra-side__cover { border-radius: 6px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border); }
.side-title { font-size: .95rem; letter-spacing: 2px; border-left: 3px solid var(--gold); padding-left: 12px; margin: 0 0 14px; }
.ficha { margin-bottom: 26px; }
.ficha div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.ficha dt { color: var(--gold); font-weight: 600; letter-spacing: .5px; }
.ficha dd { color: var(--text); }
.downloads { display: grid; gap: 10px; margin-bottom: 24px; }
.dl { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: rgba(229, 193, 88, .04); color: var(--text); font-weight: 700; font-size: .85rem; letter-spacing: .8px; text-transform: uppercase; line-height: 1.35; transition: border-color .25s, transform .25s var(--ease), background-color .25s; }
.dl .icon { width: 28px; height: 28px; color: var(--gold); }
.dl small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; letter-spacing: 1px; }
.dl:hover { border-color: var(--gold); transform: translateY(-2px); background: rgba(229, 193, 88, .08); color: var(--gold); }
.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-top: 30px; padding-bottom: 60px; border-top: 1px solid var(--border); }
.post-nav a { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }
.post-nav a:hover { color: var(--gold); }
.post-nav small { display: block; color: var(--muted); font-size: .7rem; font-weight: 400; }
.post-nav__next { justify-content: flex-end; text-align: right; }
.post-nav__all { justify-content: center; color: var(--gold) !important; font-size: .75rem !important; }
@media (max-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav__all { display: none !important; } }

/* Video bajo demanda */
.video { margin: 2rem 0; }
.video__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: #000; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s; }
.video__btn:hover img { opacity: .9; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.video__play .icon { width: 74px; height: 74px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* Compartir y paginación */
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.share > span:first-child { color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-right: 6px; }
.share a, .share button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text); transition: background-color .25s, color .25s, border-color .25s; }
.share a:hover, .share button:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.share__status { color: var(--gold); font-size: .8rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .85rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 44px; max-width: 1060px; margin: 0 auto; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--muted); }
.contact-list .icon { color: var(--gold); width: 20px; height: 20px; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--gold); }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--border); color: var(--text); transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.social a:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); transform: translateY(-3px); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; font: 400 .95rem/1.5 var(--font); color: var(--text); background: var(--input); border: 1px solid var(--border-strong); border-radius: 6px; transition: border-color .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229, 193, 88, .15); }
.has-error input, .has-error textarea { border-color: var(--crimson-hover); }
.field__error { color: #ff7a7a; font-size: .8rem; margin-top: 6px; }
.form .btn { justify-self: start; }
.form__note { font-size: .75rem; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: 6px; margin-bottom: 18px; border-left: 3px solid; background: rgba(255, 255, 255, .03); }
.notice p { margin: 0 0 .4rem; color: var(--text); }
.notice--ok { border-color: var(--gold); }
.notice--error { border-color: var(--crimson-hover); background: rgba(153, 27, 27, .12); }
.notice h2 { font-size: 1.3rem; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* ---------- Pie ---------- */
.site-footer { background-color: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 30px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-widget h3 { font-size: 1.05rem; border-left: 3px solid var(--gold); padding-left: 10px; margin-bottom: 20px; }
.footer-widget p { font-size: .9rem; line-height: 1.75; }
.footer-logo { display: block; width: 96px; margin-bottom: 18px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--muted); font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }
.footer-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-line .icon { color: var(--gold); }
.footer-line a { color: var(--text); }
.footer-widget .social { margin-top: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; text-align: center; }
.footer-bottom p { font-size: .8rem; margin: 0; }
.footer-bottom .footer-credit { margin-top: 6px; color: var(--gold); opacity: .8; letter-spacing: 1px; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border-strong); color: var(--gold); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background-color .25s, color .25s; }
html.is-scrolled .to-top { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background-color .25s, color .25s; }
.to-top:hover { background: var(--gold); color: var(--bg); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js .reveal:not(.in) { opacity: 1; }
}
@media print { .site-header, .site-footer, .to-top, .share, .hero__scroll { display: none !important; } body { background: #fff; color: #000; } }
