:root {
  --black: #0C0A08;
  --char: #14110E;
  --char-2: #1B1713;
  --gold: #C8A15A;
  --gold-soft: #E2C995;
  --ivory: #EEE5D5;
  --muted: #A39783;
  --line: rgba(200,161,90,.32);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--black); color: var(--ivory); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--caps); font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.4rem; display: flex; align-items: center; gap: 0.9rem; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 em, h1 em { font-style: italic; color: var(--gold-soft); }
.lead { color: var(--muted); max-width: 52ch; margin: 1.2rem 0 0; font-size: 1.02rem; }
.rule { display: flex; align-items: center; justify-content: center; gap: 0.8rem; color: var(--gold); }
.rule::before, .rule::after { content: ""; height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule span { width: 7px; height: 7px; border: 1px solid var(--gold); border-radius: 50%; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem 1.9rem; border: 1px solid var(--gold); color: var(--black); background: var(--gold); font-family: var(--caps); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s ease, color .25s ease; }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn.ghost { background: transparent; color: var(--gold-soft); }
.btn.ghost:hover { background: rgba(200,161,90,.1); }
.btn svg { width: 1.1rem; height: 1.1rem; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(12,10,8,.94); border-color: var(--line); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--caps); font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory); line-height: 1.3; }
.nav { display: flex; gap: 2.2rem; }
.nav a { font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--gold-soft); }
.nav a.on { color: var(--gold-soft); }
@media (max-width: 860px) { .nav a:not(.keep) { display: none; } .brand span { display: none; } .top .wrap { gap: .8rem; } .nav { margin-left: auto; } }

/* Portada */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; padding: 110px var(--gutter) 70px; background:
  radial-gradient(ellipse 60% 50% at 50% 42%, rgba(200,161,90,.10), transparent 70%), var(--black); }
.hero-inner { max-width: 760px; display: grid; justify-items: center; }
.hero .mark { width: clamp(150px, 26vw, 220px); margin-bottom: 2.2rem; }
.hero .kicker { font-family: var(--caps); font-size: clamp(0.7rem, 1.6vw, 0.82rem); letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.2rem; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.2rem); font-weight: 400; }
.hero h1 em { display: block; }
.hero .lead { margin: 1.6rem auto 0; text-align: center; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.6rem; }

section { padding-block: clamp(5rem, 11vw, 8.5rem); }
.alt { background: var(--char); }

/* Manifiesto */
.manifest { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.manifest figure { margin: 0; position: relative; }
.slider .slides { position: relative; aspect-ratio: 4/5; }
.slider .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s ease; }
.slider .slides img.on { opacity: 1; }
.slider .dots { display: flex; justify-content: center; gap: 0.7rem; margin-top: 1.2rem; }
.slider .dots button { all: unset; cursor: pointer; width: 28px; height: 2px; background: var(--line); transition: background .3s; padding: 8px 0; background-clip: content-box; }
.slider .dots button.on { background-color: var(--gold); }
.manifest figure::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line); z-index: -1; }
.manifest blockquote { margin: 2rem 0 0; padding-left: 1.4rem; border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold-soft); line-height: 1.4; }
@media (max-width: 820px) { .manifest { grid-template-columns: 1fr; } .manifest figure { max-width: 480px; } }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 3.4rem; }
.services article { padding: 2.2rem 2rem 2.4rem 0; border-bottom: 1px solid var(--line); }
.services article:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.services .num { font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); }
.services h3 { font-size: 1.65rem; margin: 0.8rem 0 0.6rem; }
.services p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .services article, .services article:not(:nth-child(3n+1)) { padding: 1.8rem 0; border-left: 0; }
}

/* Trabajos */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 3.2rem; }
.head-row .lead { margin: 0; max-width: 40ch; }
.gallery { columns: 3 300px; column-gap: 1.4rem; }
.gallery button { all: unset; display: block; break-inside: avoid; margin: 0 0 1.4rem; cursor: zoom-in; position: relative; width: 100%; }
.gallery img { width: 100%; height: auto; transition: transform .6s ease, filter .6s ease; filter: saturate(.96); }
.gallery .frame { overflow: hidden; }
.gallery button:hover img { transform: scale(1.03); filter: saturate(1.04); }
.gallery .cap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; font-family: var(--caps); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.gallery .cap b { font-weight: 400; color: var(--gold); }
.gallery button:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }

.viewer { border: 1px solid var(--line); padding: 0; background: var(--black); color: var(--ivory); max-width: min(94vw, 980px); max-height: 94vh; }
.viewer::backdrop { background: rgba(6,5,4,.88); }
.viewer img { max-height: 84vh; width: auto; margin: 0 auto; }
.viewer p { margin: 0; padding: 0.8rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.viewer button { all: unset; cursor: pointer; color: var(--muted); }
.viewer button:hover { color: var(--ivory); }

/* Proceso */
.steps { list-style: none; margin: 3.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 3.4rem); counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 1.1rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Presupuesto */
.quote { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
.zones { list-style: none; margin: 2.2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.zones li { display: flex; justify-content: space-between; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }
.zones li small { font-family: var(--caps); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); align-self: center; }
.contact-line { margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
.contact-line a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
form.card { background: var(--char-2); border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.8rem); display: grid; gap: 1.5rem; }
form.card h3 { font-size: 1.8rem; }
form.card .note { margin: -0.8rem 0 0; color: var(--muted); font-size: 0.92rem; }
.f { display: grid; gap: 0.45rem; }
.f label { font-family: var(--caps); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.f input, .f select, .f textarea { font: inherit; font-weight: 400; color: var(--ivory); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0.55rem 0; border-radius: 0; width: 100%; transition: border-color .2s; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; }
.f select option { background: var(--char-2); color: var(--ivory); }
.f textarea { min-height: 96px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: #6E6455; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
form.card .btn { justify-self: start; }
.form-msg { margin: 0; font-size: 0.88rem; color: var(--muted); min-height: 1.4em; }

footer { border-top: 1px solid var(--line); padding: 3rem 0 4.5rem; text-align: center; }
footer img { width: 64px; margin: 0 auto 1.2rem; }
footer p { margin: 0.3rem 0; color: var(--muted); font-size: 0.85rem; }
footer .tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-soft); }
footer a { color: var(--muted); }

.wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--black); border: 1px solid var(--gold); color: var(--gold-soft); text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: background .2s; }
.wa:hover { background: #1d1914; }
.wa svg { width: 24px; height: 24px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

.center { text-align: center; margin-top: 2.6rem; }

/* Página de trabajos */
.page-head { padding-top: calc(72px + clamp(3.5rem, 9vw, 6rem)); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.cta-band { text-align: center; }
.cta-band h2 { margin: 1.6rem 0 0; }
.cta-band .lead { margin: 1.2rem auto 0; }
.manifest figure.slider::after { display: none; }
@media (max-width: 860px) {
  .top .wrap { height: auto; padding-top: 86px; padding-bottom: 14px; }
  .hero { padding-top: 200px; }
  .page-head { padding-top: calc(160px + 3rem); }
}
.gallery .group .frame { display: grid; gap: 6px; }
.v-nav { display: inline-flex; align-items: center; gap: 1rem; }
.v-nav[hidden] { display: none; }
.v-nav button { font-size: 1.4rem; line-height: 1; padding: 0 .3rem; color: var(--gold-soft) !important; }
.v-nav, #v-count { white-space: nowrap; }
@media (max-width: 600px) { .viewer p { flex-wrap: wrap; } #v-cap { flex: 1 1 100%; } }
