/* Layout: composición asimétrica en movimiento — titular gigante con fotos incrustadas, collage flotante, mosaico de servicios, columna fija con fotos que pasan, galería horizontal anclada y tarjetas de proceso que se apilan. */
:root {
  --paper: #ffffff;
  --ink: #141414;
  --stone: #6f716a;
  --plaster: #efefeb;
  --line: #d8d8d2;
  --brass: #8f7148;
  --logo-filter: none;
  --f-brand: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --wrap: 1320px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111211; --ink: #f1f1ed; --stone: #9a9c95; --plaster: #1c1d1b; --line: #2e2f2c; --brass: #c4a476;
    --logo-filter: invert(1); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111211; --ink: #f1f1ed; --stone: #9a9c95; --plaster: #1c1d1b; --line: #2e2f2c; --brass: #c4a476;
  --logo-filter: invert(1); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
p { margin: 0; max-width: 60ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Fotos (cada una definida una sola vez) */
.ph { background-color: var(--plaster); background-size: cover; background-position: center; }

/* Logo (archivo original) */
.logo { display: inline-block; line-height: 0; }
.logo img { display: block; width: 100%; height: auto; filter: var(--logo-filter); }
.logo-sm { width: 108px; transition: width .5s var(--ease); }
.logo-lg { width: min(405px, 100%); }

/* Tipos */
.label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.kicker { font-family: var(--f-brand); font-weight: 600; text-transform: uppercase; letter-spacing: .28em; font-size: 12px; margin: 0; display: flex; align-items: center; gap: 14px; }
.kicker::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.muted { color: var(--stone); }
h2.big { font-family: var(--f-body); font-weight: 300; font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2.big em { font-style: italic; }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: transform .5s var(--ease), border-color .3s; }
header.site.scrolled { border-bottom-color: var(--line); }
header.site.scrolled .logo-sm { width: 84px; }
header.site.away { transform: translateY(-110%); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
nav.main { display: flex; gap: clamp(14px, 3vw, 36px); flex-wrap: wrap; justify-content: flex-end; align-items: center; }
nav.main a { position: relative; font-family: var(--f-brand); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding-block: 6px; }
nav.main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
nav.main a:hover::after { transform: scaleX(1); transform-origin: left; }
nav.main a.pill-link { border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 16px; }
nav.main a.pill-link::after { display: none; }
nav.main a.pill-link:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 680px) { nav.main a:not(.pill-link) { display: none; } }

/* Botón */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-brand); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; padding: 18px 26px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; cursor: pointer; transition: color .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); z-index: -1; }
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .45s var(--ease); }
.btn:hover .arrow { width: 34px; }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- HERO ---------- */
.hero { padding-block: clamp(36px, 5vw, 64px) clamp(60px, 8vw, 110px); position: relative; }
.headline { font-family: var(--f-body); font-weight: 300; font-size: clamp(46px, 9vw, 150px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.headline .row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .22em; }
.headline .row.r2 { padding-left: 12%; }
.headline .row.r3 { justify-content: flex-end; }
.headline .w { display: inline-block; overflow: hidden; padding-bottom: .08em; vertical-align: bottom; }
.headline .w > span { display: inline-block; }
.headline em { font-style: italic; }
.inline-pic { display: inline-block; height: .74em; width: 1.7em; border-radius: 999px; flex: none; }
.rot { position: relative; display: inline-grid; overflow: hidden; padding-bottom: .08em; color: var(--brass); font-style: italic; }
.rot > span { grid-area: 1 / 1; display: inline-block; }
.rot > span.out { animation: rotOut .7s var(--ease) forwards; }
.rot > span.in { animation: rotIn .9s var(--ease) both; }
@keyframes rotOut { to { transform: translateY(-110%); opacity: 0; } }
@keyframes rotIn { from { transform: translateY(110%); } to { transform: none; } }

.hero-lower { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.hero-copy { grid-column: 1 / span 4; display: grid; gap: 26px; min-width: 0; padding-top: 30px; }
.hero-copy .byline { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.hero-copy .byline strong { font-family: var(--f-brand); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.mosaic { grid-column: 6 / span 7; position: relative; height: clamp(420px, 44vw, 600px); min-width: 0; }
.mosaic .m { position: absolute; overflow: hidden; }
.mosaic .m .ph { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.mosaic .m:hover .ph { transform: scale(1.06); }
.mosaic .m1 { left: 22%; top: 0; width: 46%; aspect-ratio: 4 / 5; }
.mosaic .m2 { left: 0; top: 46%; width: 30%; aspect-ratio: 1; }
.mosaic .m3 { right: 0; top: 30%; width: 28%; aspect-ratio: 3 / 4; }
.mosaic .cap { position: absolute; left: 22%; bottom: 0; }
.badge { position: absolute; right: 6%; top: -2%; width: 128px; height: 128px; z-index: 2; }
.badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font-family: var(--f-mono); font-size: 10.4px; letter-spacing: .28em; text-transform: uppercase; fill: var(--ink); }
.badge .core { position: absolute; inset: 38%; background: var(--ink); border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .headline .row.r2 { padding-left: 0; }
  .headline .row.r3 { justify-content: flex-start; }
  .hero-copy, .mosaic { grid-column: 1 / -1; }
  .mosaic { height: auto; aspect-ratio: 1 / 1.05; max-width: 560px; }
  .badge { width: 96px; height: 96px; }
}

/* Marquesina doble */
.marquee { border-block: 1.5px solid var(--ink); overflow: hidden; padding-block: 18px; display: grid; gap: 10px; }
.marquee .track { display: flex; width: max-content; }
.marquee .t1 { animation: marquee 42s linear infinite; }
.marquee .t2 { animation: marquee 48s linear infinite reverse; }
.marquee .item { display: flex; align-items: center; gap: 36px; padding-right: 36px; white-space: nowrap; font-family: var(--f-body); font-weight: 300; font-size: clamp(28px, 4.2vw, 58px); line-height: 1.1; }
.marquee .t2 .item { font-family: var(--f-brand); font-weight: 600; font-size: clamp(12px, 1.2vw, 15px); letter-spacing: .3em; text-transform: uppercase; color: var(--stone); }
.marquee .item em { font-style: italic; }
.marquee .dot { width: 10px; height: 10px; background: var(--brass); transform: rotate(45deg); flex: none; }
.marquee .mini { width: 1.6em; height: .9em; border-radius: 999px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

section.block { padding-block: clamp(90px, 12vw, 160px); }

/* ---------- ESTUDIO: columna fija + fotos que pasan ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.split .stick { grid-column: 1 / span 6; align-self: start; position: sticky; top: 120px; display: grid; gap: 28px; min-width: 0; }
.split .stick .statement { font-family: var(--f-body); font-weight: 300; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.split .flow { grid-column: 8 / span 5; display: grid; gap: clamp(60px, 9vw, 120px); min-width: 0; }
.flow .shot { display: grid; gap: 16px; }
.flow .shot .frame { overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.flow .shot:nth-child(2) .frame { margin-left: auto; aspect-ratio: 1; max-width: 340px; }
.flow .shot:nth-child(2) { justify-items: end; text-align: right; }
.flow .shot .frame .ph { width: 100%; height: 115%; }
.signature { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.signature .name { font-family: var(--f-brand); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 900px) {
  .split .stick, .split .flow { grid-column: 1 / -1; position: static; }
  .flow .shot .frame { max-width: 100%; }
}

/* ---------- SERVICIOS: mosaico ---------- */
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 16px; grid-template-areas: "a a b b c c" "a a d d c c" "e e e f f f"; }
.tile { position: relative; overflow: hidden; min-width: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-decoration: none; isolation: isolate; }
.tile .code { font-family: var(--f-mono); font-size: 12px; }
.tile h3 { font-family: var(--f-body); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; margin: 0; letter-spacing: -.01em; transition: transform .6s var(--ease); }
.tile p { font-size: 16px; }
.tile:hover h3 { transform: translateY(-4px); }
.tile.photo { color: #ffffff; min-height: 300px; }
.tile.photo .ph { position: absolute; inset: 0; z-index: -2; transition: transform 1.2s var(--ease); }
.tile.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.05) 30%, rgba(10,10,10,.72) 100%); }
.tile.photo:hover .ph { transform: scale(1.07); }
.tile.photo .code, .tile.photo p { color: rgba(255,255,255,.85); }
.t-a { grid-area: a; }
.t-b { grid-area: b; background: var(--ink); color: var(--paper); }
.t-b .code, .t-b p { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }
.t-c { grid-area: c; }
.t-d { grid-area: d; }
.t-e { grid-area: e; }
.t-e .quote { font-family: var(--f-body); font-weight: 300; font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; margin: 0; max-width: 28ch; }
.t-f { grid-area: f; border: 1.5px solid var(--ink); flex-direction: row; align-items: center; transition: background .5s var(--ease), color .5s var(--ease); }
.t-f:hover { background: var(--ink); color: var(--paper); }
.t-f h3 { font-size: clamp(28px, 3vw, 44px); }
.t-f .circle { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; transition: transform .6s var(--ease); }
.t-f:hover .circle { transform: rotate(-45deg); }
.t-f .circle i { width: 20px; height: 1.5px; background: currentColor; position: relative; }
.t-f .circle i::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "d c" "e e" "f f"; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f"; }
}

/* ---------- PROYECTOS: galería horizontal ---------- */
.work { padding-block: clamp(90px, 12vw, 160px) 0; position: relative; }
.work .sticky { padding-bottom: clamp(90px, 12vw, 160px); position: relative; }
.ghost { position: absolute; left: 0; top: 50%; white-space: nowrap; font-family: var(--f-brand); font-weight: 700; font-size: clamp(120px, 22vw, 320px); letter-spacing: .04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; z-index: 0; transform: translateY(-50%); }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; position: relative; z-index: 1; }
.work-track { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: clamp(18px, 2.6vw, 40px); overflow-x: auto; scroll-snap-type: x mandatory; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); scrollbar-width: none; will-change: transform; }
.work-track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .work-track { padding-left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); padding-right: 40px; } }
.card { flex: none; scroll-snap-align: start; display: grid; gap: 14px; min-width: 0; text-decoration: none; }
.card .frame { overflow: hidden; max-width: 100%; }
.card .frame .ph { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.card:hover .frame .ph { transform: scale(1.08); }
.card .meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 12px; }
.card h3 { font-family: var(--f-body); font-weight: 400; font-size: 21px; margin: 0; }
.card .n { font-family: var(--f-mono); font-size: 12px; color: var(--brass); }
.card.tall { width: clamp(240px, 26vw, 360px); } .card.tall .frame { aspect-ratio: 4 / 5; }
.card.sq { width: clamp(220px, 22vw, 300px); margin-top: 90px; } .card.sq .frame { aspect-ratio: 1; }
.card.wide { width: clamp(270px, 30vw, 400px); margin-top: 30px; } .card.wide .frame { aspect-ratio: 4 / 3; }
.work-progress { margin-top: 44px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; position: relative; z-index: 1; }
.work-progress .bar { height: 1.5px; background: var(--line); position: relative; overflow: hidden; }
.work-progress .bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.14); }
.work.pinned .sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-bottom: 0; }
.work.pinned .work-track { overflow: visible; scroll-snap-type: none; }

