/* MÉTODO VIVA — editorial / industrial landing. Static CSS, no build. */

/* ---------- Fonts (self-hosted, latin) ---------- */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Corporate family. Gotham is commercial: put "Gotham" first here once web-font files with a licence exist
     (add its @font-face above). Montserrat is the stand-in. One line to swap. */
  --font-brand: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-support: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* Palette: flexible greys only (brief p.3). No pinks, no golds. */
  --black: #000000;
  --graphite: #333638;
  --concrete: #83878B;
  --silver: #B1B8BC;
  --grey: #D6D8D9;
  --offwhite: #F5F5F2;
  --white: #FFFFFF;
  --dark: #141516;            /* near-black surface (between black and graphite) */
  --concrete-dark: #2b2e30;   /* dark concrete surface */

  /* Stainless / brushed-aluminium accents: thin lines, button finishes, micro-gradients only. */
  --steel: linear-gradient(115deg, #7b8288 0%, #dfe3e6 24%, #fbfcfc 42%, #aab1b6 62%, #6f767c 82%, #c5cacd 100%);
  --steel-text: linear-gradient(115deg, #b1b8bc 0%, #fbfcfc 45%, #b1b8bc 80%); /* silver gradient for text/buttons: keeps AA with black or white */
  --steel-soft: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 55%);

  --wrap: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 68px;
  --space-sec: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Very discreet concrete grain (SVG noise, no image file) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-brand); font-weight: 400; font-size: 1.0625rem; line-height: 1.7; color: var(--black); background: var(--offwhite); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
.surface-dark :focus-visible, .surface-concrete-dark :focus-visible, .surface-graphite :focus-visible, .footer :focus-visible, .menu :focus-visible { outline-color: var(--white); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--black); color: var(--white); padding: .75rem 1rem; font-size: .875rem; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Surfaces ---------- */
.sec { padding-block: var(--space-sec); position: relative; }
.surface-light { background: var(--offwhite); }
.surface-white { background: var(--white); }
.surface-concrete { background: var(--grey); }
.surface-dark { background: var(--dark); color: var(--white); }
.surface-concrete-dark { background: var(--concrete-dark); color: var(--white); }
.surface-graphite { background: var(--graphite); color: var(--white); }
.surface-silver { background: var(--silver); color: var(--black); }
.tex { isolation: isolate; }
.tex::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 260px; opacity: .16; pointer-events: none; }
.surface-dark.tex::before, .surface-concrete-dark.tex::before, .surface-graphite.tex::before { opacity: .12; mix-blend-mode: screen; }

