/* ==========================================================================
   omarcontreras.cl — "Salar y cobre"
   Claro como el salar, azul noche del Pacífico y cobre del norte.
   Alegreya (títulos) + Alegreya Sans (texto). Animaciones solo con
   transform/opacity.
   ========================================================================== */
@font-face { font-family: "Alegreya"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/alegreya-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/alegreya-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/alegreya-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/alegreya-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f1f3f2;          /* salar */
  --paper: #ffffff;
  --ink: #14213d;         /* azul noche */
  --ink-2: #1e2f52;
  --copper: #b4612f;      /* cobre */
  --copper-d: #93491f;
  --muted: #5a6472;
  --line: rgba(20, 33, 61, .13);
  --line-strong: rgba(20, 33, 61, .3);
  --on-dark: #eef1f6;
  --on-dark-muted: #b4bdcd;
  --serif: "Alegreya", "Iowan Old Style", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 10px;
  --header-h: 82px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 1.125rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 2000; background: var(--ink); color: #fff; 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; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.container-wide { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.eyebrow, .kicker { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--copper-d); margin-bottom: .6rem; }
.eyebrow--light, .page-hero .kicker { color: #f0c7a8; }
.kicker a { color: inherit; }

/* Imágenes: color mientras cargan + aparición suave */
.pic { display: block; background-color: var(--c, #dfe3e2); }
.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 { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent; font: 700 1rem/1.2 var(--sans); text-decoration: none; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); box-shadow: 0 10px 24px rgba(20, 33, 61, .22); }
.btn--copper { background: var(--copper); color: #fff; }
.btn--copper:hover { background: var(--copper-d); box-shadow: 0 10px 24px rgba(180, 97, 47, .28); }
.btn--line, .btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover, .btn--ghost:hover { border-color: var(--ink); background: rgba(20, 33, 61, .04); }
.btn--line-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--line-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--light { background: #fff; color: var(--copper-d); }
.btn--sm { padding: .55em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.actions--center { justify-content: center; }
.link-more { font-weight: 700; color: var(--copper-d); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em; }
.link-more:hover { color: var(--ink); }
.link-arrow { font-weight: 700; color: var(--copper-d); }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(241, 243, 242, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
html.is-scrolled .site-header { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20, 33, 61, .06); background: rgba(241, 243, 242, .96); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); transition: height .3s var(--ease); }
html.is-scrolled .site-header__inner { height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark, .brand__img { width: 48px; height: 48px; flex: none; transition: transform .6s var(--ease), width .3s, height .3s; }
.brand:hover .brand__mark { transform: rotate(-20deg); }
html.is-scrolled .brand__mark { width: 40px; height: 40px; }
.brand__img img { height: 100%; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; }
.brand__tag { font-size: .85rem; color: var(--muted); }
.site-nav ul { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 22px); }
.site-nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 1.02rem; color: var(--ink); padding: 6px 0; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--copper-d); }
.nav-cta { display: inline-flex; align-items: center; gap: .4em; border: 1.5px solid var(--copper); color: var(--copper-d) !important; border-radius: 999px; padding: .4em 1em !important; transition: background-color .25s, color .25s; }
.nav-cta:hover { background: var(--copper); color: #fff !important; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); 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: 1080px) {
  .nav-toggle { display: block; flex: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(20, 33, 61, .12); padding: 8px 20px 22px; opacity: 0; visibility: hidden; transform: translateY(-8px); 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 { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .site-nav a::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 14px; border-bottom: 1.5px solid var(--copper) !important; }
}
@media (max-width: 460px) { .brand__tag { display: none; } .brand__name { font-size: 1.25rem; } }

/* Portada */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 8vw, 100px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.hero__title { font-size: clamp(3rem, 1.6rem + 6.2vw, 6.4rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 1.4rem; }
.hero__lead { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); color: #33405a; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__portrait { position: relative; justify-self: center; width: min(440px, 82vw); }
.hero__portrait .pic { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(20, 33, 61, .22); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait::after { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1.5px solid var(--copper); border-radius: 999px 999px 22px 22px; z-index: 0; }
.rosette { position: absolute; z-index: 0; width: 132%; aspect-ratio: 1; left: -16%; top: -10%; border-radius: 50%; border: 1.5px dashed rgba(180, 97, 47, .35); }
.rosette::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(20, 33, 61, .1); }
@media (prefers-reduced-motion: no-preference) {
  .hero__in { animation: rise .8s var(--ease) both; }
  .hero__text .hero__in:nth-child(2) { animation-delay: .1s; }
  .hero__text .hero__in:nth-child(3) { animation-delay: .2s; }
  .hero__text .hero__in:nth-child(4) { animation-delay: .3s; }
  .hero__portrait.hero__in { animation: portrait 1s var(--ease) .15s both; }
  .rosette { animation: spin 90s linear infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes portrait { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Próxima función */
.next-event { background: var(--ink); color: var(--on-dark); }
.next-event__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 18px; padding-bottom: 18px; }
.next-event__label { display: inline-flex; align-items: center; gap: .4em; color: #f0c7a8; font-weight: 700; }
.next-event__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; text-decoration: none; }
.next-event__date { color: var(--on-dark-muted); flex: 1; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--paper { background: var(--paper); }
.section--tight { padding-top: 30px; }
.sec-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.sec-head h2 { margin-bottom: .3em; }
.sec-head p, .sec-head__sub { color: var(--muted); font-size: 1.2rem; margin: 0; }
.section__more { margin-top: 2.4rem; }
.lead-text { max-width: 760px; font-size: 1.2rem; color: #33405a; margin-bottom: 2.4rem; }
.empty { padding: 2rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

/* Revelado al hacer scroll */
html.js .reveal:not(.in) { opacity: 0; }
html.js .reveal.in { animation: rise .65s var(--ease) backwards; }
.works > .reveal.in:nth-child(2n), .albums-row > .reveal.in:nth-child(3n+2), .video-grid > .reveal.in:nth-child(3n+2), .mosaic > .reveal.in:nth-child(4n+2), .cards > .reveal.in:nth-child(3n+2), .albums > .reveal.in:nth-child(3n+2) { animation-delay: .08s; }
.albums-row > .reveal.in:nth-child(3n), .video-grid > .reveal.in:nth-child(3n), .mosaic > .reveal.in:nth-child(4n+3), .cards > .reveal.in:nth-child(3n), .albums > .reveal.in:nth-child(3n) { animation-delay: .16s; }

/* Proyectos */
.works { display: grid; gap: clamp(26px, 3vw, 40px); }
@media (min-width: 760px) { .works { grid-template-columns: 1fr 1fr; } }
.work { background: var(--paper); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.work:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(20, 33, 61, .12); }
.work__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.work__media .pic { height: 100%; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s; }
.work:hover .work__media img { transform: scale(1.04); }
.work__body { padding: 24px 26px 28px; }
.work__meta { font-family: var(--serif); font-style: italic; color: var(--copper-d); margin-bottom: .4rem; }
.work h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.work h3 a { text-decoration: none; }
.work__body > p:not(.work__meta) { color: var(--muted); }

/* Banda oscura (obra destacada) */
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); padding: clamp(80px, 11vw, 140px) 0; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg .pic { height: 100%; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 33, 61, .96) 0%, rgba(20, 33, 61, .82) 45%, rgba(20, 33, 61, .35) 100%); }
.band__inner { max-width: 1200px; }
.band h2 { color: #fff; max-width: 22ch; }
.band__lead { font-size: 1.25rem; max-width: 32em; color: var(--on-dark); }

/* Discos */
.albums-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 22px; }
.albums-row--grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.album-card__cover { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 14px 30px rgba(20, 33, 61, .16); margin-bottom: 12px; transition: transform .35s var(--ease), box-shadow .35s; }
.album-card__cover .pic { height: 100%; }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card:hover .album-card__cover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 20px 40px rgba(20, 33, 61, .22); }
.album-card h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: .2rem; }
.album-card h3 a { text-decoration: none; }
.album-card__meta { color: var(--muted); font-size: .98rem; margin: 0; }
.price { color: var(--copper-d); font-weight: 700; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.video-card h3 { font-size: 1.15rem; line-height: 1.3; margin: .8rem 0 .2rem; }
.video-card__cat { font-family: var(--serif); font-style: italic; color: var(--copper-d); margin: 0; }
.video { margin: 0; }
.prose .video, .obra-main .video { margin: 2rem 0; }
.video__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .92; }
.video__btn:hover img { transform: scale(1.04); opacity: 1; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video__play .icon { width: 64px; height: 64px; padding: 18px 16px 18px 20px; border-radius: 50%; background: rgba(180, 97, 47, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.video__btn:hover .video__play .icon { transform: scale(1.08); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.chip { padding: .45em 1.1em; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Mosaico, álbumes y galería justificada */
.mosaic { columns: 4 220px; column-gap: 14px; }
.mosaic__item { position: relative; display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 8px; overflow: hidden; }
.mosaic__item img { transition: transform .7s var(--ease), opacity .5s; }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(180deg, transparent, rgba(20, 33, 61, .85)); color: #fff; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.mosaic__item:hover .mosaic__label { opacity: 1; transform: none; }
.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: 14px; overflow: hidden; text-decoration: none; }
.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 45%, rgba(20, 33, 61, .9)); }
.album__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px; display: grid; gap: 2px; }
.album__title { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: #fff; line-height: 1.2; }
.album__count { color: #f0c7a8; font-size: .95rem; }
.album:hover img { transform: scale(1.06); }
.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)); }
.jgrid__btn { display: block; width: 100%; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.jgrid__btn .pic { aspect-ratio: var(--r); }
.jgrid__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .5s; }
.jgrid__btn:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .jgrid { --rh: 180px; gap: 6px; } }
@media (max-width: 520px) { .jgrid { --rh: 120px; gap: 4px; } }

/* Visor */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 20, 38, .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; }
.lb__fig { display: grid; place-items: center; }
.lb__img { max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; border-radius: 4px; transition: opacity .22s, transform .3s var(--ease); }
.lb.is-changing .lb__img { opacity: 0; transform: scale(.985); }
.lb__cap { text-align: center; color: #f0c7a8; padding: 8px 20px 0; min-height: 1.6em; }
.lb__count { position: absolute; top: 20px; left: 22px; color: var(--on-dark-muted); font-size: .9rem; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(20, 33, 61, .6); color: #fff; display: grid; place-items: center; transition: border-color .2s, background-color .2s; }
.lb__btn:hover { border-color: #fff; background: var(--copper); }
.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__thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 16px; justify-content: safe center; }
.lb__thumbs button { flex: none; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; opacity: .45; border: 2px 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(--copper); }
@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 { left: calc(50% - 62px); } .lb__next { right: calc(50% - 62px); }
  .lb__thumbs { display: none; } .lb__cap { padding-bottom: 76px; }
}

/* Cabecera de páginas interiores */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: var(--ink); min-height: clamp(300px, 42vh, 460px); display: flex; align-items: flex-end; padding: 110px 0 clamp(36px, 5vw, 56px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg .pic { height: 100%; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 33, 61, .35) 0%, rgba(20, 33, 61, .9) 100%); }
.page-hero h1 { color: #fff; max-width: 20ch; margin-bottom: .3em; }
.page-hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); color: var(--on-dark); max-width: 40em; margin: 0; }
@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; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* Texto largo */
.prose { max-width: 70ch; }
.prose--long { font-size: 1.2rem; line-height: 1.75; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--copper-d); text-underline-offset: .2em; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--copper); }
.prose blockquote { margin: 1.8em 0; padding-left: 1.2em; border-left: 3px solid var(--copper); font-family: var(--serif); font-style: italic; font-size: 1.35rem; }
.prose img { border-radius: 8px; margin: 1.6em 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .95rem; color: var(--muted); margin-top: .5em; }
.post-lead { font-size: 1.35rem; font-family: var(--serif); font-style: italic; color: #33405a; margin-bottom: 1.8rem; }
.bio-grid { display: grid; gap: clamp(30px, 5vw, 70px); }
@media (min-width: 980px) { .bio-grid { grid-template-columns: minmax(0, 1fr) 340px; } .bio-aside { position: sticky; top: 100px; align-self: start; } }
.bio-aside { display: grid; gap: 12px; }
.arch { border-radius: 999px 999px 14px 14px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 20px 40px rgba(20, 33, 61, .16); }
.arch img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Ficha de proyecto (reutiliza la estructura de obra) */
.obra-grid, .product__grid { display: grid; gap: clamp(30px, 5vw, 64px); }
@media (min-width: 980px) { .obra-grid { grid-template-columns: minmax(0, 1fr) 360px; } .obra-side, .event-side { position: sticky; top: 100px; align-self: start; } .product__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } }
.glass { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 30px); box-shadow: 0 12px 34px rgba(20, 33, 61, .07); }
.obra-side__cover { border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.side-title { font-size: 1.25rem; margin: 0 0 .8rem; }
.ficha { margin-bottom: 22px; }
.ficha div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ficha dt { color: var(--muted); }
.ficha dd { margin: 0; font-weight: 500; }
.downloads { display: grid; gap: 10px; margin-bottom: 22px; }
.dl { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .2s var(--ease); }
.dl .icon { width: 26px; height: 26px; color: var(--copper); }
.dl small { display: block; font-weight: 400; color: var(--muted); }
.dl:hover { border-color: var(--copper); transform: translateY(-2px); }
.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(--line); }
.post-nav a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.post-nav small { display: block; font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .9rem; }
.post-nav__next { justify-content: flex-end; text-align: right; }
.post-nav__all { justify-content: center; font-family: var(--sans) !important; font-size: 1rem !important; color: var(--copper-d); }
@media (max-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav__all { display: none !important; } }
.crumbs { margin-bottom: .6rem; } .crumbs a { color: var(--copper-d); }