/* ---------- PROCESO: tarjetas que se apilan ---------- */
.stack { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 28px; }
.stack li { position: sticky; top: calc(96px + var(--i) * 26px); display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 300px); gap: 32px; align-items: center; padding: clamp(24px, 3.4vw, 44px); min-height: 300px; border: 1.5px solid var(--ink); background: var(--paper); }
.stack li:nth-child(2) { background: var(--plaster); }
.stack li:nth-child(3) { background: var(--ink); color: var(--paper); }
.stack li:nth-child(3) p { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.stack li:nth-child(4) { background: var(--plaster); }
.stack .num { font-family: var(--f-body); font-weight: 300; font-style: italic; font-size: clamp(64px, 8vw, 120px); line-height: .9; color: var(--brass); }
.stack h3 { font-family: var(--f-body); font-weight: 300; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.01em; }
.stack p { color: var(--stone); }
.stack .pic { aspect-ratio: 4 / 3; width: 100%; max-width: 100%; }
@media (max-width: 860px) {
  .stack li { grid-template-columns: 1fr; gap: 16px; top: calc(80px + var(--i) * 16px); min-height: 0; }
  .stack .pic { display: none; }
}

/* ---------- CONTACTO ---------- */
.contact { background: var(--ink); color: var(--paper); overflow: hidden; }
.contact .label, .contact .field label { color: color-mix(in srgb, var(--paper) 60%, var(--ink)); }
.contact .giant { font-family: var(--f-body); font-weight: 300; font-size: clamp(64px, 14vw, 220px); line-height: .9; letter-spacing: -.04em; margin: 0 0 clamp(40px, 6vw, 80px); }
.contact .giant em { font-style: italic; color: var(--brass); }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.contact-info { grid-column: 1 / span 5; display: grid; gap: 36px; align-content: start; min-width: 0; }
.contact-form { grid-column: 7 / span 6; display: grid; gap: 22px; min-width: 0; }
@media (max-width: 860px) { .contact-info, .contact-form { grid-column: 1 / -1; } }
dl.info { margin: 0; display: grid; gap: 18px; }
dl.info div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-bottom: 1px solid color-mix(in srgb, var(--paper) 22%, var(--ink)); padding-bottom: 14px; }
dl.info dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 60%, var(--ink)); padding-top: 4px; }
dl.info dd { margin: 0; user-select: all; overflow-wrap: anywhere; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 45%, var(--ink)); border-radius: 0; padding: 8px 0; width: 100%; transition: border-color .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); }
.field select option { color: #141414; }
.field textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.contact .btn { border-color: var(--paper); color: var(--paper); justify-self: start; }
.contact .btn::before { background: var(--paper); }
.contact .btn:hover { color: var(--ink); }
.form-note { font-size: 15px; min-height: 1.5em; color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }

/* Footer */
footer.site .wrap { padding-block: 64px 40px; display: grid; gap: 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.foot-row .label { max-width: 56ch; }


/* ---------- Índice de proyectos ---------- */
.pi-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.pi-row { width: 100%; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) 90px 0px; align-items: center; gap: 20px; padding-block: 26px; position: relative; transition: grid-template-columns .6s var(--ease), padding .6s var(--ease); }
.pi-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.pi-row:hover::after, .pi-row:focus-visible::after { transform: scaleX(1); }
.pi-row:hover { grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) 90px 150px; }
.pi-n { font-family: var(--f-mono); font-size: 12px; color: var(--brass); }
.pi-name { font-family: var(--f-body); font-weight: 300; font-size: clamp(30px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; transition: transform .6s var(--ease); }
.pi-row:hover .pi-name { transform: translateX(12px); font-style: italic; }
.pi-type { color: var(--stone); font-size: 16px; }
.pi-count { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); text-align: right; }
.pi-thumb { height: 96px; background-size: cover; background-position: center; opacity: 0; transition: opacity .4s; }
.pi-row:hover .pi-thumb { opacity: 1; }
@media (max-width: 760px) {
  .pi-row, .pi-row:hover { grid-template-columns: 40px minmax(0, 1fr) 72px; gap: 6px 14px; }
  .pi-type { grid-column: 2; } .pi-count { grid-column: 2; text-align: left; }
  .pi-thumb { grid-column: 3; grid-row: 1 / span 3; height: 72px; opacity: 1; }
}


