/* Sitio de Angeles Clemente
   Estructura tipo MoMA, series separadas como las exposiciones del Met.
   Fondos: blanco, gris y #161616. El amarillo solo para gestos gráficos. */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wrap > *, .bio > *, .collection > *, .split > *, .piece > *, .cards-2 > *, .chapter-head > * { min-width: 0; }

/* ---------- Encabezado: se compacta al hacer scroll ---------- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--paper); transition: box-shadow .25s; }
.site-head.compact { box-shadow: 0 1px 0 var(--line); }
.head-spacer { height: var(--head-h, 136px); }
.head-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; padding-top: 22px; padding-bottom: 0; transition: padding .3s ease; }
.wordmark { order: 1; font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 3.1vw, 44px); line-height: 1; letter-spacing: -0.012em; text-decoration: none; white-space: nowrap; transition: font-size .3s ease; }
.utility { order: 2; margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav { order: 3; flex-basis: 100%; display: flex; gap: 30px; padding: 18px 0 14px; }
.nav a { font-size: 17px; font-weight: 600; text-decoration: none; padding-bottom: 3px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.menu-btn { display: none; order: 2; background: none; border: 0; padding: 8px 0; font-weight: 600; font-size: 16px; cursor: pointer; }
@media (min-width: 1100px) {
  .site-head.compact .head-inner { padding-top: 12px; padding-bottom: 12px; }
  .site-head.compact .wordmark { font-size: 24px; }
  .site-head.compact .nav { order: 2; flex-basis: auto; padding: 0; gap: 24px; position: relative; padding-left: 28px; animation: navIn .35s ease; }
  .site-head.compact .nav::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 22px; transform: translateY(-50%); background: var(--ink); }
  .site-head.compact .nav a { font-size: 15px; }
  .site-head.compact .utility { order: 3; }
  .site-head.compact .utility .btn { min-height: 36px; padding: 7px 14px; font-size: 14px; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px; border: 0; border-radius: 2px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--dark-hover); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.on-dark .btn-primary, .btn-light { background: #fff; color: var(--dark); }
.on-dark .btn-primary:hover, .btn-light:hover { background: #e6e6e6; }
.on-dark .btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
.on-dark .btn-line:hover { background: #fff; color: var(--dark); }

/* ---------- Tipografía (Met) ---------- */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.06; margin: 0; }
.h1 { font-size: clamp(42px, 5.6vw, 84px); }
.h2 { font-size: clamp(32px, 3.5vw, 52px); }
.h3 { font-size: clamp(24px, 2.2vw, 32px); }
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.7vw, 40px); line-height: 1.3; letter-spacing: -0.006em; margin: 0; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: .02em; margin: 0 0 16px; }
.kicker::before { content: ""; width: 28px; height: 4px; background: var(--yellow); flex: none; }
.on-dark .kicker { color: var(--yellow); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 760px; margin: 18px 0 0; }
.muted { color: var(--muted); }
.arrow-link { font-weight: 600; text-decoration: none; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* ---------- Bandas de fondo ---------- */
.band { padding: clamp(60px, 7.5vw, 118px) 0; }
.band-tight { padding: clamp(40px, 5vw, 72px) 0; }
.bg-gray { background: var(--gray); }
.bg-dark, .on-dark { background: var(--dark); color: #fff; }
.on-dark .muted, .on-dark .lead { color: #c9c9c9; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: clamp(28px, 3vw, 42px); }

/* ---------- Portada: banner + título de la serie ---------- */
.banner { background: var(--paper); padding: 8px 0 0; }
.banner-media { display: block; }
.banner-media img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.feature { padding: clamp(36px, 4.5vw, 64px) 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.feature .meta { margin: 18px 0 0; font-size: 17px; font-weight: 600; color: #fff; }
.feature .meta span { color: #c9c9c9; font-weight: 400; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Series (tarjetas como las exposiciones del Met) ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); align-items: stretch; }
.serie-card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.serie-card .media { aspect-ratio: 3 / 2; background: var(--gray); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.serie-card .media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.serie-card .media.cover img { object-fit: cover; }
.serie-card:hover .media img { transform: scale(1.02); }
.serie-card .body { padding-top: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.serie-card .lbl { font-size: 14px; font-weight: 700; color: var(--muted); }
.serie-card h3 { font-family: var(--sans); font-weight: 800; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.serie-card .date { font-weight: 600; }
.serie-card p { margin: 6px 0 0; color: #333; }
.serie-card .go { margin-top: auto; padding-top: 14px; font-weight: 600; }
.serie-card .go::after { content: " →"; }
.serie-card:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }

/* ---------- Cuadrícula de obra ---------- */
.grid { display: grid; gap: 38px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.work .thumb { aspect-ratio: 4 / 5; background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.work .thumb img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.bg-gray .work .thumb { background: #fff; }
.work:hover .thumb img { opacity: .85; }
.work .cap { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.work .t { font-weight: 600; font-style: italic; font-size: 17px; line-height: 1.3; }
.work .m { font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.work .st { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.work .st::before { content: ""; width: 8px; height: 8px; background: var(--yellow); }
.work .st:empty { display: none; }
.work[hidden] { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 34px; }
.chip { border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 9px 16px; border-radius: 2px; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Encabezado de serie (Met) ---------- */
.serie-head { padding: clamp(44px, 5.5vw, 84px) 0 clamp(36px, 4vw, 56px); }
.serie-head .meta { margin-top: 18px; font-size: 18px; font-weight: 600; }
.serie-head .meta span { font-weight: 400; }
.subnav { display: flex; gap: 6px 26px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.28); }
.bg-gray .subnav, .subnav.dark { border-top-color: var(--line); }
.subnav a { font-size: 15px; font-weight: 600; text-decoration: none; }
.subnav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.page-head { padding-top: clamp(44px, 5.5vw, 84px); padding-bottom: clamp(32px, 3.5vw, 48px); }

/* ---------- Textos ---------- */
.epigraph { margin: 0; max-width: 980px; }
.epigraph cite { display: block; font-family: var(--sans); font-style: normal; font-size: 15px; color: var(--muted); margin-top: 18px; }
.epigraph.rule { border-left: 4px solid var(--yellow); padding-left: clamp(20px, 2.4vw, 36px); }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.text-block { max-width: 760px; font-size: 18px; }
.text-block p { margin: 0 0 1.1em; }
.more.collapsed .more-body { max-height: 13.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.more-btn { background: none; border: 0; padding: 0; font-weight: 600; cursor: pointer; margin-top: 6px; }
.more-btn::after { content: " +"; }
.more:not(.collapsed) .more-btn::after { content: " −"; }
.side-note { background: #fff; padding: 28px; border-top: 4px solid var(--yellow); }
.bg-white .side-note, .side-note.gray { background: var(--gray); }

/* Capítulos */
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.chapter-num { font-family: var(--serif); font-size: clamp(44px, 4.4vw, 68px); line-height: 1; margin: 0 0 10px; }
.chapter-num.small { font-size: 18px; font-family: var(--sans); font-weight: 700; }

/* ---------- AdoptAxolotl ---------- */
.adopt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.facts-list { list-style: none; padding: 0; margin: 0; }
.facts-list li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.25); }
.facts-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
.facts-list b { display: block; font-size: 17px; margin-bottom: 4px; }
.facts-list span { color: #c9c9c9; }

/* ---------- Pasos ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 4px solid var(--yellow); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 40px; line-height: 1; }
.steps b { font-size: 18px; }
.steps span { color: #3a3a3a; }
.on-dark .steps span { color: #c9c9c9; }

/* ---------- Página de pieza ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; padding-top: 24px; }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }
.piece { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 60px); padding: 20px 0 clamp(48px, 6vw, 90px); align-items: start; }
.piece-media { position: sticky; top: 90px; }
.piece-stage { background: var(--paper); height: min(74vh, 820px); min-height: 340px; display: flex; align-items: center; justify-content: center; }
.piece-stage img { max-height: 100%; width: auto; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.piece-info .who { font-weight: 700; font-size: 19px; margin: 0; }
.piece-info h1 { font-family: var(--sans); font-style: italic; font-weight: 500; font-size: clamp(27px, 2.5vw, 36px); line-height: 1.15; letter-spacing: -0.012em; margin: 2px 0 6px; }
.piece-info .when { margin: 0; }
.status { margin: 20px 0 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.status::before { content: ""; width: 10px; height: 10px; background: var(--yellow); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.facts div.full { grid-column: 1 / -1; }
.facts dt { font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.45; }
.facts .price dd { font-size: 20px; font-weight: 700; }
.quote { margin: 30px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--yellow); }
.quote p { font-family: var(--serif); font-size: 19px; line-height: 1.55; margin: 0; }
.quote cite { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 12px; }
.piece-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; padding: 24px; background: var(--gray); }
.piece-ctas .btn { width: 100%; }
.note { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.pager { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 600; max-width: 45%; }
.pager a span { display: block; font-weight: 400; font-style: italic; color: var(--muted); }

/* ---------- Semblanza ---------- */
.cv { list-style: none; padding: 0; margin: 0; }
.cv li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.cv li b { font-weight: 700; }
.poem { font-family: var(--serif); font-size: 19px; line-height: 1.65; max-width: 640px; }

/* ---------- Pie ---------- */
.site-foot { background: var(--ink); color: #fff; padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-foot .wordmark { color: #fff; font-size: 34px; }
.site-foot p, .site-foot li { font-size: 15px; color: #cfcfcf; margin: 0; }
.site-foot .flabel { color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: #fff; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid #333; font-size: 13px; color: #9a9a9a; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .head-spacer { height: var(--head-h, 120px); }
}
@media (max-width: 960px) {
  .feature-grid, .split, .adopt, .chapter-head, .piece { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .piece-media { position: static; }
  .piece-stage { height: min(62vh, 620px); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .head-inner { padding-top: 14px; padding-bottom: 12px; }
  .site-head.compact .wordmark { font-size: 23px; }
  .menu-btn { display: block; margin-left: 14px; }
  .utility { margin-left: auto; }
  .utility .btn { min-height: 36px; padding: 7px 12px; font-size: 14px; }
  .hide-sm { display: none; }
  .nav { display: none; flex-direction: column; gap: 0; padding: 6px 0 10px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--yellow); padding-left: 14px; }
  .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .grid, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .work .t { font-size: 15px; }
  .work .m { font-size: 13.5px; }
  .steps, .steps.three { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .piece-stage { height: 56vh; min-height: 280px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .pager a { max-width: 48%; font-size: 15px; }
  .arrow-link { white-space: normal; }
  .banner-media img { max-height: 46vh; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 24px; }
  .utility .btn { padding: 7px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
[id] { scroll-margin-top: 90px; }
.serie-card .media.white { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.serie-card .media.white img { width: 86%; height: 86%; }

.utility .btn { gap: 0; }
@media (min-width: 1100px) { .site-head.compact .hide-sm { display: none; } }
@media (min-width: 761px) and (max-width: 1099px) {
  .site-head.compact .head-inner { padding-top: 12px; }
  .site-head.compact .wordmark { font-size: 26px; }
  .site-head.compact .nav { padding: 12px 0 10px; }
  .nav { gap: 22px; }
  .nav a { font-size: 16px; }
}
@media (max-width: 760px) {
  .head-inner { column-gap: 0; flex-wrap: wrap; }
  .wordmark, .site-head.compact .wordmark { font-size: 22px; }
  .utility { order: 2; margin-left: auto; }
  .menu-btn { order: 2; margin-left: 16px; padding: 8px 0; }
  .nav { order: 3; }
}
@media (max-width: 380px) { .wordmark, .site-head.compact .wordmark { font-size: 20px; } .menu-btn { margin-left: 10px; } .utility .btn { padding: 7px 10px; } }

/* Portada: el banner es lo único en la primera pantalla */
.hero-full { padding: 0; height: calc(100vh - var(--head-h, 136px)); height: calc(100svh - var(--head-h, 136px)); min-height: 420px; }
.hero-full .wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 12px; padding-bottom: 22px; }
.hero-full .banner-media { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.hero-full .banner-media img { max-height: 100%; width: auto; max-width: 100%; }
.hero-cap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ink); }
.hero-cap span { color: var(--muted); }
.hero-cap::before { content: ""; width: 28px; height: 4px; background: var(--yellow); }
@media (max-width: 760px) { .hero-full { min-height: 360px; } .hero-full .banner-media img { max-height: none; width: 100%; } }

/* Contacto */
.contact-links { display: grid; gap: 14px; }
.contact-link { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; background: #fff; text-decoration: none; border-left: 4px solid var(--yellow); transition: background .15s, color .15s; }
.contact-link span { font-size: 14px; font-weight: 700; color: var(--muted); }
.contact-link b { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; overflow-wrap: anywhere; }
.contact-link b::after { content: " →"; }
.contact-link:hover { background: var(--ink); color: #fff; }
.contact-link:hover span { color: #c9c9c9; }
.contact + .site-foot, main + .site-foot { margin-top: 0; }
@media (max-width: 760px) {
  .hero-full { height: auto; min-height: 0; }
  .hero-full .wrap { padding-top: 18px; padding-bottom: 26px; }
  .hero-full .banner-media { margin: 0 calc(-1 * var(--gut)); }
  .hero-full .banner-media img { width: 100%; max-width: none; }
}
@media (min-width: 761px) and (max-width: 1099px) and (orientation: portrait) {
  .hero-full { height: auto; min-height: 0; }
  .hero-full .wrap { padding-top: 30px; padding-bottom: 30px; }
}
.bg-gray + .contact { background: var(--paper); border-top: 1px solid var(--line); }
.bg-gray + .contact .contact-link { background: var(--gray); }
.bg-gray + .contact .contact-link:hover { background: var(--ink); }

/* Fondos: el negro queda solo en el pie. Los bloques destacados van en gris. */
.feature .meta { color: var(--ink); }
.feature .meta span { color: var(--muted); }
.facts-list li { border-top-color: var(--line); }
.facts-list li:last-child { border-bottom-color: var(--line); }
.facts-list span { color: #3a3a3a; }
.feature.bg-gray + .band, .serie-head.bg-gray + .banner { border-top: 0; }