/* ---------- Type ---------- */
.h-hero { font-size: clamp(2.35rem, 5.6vw, 6rem); line-height: .98; letter-spacing: -.012em; text-transform: uppercase; text-wrap: balance; }
.h-lg { font-size: clamp(1.9rem, 4.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.h-close { font-weight: 700; font-size: clamp(2.2rem, 7.6vw, 7.4rem); line-height: .96; letter-spacing: -.015em; text-transform: uppercase; margin: clamp(3.5rem, 8vw, 7rem) 0 0; text-wrap: balance; }
.thin { font-weight: 400; }
.wm__a { font-weight: 400; letter-spacing: .06em; }
.wm__b { font-weight: 700; letter-spacing: .04em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; max-width: 38ch; }
.label { font-family: var(--font-brand); font-weight: 700; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--graphite); margin: 0 0 1.5rem; }
.surface-dark .label, .surface-concrete-dark .label, .surface-graphite .label { color: var(--silver); }
.prose p { max-width: 52ch; }
.arr { font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", system-ui, sans-serif; font-weight: 400; margin-left: .35em; display: inline-block; transition: transform .3s var(--ease); }
.split { display: grid; gap: 1.5rem 4rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); align-items: end; }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .85rem 1.6rem; font: 700 .8125rem/1.2 var(--font-brand); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); isolation: isolate; overflow: hidden; }
.btn:hover .arr, .btn:focus-visible .arr { transform: translate(2px, -2px); }
.btn--lg { min-height: 3.75rem; padding-inline: 2.2rem; font-size: .875rem; }
/* solid black with a subtle brushed-steel top edge */
.btn--solid { background: var(--black); color: var(--white); border-color: var(--black); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.btn--solid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--steel); opacity: 0; transition: opacity .35s var(--ease); }
.btn--solid:hover { color: var(--black); border-color: var(--silver); }
.btn--solid:hover::after { opacity: 1; }
.btn--line { color: var(--black); border-color: var(--black); background: transparent; }
.btn--line:hover { background: var(--black); color: var(--white); }
/* on dark: off-white with stainless gradient */
.btn--steel { color: var(--black); background: linear-gradient(115deg, #9aa1a6 0%, #dfe3e6 24%, #fbfcfc 42%, #b1b8bc 62%, #9aa1a6 82%, #dfe3e6 100%); background-size: 220% 100%; background-position: 0 0; border-color: rgba(255,255,255,.35); transition: background-position .6s var(--ease); }
.btn--steel:hover { background-position: 100% 0; }
.btn-row, .home__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.steel-rule { height: 1px; background: var(--steel); border: 0; opacity: .8; }

/* ---------- Header / menu ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: rgba(245,245,242,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--steel); opacity: .7; }
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
/* Logo: only the height is set; the link never shrinks (a flex-shrunk link + fixed height was squeezing the image) */
/* Monogram left of the logo, vertically centred. 34 px on phones (monogram + logo + burger must fit 350 px), 40 px from 600, 44 px from 900. */
.brand { flex: none; display: flex; align-items: center; gap: 12px; line-height: 0; }
.brand__mono { height: 34px; width: auto; aspect-ratio: 176 / 175; flex: none; }
.brand__logo { height: 42px; width: auto; max-width: none; aspect-ratio: 838 / 157; }
@media (min-width: 600px) { .brand { gap: 16px; } .brand__mono { height: 40px; } }
@media (min-width: 900px) { :root { --header-h: 80px; } .brand { gap: 18px; } .brand__mono { height: 44px; } .brand__logo { height: 52px; } }
/* 9-item nav + brand lock-up must leave >= 40 px at 1440: logo 48 px high, monogram 40 px, from 1400 */
@media (min-width: 1400px) { .brand { gap: 16px; } .brand__mono { height: 40px; } .brand__logo { height: 48px; } }
.nav { display: none; }
.nav { flex: 1 1 auto; min-width: 0; }
.nav ul { display: flex; justify-content: flex-end; }
.nav li { display: flex; align-items: center; }
/* thin divider between items (decorative; CSS only, not part of the link so the underline is unaffected) */
.nav li + li::before { content: ""; flex: none; width: 1px; height: 15px; margin-inline: .3rem; background: var(--silver); }
.nav a { font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: .5rem 0; border-bottom: 1px solid transparent; transition: border-color .25s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--black); }
@media (min-width: 1400px) { .nav { display: block; } .burger { display: none !important; } }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--black); transition: transform .3s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--dark); color: var(--white); padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; display: flex; align-items: center; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s; overflow-y: auto; }
.menu-open .menu { visibility: visible; opacity: 1; transition-delay: 0s; }
.menu ul { width: 100%; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: .55rem 0; font-size: clamp(1.5rem, 6vw, 2.4rem); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; text-decoration: none; border-bottom: 1px solid rgba(177,184,188,.3); }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--offwhite); }