/* Producto */
.product__cover { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(20, 33, 61, .2); max-width: 520px; }
.product__cover img { aspect-ratio: 1; object-fit: cover; }
.product__info h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: .3rem; }
.product__meta { color: var(--muted); }
.product__price { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--copper-d); margin-bottom: 1rem; }
.listen { margin-top: 1.4rem; color: var(--muted); }
.listen a { color: var(--ink); font-weight: 700; }

/* Agenda */
.list-title { font-size: 1.5rem; margin: 2.2rem 0 1rem; }
.events { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.event--past { opacity: .8; }
.event__date { display: grid; justify-items: center; min-width: 74px; color: var(--copper-d); font-size: .9rem; text-transform: lowercase; line-height: 1.2; }
.event__date span { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--ink); line-height: 1; }
.event__body h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.event__body h3 a { text-decoration: none; }
.event__body p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .event { grid-template-columns: auto 1fr; } .event .btn { grid-column: 1 / -1; } }

/* Donar */
.donate { text-align: center; }
.donate .prose { margin: 0 auto; }
.donate__mark { width: 84px; height: 84px; margin: 0 auto 1.6rem; }

/* Llamados finales */
.cta-split { padding: 0 0 clamp(64px, 9vw, 110px); }
.cta-split__grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .cta-split__grid { grid-template-columns: 1fr 1fr; } }
.cta-box { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 44px); }
.cta-box h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: .4em; }
.cta-box p { color: var(--muted); font-size: 1.15rem; }
.cta-box--copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.cta-box--copper h2, .cta-box--copper p { color: #fff; }

/* Tarjetas del blog */
.cards { display: grid; gap: 28px; }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(20, 33, 61, .1); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.card__media .pic { height: 100%; } .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__meta { color: var(--copper-d); font-family: var(--serif); font-style: italic; margin-bottom: .3rem; }
.card h3 { font-size: 1.35rem; margin-bottom: .5rem; } .card h3 a { text-decoration: none; }
.card__body > p:not(.card__meta) { color: var(--muted); flex: 1; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 2.6rem; color: var(--muted); }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share > span:first-child { font-weight: 700; margin-right: 6px; }
.share a, .share button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .2s, color .2s, border-color .2s; }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share__status { color: var(--copper-d); }