/* ---------- Proyecto destacado ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.feat-img { grid-column: 1 / span 7; aspect-ratio: 3 / 2; overflow: hidden; cursor: pointer; max-width: 100%; }
.feat-img .ph { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.feat-img:hover .ph { transform: scale(1.05); }
.feat-copy { grid-column: 9 / span 4; display: grid; gap: 24px; min-width: 0; }
.feat-copy .btn { justify-self: start; }
.facts { margin: 0; display: grid; gap: 10px; border-top: 1.5px solid var(--ink); padding-top: 16px; }
.facts div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); padding-top: 4px; }
.facts dd { margin: 0; }
.feat-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.feat-strip .ph { aspect-ratio: 1; display: block; }
@media (max-width: 900px) { .feat-img, .feat-copy { grid-column: 1 / -1; } .feat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tarjetas de la galería como botones */
.card { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.card .frame, .card .ph { display: block; }
.card .h3 { font-family: var(--f-body); font-weight: 400; font-size: 21px; }
[data-open] { cursor: pointer; }

/* ---------- Visor ---------- */
.viewer { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.viewer[hidden] { display: none; }
.viewer:not([hidden]) { animation: vIn .8s var(--ease) both; }
@keyframes vIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.v-top, .v-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .v-top, .v-bottom { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.v-id { display: grid; gap: 2px; min-width: 0; }
.v-title { font-family: var(--f-body); font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.v-tools { display: flex; align-items: center; gap: 10px; }
.v-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 26px; line-height: 1; transition: background .3s, color .3s; }
.v-btn:hover { background: var(--ink); color: var(--paper); }
.v-btn i { width: 16px; height: 1.5px; background: currentColor; position: relative; }
.v-btn i::after { content: ""; position: absolute; top: -3.5px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; }
.v-btn i.r::after { right: 0; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.v-btn i.l::after { left: 0; border-left: 1.5px solid currentColor; transform: rotate(-45deg); }
.v-count { min-width: 64px; text-align: right; }
.v-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; align-items: center; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); scrollbar-width: none; min-height: 0; }
.v-track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .v-track { padding-left: 40px; padding-right: 40px; } }
.v-track figure { margin: 0; flex: none; height: 100%; max-height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.v-track img { display: block; height: 100%; max-height: calc(100vh - 210px); width: auto; max-width: calc(100vw - 32px); object-fit: contain; background: var(--plaster); }
.v-cap { margin: 0; font-size: 16px; color: var(--stone); min-width: 0; }
.v-bar { flex: 0 0 min(240px, 40vw); height: 1.5px; background: var(--line); position: relative; overflow: hidden; }
.v-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease); }
@media (max-width: 600px) { .v-tools .v-btn:not(.v-close) { display: none; } }