/* ---------- Photos / placeholders ---------- */
.ph { position: relative; background: linear-gradient(145deg, #e6e7e8 0%, #d9dbdc 100%); overflow: hidden; width: 100%; min-height: 0; }
.ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(51,54,56,.14); pointer-events: none; border-radius: inherit; }
.ph--dark { background: linear-gradient(145deg, #34373a 0%, #26282a 100%); }
.ph--dark::after { border-color: rgba(255,255,255,.12); }
.surface-concrete .ph { background: linear-gradient(145deg, #e9eaeb, #dcdedf); }
.ph[data-slot]:not(.is-filled):not(.is-pending) { display: none; } /* no photo, no slot: main.js also closes up the group around it */
.ph--r45 { aspect-ratio: 4 / 5; }
.ph--r34 { aspect-ratio: 4 / 3; }
.ph--sq { aspect-ratio: 1; }
.ph--arch { border-radius: 999px 999px 0 0; }
.ph.is-filled::after { display: none; }
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph__zoom { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ph__zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph__zoom:hover img { transform: scale(1.03); }

/* ---------- HOME ---------- */
.home { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); padding-bottom: clamp(3rem, 6vw, 5rem); min-height: 100svh; display: flex; align-items: center; }
.home__grid { display: grid; gap: 2.5rem; align-items: center; }
.home__text { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); }
.home__copy { max-width: 36rem; } .home__copy p:last-child { margin-bottom: 0; }
.home__actions { margin: 0; }
.home__place { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .24em; color: var(--graphite); }
.home__photo { margin: 0; justify-self: center; width: 100%; max-width: 27rem; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--grey); box-shadow: 0 0 0 1px rgba(51,54,56,.12); }
.home__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (min-width: 900px) {
  .home__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
  .home__photo { max-width: none; aspect-ratio: auto; height: min(calc(100svh - var(--header-h) - 5rem), 48rem); min-height: 30rem; justify-self: end; width: auto; aspect-ratio: 9 / 16; }
  .home__photo img { object-position: 50% 50%; }
}

/* ---------- SERVICIOS ---------- */
.specs { display: grid; gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; margin-top: 0; }
@media (min-width: 600px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.spec .ph { margin-bottom: 1.25rem; }
.spec h2, .spec h3 { font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; padding-top: 1rem; position: relative; margin-bottom: .6rem; }
.spec h2::before, .spec h3::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--steel); opacity: .9; }
.spec p { color: var(--graphite); margin: 0; max-width: 30ch; font-size: 1rem; }
.section-cta { margin: clamp(3rem, 6vw, 5rem) 0 0; }

/* ---------- EXPERIENCIA ---------- */
[hidden] { display: none !important; }
.exp { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.exp .prose { color: rgba(255,255,255,.88); margin: 2rem 0 .5rem; }
.exp__text .h-lg { max-width: 14ch; }
.exp__mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem); align-items: start; }
.exp__mosaic .ph { aspect-ratio: 4 / 5; }
.exp__mosaic .ph:nth-child(2) { aspect-ratio: 1; }
.exp__mosaic .ph:nth-child(3) { aspect-ratio: 1; }
.exp__mosaic .ph:nth-child(even) { margin-top: clamp(1.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .exp { grid-template-columns: 6fr 6fr; }
  .exp.no-media { grid-template-columns: 1fr; }
  .exp.no-media .exp__text { display: grid; grid-template-columns: 5fr 6fr; gap: 0 clamp(3rem, 7vw, 7rem); align-items: start; }
  .exp.no-media .exp__text .h-lg { grid-row: 1 / 3; max-width: 14ch; }
  .exp.no-media .exp__text .prose { margin-top: 0; }
}
.exp.no-media .exp__text .prose { max-width: 40rem; }

/* ---------- ABOUT ---------- */
.about__title { max-width: 18ch; }
.about__intro { margin: 1.25rem 0 clamp(2.5rem, 6vw, 4.5rem); }
.about { display: grid; gap: 2.5rem; align-items: start; }
.about__media { position: relative; }
.about__photo { margin: 0; aspect-ratio: 551 / 981; max-height: 78svh; width: 100%; max-width: 30rem; margin-inline: auto; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; }
.about__inset { position: absolute; right: 0; bottom: 4%; width: 38%; max-width: 11rem; box-shadow: 0 0 0 6px var(--grey); }
.qa { display: grid; gap: 0; }
.qa li { padding: 1.75rem 0; position: relative; }
.qa li + li::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--steel); }
.qa h2, .qa h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.25; margin-bottom: .75rem; }
.qa p { margin: 0; font-weight: 400; max-width: 54ch; color: var(--graphite); }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); }
  .about__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .about__photo { margin-inline: 0; }
  .about__inset { right: -8%; }
  .qa li:first-child { padding-top: 0; }
}

/* ---------- TEAM ---------- */
/* One photo of both (IMG_9795, 1086x1448, whole frame). Shown at most 540 css px wide: 2x of that is the whole 1086 px source.
   Mobile: photo, then both bios. Desktop: photo on the left, the two bios stacked on the right with a 1px rule between them. */