/* Contacto y formularios */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-list { display: grid; gap: 12px; margin: 22px 0 26px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { color: var(--copper); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.social a:hover { background: var(--copper); border-color: var(--copper); color: #fff; transform: translateY(-3px); }
.social--dark a { border-color: rgba(255, 255, 255, .25); color: #fff; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font: 400 1.05rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(180, 97, 47, .18); }
.has-error input, .has-error textarea { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .95rem; margin: 6px 0 0; }
.form .btn { justify-self: start; }
.form .btn--block { justify-self: stretch; }
.form__note { font-size: .95rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; border-left: 4px solid; background: var(--paper); }
.notice p { margin: 0; }
.notice--ok { border-color: #2f7a4b; }
.notice--error { border-color: #b3261e; background: #fbeceb; }
.notice h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* Pie */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 28px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #f0c7a8; }
.footer-grid { display: grid; gap: 36px; margin-bottom: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1fr; } }
.footer-mark { width: 56px; height: 56px; margin-bottom: 12px; }
.footer-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.footer-links { display: grid; gap: 6px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: #f0c7a8; }
.footer-contact .social { margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { margin: 0; }
.footer-credit { color: #f0c7a8; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background-color .2s; }
html.is-scrolled .to-top { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.to-top:hover { background: var(--copper); }

@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 { display: none !important; } }

/* Pagos: tarjeta + transferencia */
.pay { margin-top: 1.6rem; display: grid; gap: 12px; }
.pay__buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.donate .pay__buttons { justify-content: center; }
.pay__note { color: var(--muted); font-size: 1rem; margin: 0; }
.pay__transfer { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px; text-align: left; }
.pay__transfer[open] { padding-bottom: 20px; }
.pay__transfer summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pay__transfer summary::-webkit-details-marker { display: none; }
.pay__transfer summary::after { content: "+"; font-size: 1.4rem; color: var(--copper); transition: transform .25s var(--ease); }
.pay__transfer[open] summary::after { transform: rotate(45deg); }
.bank { margin: 4px 0 14px; }
.bank div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-weight: 500; word-break: break-word; }
.copy { flex: none; font-size: .85rem; font-weight: 700; color: var(--copper-d); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .2em .8em; transition: background-color .2s, color .2s, border-color .2s; }
.copy:hover, .copy.is-done { background: var(--ink); border-color: var(--ink); color: #fff; }
.pay__transfer .form { margin-top: 12px; }
@media (max-width: 480px) { .bank div { grid-template-columns: 1fr; gap: 2px; } }
.product__info .pay__transfer .form__row { grid-template-columns: 1fr; }
.product__info .bank div { grid-template-columns: 6.5rem 1fr; }

/* Función fija semanal (Agenda) */
.fixed { display: grid; gap: 22px; background: var(--paper); border: 1.5px solid var(--copper); border-radius: 18px; padding: clamp(18px, 3vw, 28px); margin-bottom: 1rem; box-shadow: 0 16px 40px rgba(20, 33, 61, .08); }
@media (min-width: 760px) { .fixed { grid-template-columns: 240px 1fr; align-items: center; } }
.fixed__poster { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 28px rgba(20, 33, 61, .2); transition: transform .3s var(--ease); }
.fixed__poster:hover { transform: rotate(-1deg) translateY(-3px); }
.fixed__pin { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--copper-d); font-size: .95rem; }
.fixed h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: .3rem 0 .8rem; }
.fixed h2 a { text-decoration: none; }
.fixed__days { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: .9rem; }
.fixed__days li { background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 14px; display: grid; line-height: 1.2; }
.fixed__days b { font-size: .85rem; color: #f0c7a8; font-weight: 700; }
.fixed__days span { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.fixed__place { display: flex; gap: .4em; align-items: center; color: var(--muted); margin-bottom: .3rem; }
.fixed__place .icon { color: var(--copper); }
.fixed__next { margin: 0; }
.fixed .actions { margin-top: 1rem; }
.event-side__poster { border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