/* ---------- Logo animado ---------- */
.logo-anim { position: relative; display: block; width: 100%; aspect-ratio: 405 / 133; }
.logo-anim img { position: absolute; inset: 0; width: 100%; height: 100%; filter: var(--logo-filter); }
.logo-anim .bar { clip-path: inset(87.97% 0.00% 0.00% 0.00%); }
@media (prefers-reduced-motion: no-preference) {
  .logo .ltr { animation: ltrTop .9s var(--ease) both; animation-delay: calc(.15s + var(--d) * 55ms); }
  .logo .ltr.bot { animation-name: ltrBot; }
  .logo .bar { animation: barDraw 1.1s var(--ease) both .75s; }
  .logo.wait .ltr, .logo.wait .bar { animation-play-state: paused; }
  .logo.done .ltr, .logo.done .bar { animation: none; }
  .logo.done:hover .ltr { animation: wave .7s var(--ease) both; animation-delay: calc(var(--d) * 35ms); }
  .logo.done:hover .bar { animation: barDraw .8s var(--ease) both .1s; }
  @keyframes ltrTop { from { opacity: 0; transform: translateY(-45%); filter: var(--logo-filter) blur(5px); } to { opacity: 1; transform: none; } }
  @keyframes ltrBot { from { opacity: 0; transform: translateY(45%); filter: var(--logo-filter) blur(5px); } to { opacity: 1; transform: none; } }
  @keyframes barDraw { from { clip-path: inset(87.97% 100% 0% 0%); } to { clip-path: inset(87.97% 0.00% 0.00% 0.00%); } }
  @keyframes wave { 0%, 100% { transform: none; } 40% { transform: translateY(-14%); } }
}

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--ink); pointer-events: none; display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, opacity .3s; opacity: 0; }
.cursor.show { opacity: 1; }
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); }
.cursor.big span { opacity: 1; }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .headline .w > span { animation: rise 1.3s var(--ease) both; }
  .headline .r2 .w > span { animation-delay: .1s; }
  .headline .r3 .w > span { animation-delay: .2s; }
  .inline-pic { animation: grow 1.4s var(--ease) both .45s; }
  .hero-copy > * { animation: fadeUp 1.1s var(--ease) both; animation-delay: .55s; }
  .mosaic .m { animation: wipe 1.5s var(--ease) both; }
  .mosaic .m1 { animation-delay: .35s; } .mosaic .m2 { animation-delay: .55s; } .mosaic .m3 { animation-delay: .7s; }
  .badge { animation: fadeUp 1s var(--ease) both 1s; }
  .marquee .t1, .marquee .t2 { will-change: transform; }
  @keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
  @keyframes grow { from { width: 0; opacity: 0; } to { width: 1.7em; opacity: 1; } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

  @supports (animation-timeline: view()) {
    .reveal { animation: revealUp linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
    .tile { animation: tileIn linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .ink-fill { color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(90deg, var(--ink) 50%, var(--line) 50%); background-size: 200% 100%; background-position: 100% 0; animation: fill linear both; animation-timeline: view(); animation-range: cover 10% cover 50%; }
    .flow .shot .frame .ph { animation: inner linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .stack li > * { animation: revealUp linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .contact .giant { animation: slideIn linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes revealUp { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
    @keyframes tileIn { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
    @keyframes fill { to { background-position: 0 0; } }
    @keyframes inner { from { transform: translateY(-12%); } to { transform: translateY(0); } }
    @keyframes slideIn { from { transform: translateX(-12%); } to { transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .t1, .marquee .t2 { animation: none; }
  .badge svg { animation: none; }
}

/* =====================================================================
   PORTADA · diapositivas a pantalla completa con revelado circular
   ===================================================================== */
.hx { position: relative; height: 100vh; height: 100svh; min-height: 580px; margin-top: calc(-1 * var(--hh, 68px)); color: #fff; overflow: hidden; background: #0d0d0c; }
.hx-stage { position: absolute; inset: 0; cursor: pointer; transform: translateZ(0); }
.hx-slide { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
.hx-slide.on, .hx-slide.prev { visibility: visible; }
.hx-slide.prev { z-index: 1; }
.hx-slide.on { z-index: 2; }
.hx-img { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; display: block; translate: var(--mx, 0px) var(--my, 0px); transition: translate 1.2s cubic-bezier(.19, 1, .22, 1); }
.hx-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,8,.55) 0%, rgba(8,8,8,0) 26%, rgba(8,8,8,0) 42%, rgba(8,8,8,.78) 100%),
              linear-gradient(90deg, rgba(8,8,8,.35) 0%, rgba(8,8,8,0) 55%); }
.hx-content { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hh, 68px) + 28px) max(16px, env(safe-area-inset-right, 0px)) clamp(22px, 4vw, 44px) max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 700px) { .hx-content { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.hx-content a, .hx-content button { pointer-events: auto; }
.hx-top { display: flex; justify-content: space-between; gap: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.hx-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 32px; align-items: end; }
.hx-main { display: grid; gap: 26px; min-width: 0; }
.hx-title { font-family: var(--f-body); font-weight: 300; font-size: clamp(48px, 8.4vw, 148px); line-height: .94; letter-spacing: -.035em; margin: 0; }
.hx-title .l { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-title .l > span, .hx-title .l > em { display: inline-block; }
.hx-word { position: relative; display: inline-grid !important; font-style: italic; color: #e9cfa4; }
.hx-word > span { grid-area: 1 / 1; display: inline-block; white-space: nowrap; }
.hx-word > span.out { animation: hxOut .75s cubic-bezier(.7, 0, .84, 0) forwards; }
.hx-word > span.in { animation: hxIn 1.05s cubic-bezier(.19, 1, .22, 1) both .12s; }
@keyframes hxOut { to { transform: translateY(-105%) skewY(-4deg); opacity: 0; } }
@keyframes hxIn { from { transform: translateY(105%) skewY(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hx-intro { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; max-width: 640px; }
.hx-intro p { margin: 0; max-width: 42ch; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.86); }
.hx-btn { border-color: #fff; color: #fff; }
.hx-btn::before { background: #fff; }
.hx-btn:hover { color: #111; }
.hx-side { display: grid; gap: 18px; justify-items: stretch; }
.hx-meta { font: inherit; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 14px; padding: 16px 18px; text-align: left; cursor: pointer; display: grid; gap: 4px; transition: opacity .35s, transform .35s, background .3s; }
.hx-meta:hover { background: rgba(255,255,255,.16); }
.hx-meta.swap { opacity: 0; transform: translateY(8px); }
.hx-meta .n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.hx-meta .name { font-family: var(--f-body); font-size: 26px; line-height: 1.1; }
.hx-meta .type { font-size: 13px; color: rgba(255,255,255,.75); min-height: 1.2em; }
.hx-meta .go { margin-top: 8px; font-family: var(--f-brand); font-weight: 600; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.hx-meta .go i { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .4s; }
.hx-meta .go i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.hx-meta:hover .go i { width: 34px; }
.hx-meta:not([data-open]) .go { display: none; }
.hx-ctrl { display: flex; align-items: center; gap: 10px; }
.hx-bars { display: flex; gap: 6px; flex: 1; }
.hx-bar { flex: 1; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hx-bar i { display: block; height: 2px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; border-radius: 2px; }
.hx-bar i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hx-bar.done i::after { transform: scaleX(1); }
.hx-bar.on i::after { animation: hxFill var(--dur, 6.5s) linear forwards; }
.hx.paused .hx-bar.on i::after { animation-play-state: paused; }
@keyframes hxFill { to { transform: scaleX(1); } }
.hx-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .3s, color .3s; }
.hx-arrow:hover { background: #fff; color: #111; }
.hx-arrow i { width: 14px; height: 1.5px; background: currentColor; position: relative; }
.hx-arrow i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; }
.hx-arrow i.r::after { right: 0; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.hx-arrow i.l::after { left: 0; border-left: 1.5px solid currentColor; transform: rotate(-45deg); }
.hx-down { position: absolute; left: 50%; bottom: 18px; z-index: 5; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 12px; }
.hx-down span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; }
@media (max-width: 860px) {
  .hx-bottom { grid-template-columns: 1fr; gap: 22px; }
  .hx-intro p { font-size: 15px; }
  .hx-meta .name { font-size: 22px; }
  .hx-down { display: none; }
  .hx-by { display: none; }
}

/* Header sobre la portada */
header.site.over { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
header.site.over nav.main a { color: #fff; }
header.site.over nav.main a::after { background: #fff; }
header.site.over nav.main a.pill-link { border-color: #fff; }
header.site.over nav.main a.pill-link:hover { background: #fff; color: #111; }
header.site.over .logo img { filter: invert(1) !important; }

@media (prefers-reduced-motion: no-preference) {
  .hx-slide.on.in { animation: hxReveal 1.5s cubic-bezier(.77, 0, .175, 1) both; }
  .hx-slide.on.in .hx-img { animation: hxZoomIn 1.8s cubic-bezier(.19, 1, .22, 1) both, hxDrift calc(var(--dur, 6.5s) + 2s) linear 1.8s both; }
  .hx-slide.on:not(.in) .hx-img { animation: hxDrift calc(var(--dur, 6.5s) + 2s) linear both; }
  .hx-slide.prev .hx-img { transform: scale(1.12); filter: brightness(.55); transition: transform 1.5s cubic-bezier(.77, 0, .175, 1), filter 1.5s; }
  .hx-title .l > span, .hx-title .l > em { animation: hxRise 1.3s cubic-bezier(.19, 1, .22, 1) both; }
  .hx-title .l:nth-child(2) > em { animation-delay: .08s; }
  .hx-title .l:nth-child(3) > span { animation-delay: .16s; }
  .hx-intro, .hx-side, .hx-top { animation: hxFade 1.2s cubic-bezier(.19, 1, .22, 1) both .5s; }
  .hx-down span { animation: hxScroll 1.8s ease-in-out infinite; }
  @keyframes hxReveal { from { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); } to { clip-path: circle(142% at var(--x, 50%) var(--y, 50%)); } }
  @keyframes hxZoomIn { from { transform: scale(1.35) rotate(1.5deg); } to { transform: scale(1.06); } }
  @keyframes hxDrift { from { transform: scale(1.06); } to { transform: scale(1.16); } }
  @keyframes hxRise { from { transform: translateY(110%); } to { transform: none; } }
  @keyframes hxFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes hxScroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .hx-slide { transition: opacity .8s; opacity: 0; visibility: visible; }
  .hx-slide.on { opacity: 1; }
}

/* =====================================================================
   SEO y accesibilidad: enlaces reales, imágenes indexables, páginas de proyecto
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-family: var(--f-brand); font-size: 12px; text-decoration: none; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
img.ph { display: block; width: 100%; height: 100%; object-fit: cover; }
a.card, a.pi-row, a.feat-img, a.hx-meta { color: inherit; text-decoration: none; }
a.feat-img { display: block; }
a.hx-meta { color: #fff; }
.hx-meta:not([href]) { cursor: default; }
.hx-meta:not([href]) .go { display: none; }
footer.site address { font-style: normal; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { font-family: var(--f-body); font-size: 18px; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.foot-links a:hover { border-bottom-color: currentColor; }
.foot-admin { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.foot-admin:hover { border-bottom-color: currentColor; }
.contact .info a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); }

/* Página de proyecto */
.pp { padding-block: clamp(28px, 5vw, 60px) clamp(70px, 10vw, 130px); }
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: clamp(26px, 4vw, 48px); }
.pp-crumbs a { color: inherit; text-decoration: none; }
.pp-crumbs a:hover { color: var(--ink); }
.pp-head { display: grid; gap: 18px; max-width: 900px; margin-bottom: clamp(32px, 5vw, 64px); }
.pp-head h1 { margin: 0; }
.pp-sum { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--stone); max-width: 62ch; }
.pp-facts { max-width: 560px; }
.pp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.pp-fig { margin: 0; display: grid; gap: 8px; min-width: 0; }
.pp-fig .pp-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--plaster); max-width: 100%; }
.pp-lead { grid-column: 1 / -1; }
.pp-lead .pp-img { aspect-ratio: 16 / 9; }
.pp-fig figcaption { font-size: 13px; color: var(--stone); }
.pp-cta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); margin-top: clamp(50px, 8vw, 100px); padding-top: clamp(28px, 4vw, 48px); }
.pp-cta h2 { margin: 0; }
.pp-more { margin-top: clamp(50px, 8vw, 100px); display: grid; gap: 20px; }
.pp-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pp-more a { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.pp-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--plaster); transition: transform .8s var(--ease); }
.pp-more a:hover .pp-thumb { transform: scale(1.03); }
.pp-oname { font-family: var(--f-body); font-size: 21px; }
.pp-otype { font-size: 13px; color: var(--stone); }
@media (max-width: 700px) { .pp-gallery { grid-template-columns: 1fr; } }
.work { overflow-x: clip; }
h1.big { font-family: var(--f-body); font-weight: 300; font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1.big em { font-style: italic; }
/* Primera foto visible desde el inicio (mejor LCP): entra con acercamiento, sin círculo */
@media (prefers-reduced-motion: no-preference) {
  .hx-slide.first .hx-img { animation: hxZoomIn 2.2s cubic-bezier(.19, 1, .22, 1) both, hxDrift calc(var(--dur, 6.5s) + 2s) linear 2.2s both; }
}

/* ---------- Esquinas redondeadas en todas las imágenes ---------- */
:root { --r: clamp(12px, 1.3vw, 20px); }
.flow .shot .frame, .card .frame, .feat-img, .feat-strip .ph, .tile, .stack .pic, .pi-thumb,
.pp-fig .pp-img, .pp-thumb, .v-track img, .mosaic .m {
  border-radius: var(--r); overflow: hidden; isolation: isolate;
}
.card .frame, .feat-img, .tile, .flow .shot .frame { -webkit-mask-image: -webkit-radial-gradient(white, black); }
.stack li { border-radius: calc(var(--r) + 6px); }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 55; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-family: var(--f-brand); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; transition: transform .4s var(--ease), box-shadow .4s; }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.24); }
@media (max-width: 700px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float .wa-label { display: none; } }
.btn-wa svg { width: 20px; height: 20px; flex: none; }
.contact-info .btn-wa { margin-top: 28px; border-color: #25D366; color: #fff; background: #25D366; }
.contact-info .btn-wa::before { background: #1da851; }
.pp-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.pp-cta .btn-wa { border-color: #25D366; }
.wa-float { transition: transform .4s var(--ease), box-shadow .4s, opacity .4s; }
.wa-float.wa-hide { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- Portada en celular: foto arriba, texto abajo (sin taparse) ---------- */
@media (max-width: 700px) {
  .hx { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; background: #0d0d0c; }
  .hx-stage { position: relative; inset: auto; height: 62svh; min-height: 340px; max-height: 560px; flex: none; overflow: hidden; }
  .hx-shade { background: linear-gradient(180deg, rgba(8,8,8,.55) 0%, rgba(8,8,8,0) 30%, rgba(8,8,8,0) 70%, rgba(13,13,12,.9) 100%); }
  .hx-content { position: relative; inset: auto; z-index: 4; padding: 18px 16px 30px; gap: 22px; justify-content: flex-start; }
  .hx-top { display: none; }
  .hx-bottom { gap: 20px; }
  .hx-main { gap: 18px; }
  .hx-title { font-size: clamp(40px, 12vw, 56px); }
  .hx-intro { gap: 16px; }
  .hx-intro p { font-size: 15px; color: rgba(255,255,255,.78); }
  .hx-meta { padding: 12px 14px; }
  .hx-meta .name { font-size: 20px; }
  .hx-side { animation: none !important; transform: none !important; }
  .hx-ctrl { position: absolute; left: 16px; right: 16px; top: -58px; z-index: 5; }
  .hx-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  .hx-meta .n { order: 2; margin-left: auto; }
  .hx-meta .type { flex-basis: 100%; min-height: 0; }
  .hx-meta .go { flex-basis: 100%; margin-top: 4px; }
}