.team { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.team__photo { margin: 0; width: 100%; max-width: 540px; aspect-ratio: 1086 / 1448; background: var(--grey); }
.team__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team__members { display: grid; align-content: center; }
.member { padding-block: clamp(2rem, 4vw, 3rem); }
.member:first-child { padding-top: 0; }
.member:last-child { padding-bottom: 0; }
.member + .member { border-top: 1px solid var(--grey); }
.member__name { font-size: 1.25rem; line-height: 1.2; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 .5rem; }
.member__role { font-weight: 500; font-size: .9375rem; color: var(--graphite); margin-bottom: 1.25rem; }
.member p:not(.member__role) { max-width: 38rem; }
.member > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .team { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
}

/* ---------- INSIDE ---------- */
.inside { display: grid; gap: clamp(.75rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
.inside .ph { aspect-ratio: 4 / 3; }
.inside__b, .inside__c { aspect-ratio: 4 / 5 !important; }
.inside__a { aspect-ratio: 16 / 9 !important; }
@media (min-width: 760px) {
  .inside { grid-template-columns: repeat(12, 1fr); }
  .inside .ph { aspect-ratio: auto !important; }
  .inside__a { grid-column: 1 / 9; height: clamp(18rem, 38vw, 34rem); }
  .inside__b { grid-column: 9 / 13; height: clamp(18rem, 38vw, 34rem); }
  .inside__c { grid-column: 1 / 5; height: clamp(16rem, 34vw, 30rem); }
  .inside__d { grid-column: 5 / 9; height: clamp(12rem, 24vw, 22rem); align-self: end; }
  .inside__e { grid-column: 9 / 13; height: clamp(14rem, 30vw, 26rem); margin-top: clamp(1.5rem, 5vw, 4rem); }
}

/* ---------- ACADEMY ---------- */
.academy__title { max-width: 16ch; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.academy__title .thin { color: var(--silver); }
.academy { display: grid; gap: 2.5rem; align-items: start; }
.academy__main { aspect-ratio: 4 / 5; max-width: 32rem; }
.academy .prose { color: rgba(255,255,255,.88); }
.academy__tag { font-weight: 700; font-size: .8125rem; letter-spacing: .22em; margin: 2rem 0; background: var(--steel-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.academy__strip { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(.6rem, 2vw, 1.5rem); margin-top: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 900px) { .academy { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); } .academy.no-media { grid-template-columns: minmax(0, 1fr); } }
.academy.no-media .academy__text { max-width: 44rem; }
@media (min-width: 900px) {
  .academy.no-media .academy__text { max-width: none; display: grid; grid-template-columns: 5fr 6fr; gap: 0 clamp(3rem, 7vw, 7rem); align-items: start; }
  .academy.no-media .academy__text > * { grid-column: 2; }
  .academy.no-media .academy__text > .label { grid-column: 1; grid-row: 1; margin-top: .5rem; }
  .academy.no-media .academy__text > .prose:nth-of-type(1) { grid-row: 1; }
  .academy.no-media .academy__text > .academy__tag { grid-column: 1; grid-row: 2; margin: 0; }
  .academy.no-media .academy__text > .prose:nth-of-type(2) { grid-row: 2; }
}

/* ---------- THE NAIL EDIT ---------- */
/* 7 photos, no empty cell at any width. Rows: phones 2+2+1(featured)+2 / tablets 3+(1+featured)+2 / desktop 4+(featured+2).
   Tiles fill their row (li = flex, .ph grows); the tile that has an aspect-ratio sets the row height, its row-mates stretch. */
.nail-wrap { margin-top: 0; }
.nail { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.5rem, 2vw, .75rem); }
.nail li { display: flex; min-width: 0; }
.nail li:not(:has(.is-filled, .is-pending)) { display: none; }
.nail .ph { flex: 1 1 auto; aspect-ratio: 3 / 4; }
.nail li:nth-child(5) { grid-column: 1 / -1; }
.nail li:nth-child(5) .ph { aspect-ratio: 4 / 3; }
@media (min-width: 600px) {
  .nail { grid-template-columns: repeat(6, 1fr); gap: clamp(.75rem, 2vw, 1rem); }
  .nail li { grid-column: span 2; }
  .nail li:nth-child(4) .ph { aspect-ratio: auto; }
  .nail li:nth-child(5) { grid-column: span 4; }
  .nail li:nth-child(6), .nail li:nth-child(7) { grid-column: span 3; }
  .nail li:nth-child(6) .ph, .nail li:nth-child(7) .ph { aspect-ratio: 4 / 5; }
}
@media (min-width: 1000px) {
  .nail { grid-template-columns: repeat(12, 1fr); gap: clamp(.75rem, 1.6vw, 1.5rem); }
  .nail li { grid-column: span 3; }
  .nail li:nth-child(4) .ph { aspect-ratio: 3 / 4; }
  .nail li:nth-child(5) { grid-column: span 6; }
  .nail li:nth-child(5) .ph { aspect-ratio: 5 / 4; }
  .nail li:nth-child(6), .nail li:nth-child(7) { grid-column: span 3; }
  .nail li:nth-child(6) .ph, .nail li:nth-child(7) .ph { aspect-ratio: auto; }
}

/* ---------- CONTACTO ---------- */
.book { display: grid; gap: clamp(2.5rem, 6vw, 5rem); margin-top: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.book__main .lead { margin-bottom: .5rem; max-width: 34ch; }
.book__main .btn { margin-top: 1.5rem; }
.book__note { color: var(--graphite); max-width: 44ch; font-size: 1rem; margin-top: 1.5rem; }
.block { padding-top: 1.5rem; position: relative; margin-bottom: 2.25rem; }
.block::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--steel); }
.block h2, .block h3 { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.block p { color: var(--graphite); max-width: 52ch; margin-bottom: .6rem; }
.block a, .data a, .prose a, .book__note a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 900px) { .book { grid-template-columns: 5fr 6fr; } }
.data { display: grid; gap: clamp(2.5rem, 6vw, 5rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.data__ask h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.data__ask p { max-width: 42ch; }
.data__list { margin: 0; display: grid; gap: 1.5rem; }
.data__list > div { display: grid; gap: .25rem; padding-top: 1rem; position: relative; }
.data__list > div::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--steel); }
.data__list dt { font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); }
.data__list dd { margin: 0; font-size: 1.0625rem; line-height: 1.6; overflow-wrap: anywhere; }
@media (min-width: 900px) { .data { grid-template-columns: 5fr 6fr; } }

/* ---------- FOOTER ---------- */
.footer { background: #0b0c0d; color: var(--white); padding-block: clamp(4rem, 8vw, 7rem) 2rem; }
/* capped at half the source width (838 px) so it stays sharp on 2x screens */
.footer__lockup { display: flex; align-items: center; gap: 1.25rem; }
.footer__mono { flex: none; width: 56px; height: auto; aspect-ratio: 176 / 175; }
.footer__logo { width: min(calc(100% - 56px - 1.25rem), 26rem); height: auto; aspect-ratio: 838 / 157; }
.footer__claim { font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.01em; margin: clamp(2.5rem, 6vw, 4.5rem) 0 .75rem; }
.footer__tag { font-size: .75rem; letter-spacing: .24em; font-weight: 700; color: var(--silver); margin: 0; }
.footer__cols { display: grid; gap: 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid rgba(177,184,188,.25); }
@media (min-width: 640px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.footer h2, .footer h3 { font-size: .6875rem; letter-spacing: .24em; color: var(--silver); margin-bottom: 1.1rem; }
.footer__legal-h { margin-top: 2.25rem; }
.footer li { margin-bottom: .45rem; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.footer a { text-decoration: none; background: linear-gradient(var(--silver), var(--silver)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.footer a:hover { background-size: 100% 1px; }
.footer__copy { margin: clamp(3rem, 6vw, 5rem) 0 0; font-size: .75rem; letter-spacing: .08em; color: var(--silver); }
.footer--slim { padding-block: 2.5rem; }
.footer__legal-row { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer--slim .footer__copy { margin-top: 1.5rem; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; color: var(--white); }
.lightbox::backdrop { background: rgba(10,11,12,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 88dvh; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); color: inherit; cursor: pointer; display: grid; place-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__close span { grid-area: 1/1; width: 20px; height: 2px; background: currentColor; transform: rotate(45deg); }
.lightbox__close span + span { transform: rotate(-45deg); }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav::before { content: ""; width: 12px; height: 12px; border: solid currentColor; border-width: 2px 2px 0 0; }
.lightbox__prev { left: 1rem; } .lightbox__prev::before { transform: rotate(-135deg); margin-left: 4px; }
.lightbox__next { right: 1rem; } .lightbox__next::before { transform: rotate(45deg); margin-right: 4px; }
.lightbox.is-single .lightbox__nav { display: none; }

/* ---------- Legal pages ---------- */
.site-header--solid { position: sticky; }
.legal-back { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.legal-page .sec { padding-top: clamp(3rem, 7vw, 6rem); }
.legal { max-width: 52rem; }
.legal h1 { margin-bottom: 2rem; }
.legal h2 { font-size: 1.125rem; margin: 2.25rem 0 .75rem; }
.legal li { margin: 0 0 .4rem; list-style: disc; margin-left: 1.25rem; }
.legal__draft { font-size: .875rem; color: var(--graphite); border-left: 2px solid var(--silver); padding-left: .9rem; }
.pending { background: var(--grey); color: var(--black); padding: .05em .35em; }
.legal-page .footer a { background-image: none; }

/* ---------- Reveal (progressive enhancement: content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .btn, .arr { transition: none; } }

/* ---------- Multi-page: rhythm, highlights, link row ---------- */
body { display: flex; flex-direction: column; min-height: 100svh; }
main { flex: 1; display: flex; flex-direction: column; }
main > .sec:last-child, main > .contacto { flex: 1; }
.contacto { display: flex; flex-direction: column; }
.contacto > .sec:last-child { flex: 1; }
/* first band of an inner page clears the fixed header */
body:not(.is-home) main > .sec:first-child, body:not(.is-home) main > .contacto > .sec:first-child { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)); }
.sec--tight-b { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec--tight-t { padding-top: clamp(2.5rem, 5vw, 4rem); }
.sec--tight-b .split, .sec--tight-b .about__intro { margin-bottom: 0; }
.sec--band { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.sec--band .section-cta { margin: 0; }
.sec--band .h-close { margin: 0; }
.academy + .academy__strip, .sec--band .academy__strip { margin-top: 0; }
.err .h-lg { margin-bottom: 2rem; }

/* highlighted headline words: concrete on light surfaces, brushed silver on dark ones */
.hl { color: var(--concrete); }
.surface-dark .hl, .surface-concrete-dark .hl, .surface-graphite .hl { color: var(--silver); background: var(--steel-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.surface-concrete .hl, .surface-silver .hl { color: var(--graphite); }

/* Inicio: row of large links to the other pages */
.hub ul { display: grid; gap: 1px; grid-template-columns: 1fr; background: rgba(177,184,188,.28); border: 1px solid rgba(177,184,188,.28); }
@media (min-width: 640px) { .hub ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .hub ul { grid-template-columns: repeat(4, 1fr); } }
.hub__a { position: relative; display: flex; flex-direction: column; gap: 1.1rem; height: 100%; min-height: 13rem; padding: clamp(1.25rem, 2.2vw, 2rem); background: var(--dark); text-decoration: none; transition: background-color .3s var(--ease); }
.hub__a:hover, .hub__a:focus-visible { background: var(--graphite); }
.hub__label { font-size: .6875rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); }
.hub__title { font-size: clamp(1.05rem, 1.55vw, 1.4rem); font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.hub__a .arr { margin: auto 0 0; align-self: flex-end; font-size: 1.25rem; color: var(--silver); }
.hub__a:hover .arr { transform: translate(3px, -3px); }

/* ---------- PHOTO GROUPS WITH MISSING PHOTOS (main.js sets .no-media / .is-partial) ---------- */
.wrap.no-media > .split:has(+ [data-media]) { margin-bottom: 0; }
.nail.is-partial { grid-template-columns: 1fr; }
.nail.is-partial li, .nail.is-partial li:nth-child(n) { grid-column: auto; }
.nail.is-partial .ph, .nail.is-partial li:nth-child(n) .ph { aspect-ratio: 4 / 5; }
.inside.is-partial { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .nail.is-partial, .inside.is-partial { grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); }
}
@media (min-width: 1000px) {
  .nail.is-partial { grid-template-columns: repeat(min(var(--cols), 3), 1fr); gap: clamp(.75rem, 1.6vw, 1.5rem); }
  .inside.is-partial { grid-template-columns: repeat(min(var(--cols), 3), 1fr); }
  .inside.is-partial .ph { grid-column: auto; height: auto; margin-top: 0; align-self: start; aspect-ratio: 4 / 5 !important; }
}
