/* =========================================================
   Arquitectónico Prestige — Estilos
   ========================================================= */

:root {
  --black: #0b0b0c;
  --ink: #121214;
  --panel: #18181b;
  --line: rgb(255 255 255 / 0.09);
  --cream: #f4efe6;
  --muted: #b3ab9e;
  --gold-1: #f1dca0;
  --gold-2: #c9a45c;
  --gold-3: #9a7432;
  --gold: var(--gold-2);
  --gold-grad: linear-gradient(120deg, var(--gold-3), var(--gold-1) 45%, var(--gold-2) 70%, var(--gold-3));
  --wa: #25d366;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius: 18px;
  --container: 1200px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  color-scheme: dark;
  accent-color: var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--gold-3) var(--black);
  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold-1);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.gold-text {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  @media (prefers-reduced-motion: no-preference) {
    animation: shine 6s linear infinite;
  }
}
@keyframes shine { to { background-position: 200% center; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--gold-grad);
}

/* ---------- Botones ---------- */
.btn {
  --pad-y: .9rem;
  --pad-x: 1.6rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease-out), box-shadow .3s, background-color .3s, color .3s, border-color .3s;
}
.btn-sm { --pad-y: .6rem; --pad-x: 1.2rem; font-size: .85rem; }
.btn-lg { --pad-y: 1.1rem; --pad-x: 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--gold-grad);
  background-size: 180% auto;
  color: #1a1307;
  box-shadow: 0 10px 30px -10px rgb(201 164 92 / .6);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%);
  translate: -120% 0;
}
.btn-gold:hover {
  box-shadow: 0 16px 40px -10px rgb(201 164 92 / .8);
  @media (prefers-reduced-motion: no-preference) {
    transform: translateY(-2px);
    &::after { transition: translate .8s var(--ease-out); translate: 120% 0; }
  }
}

.btn-ghost {
  border-color: rgb(244 239 230 / .35);
  background: rgb(11 11 12 / .25);
  backdrop-filter: blur(6px);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-1); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--gold-1);
  text-decoration: none;
  border-bottom: 1px solid rgb(201 164 92 / .4);
  padding-bottom: .2rem;
  transition: gap .3s var(--ease-out), border-color .3s;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: .9rem; border-color: var(--gold-1); }

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 100;
  background: var(--gold-grad);
  transform-origin: 0 50%;
  scale: 0 1;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: grow-x linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes grow-x { to { scale: 1 1; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgb(11 11 12 / .85), transparent);
  transition: background-color .3s;
}
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 220px;
  }
}
@keyframes header-solid {
  to {
    background-color: rgb(11 11 12 / .92);
    box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px #000;
    backdrop-filter: blur(10px);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(201 164 92 / .5);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text small {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul { display: flex; gap: 2rem; }
.site-nav ul a {
  position: relative;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  color: var(--cream);
  padding-block: .4rem;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--gold-grad);
  scale: 0 1;
  transform-origin: right;
  transition: scale .35s var(--ease-out);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { scale: 1 1; transform-origin: left; }
.site-nav ul a[aria-current="true"] { color: var(--gold-1); }

.menu-toggle, .menu-close, .menu-cta { display: none; }

@media (min-width: 900px) {
  .site-nav {
    display: block;
    position: static;
    inset: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    overflow: visible;
    width: auto;
    height: auto;
  }
}

@media (max-width: 899px) {
  .brand-text small { display: none; }
  .header-cta { display: none; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    place-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgb(201 164 92 / .45);
    background: rgb(11 11 12 / .5);
  }
  .menu-toggle span { width: 20px; height: 1.5px; background: var(--gold-1); }

  .site-nav {
    inset: 0;
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
    padding: calc(var(--header-h) + 2rem) 2rem 2rem;
    background: rgb(11 11 12 / .97);
    color: var(--cream);
    opacity: 0;
    transition: opacity .3s, display .3s, overlay .3s;
    transition-behavior: allow-discrete;
  }
  .site-nav:popover-open { opacity: 1; }
  @starting-style { .site-nav:popover-open { opacity: 0; } }
  .site-nav::backdrop { background: transparent; }
  .site-nav ul { flex-direction: column; gap: 1.25rem; }
  .site-nav ul a { font-family: var(--font-display); font-size: 2.4rem; }
  .menu-close {
    position: absolute;
    top: 15px;
    right: clamp(1rem, 4vw, 2.5rem);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgb(201 164 92 / .45);
    background: none;
    color: var(--gold-1);
    font-size: 1.8rem;
    line-height: 1;
  }
  .menu-cta { display: inline-flex; margin-top: 2.5rem; color: #1a1307; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: clip;
  view-timeline: --hero;
}

.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slides img.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slides img.is-active { animation: kenburns 9s ease-out both; }
}
@keyframes kenburns {
  from { scale: 1.15; translate: 2% 1%; }
  to { scale: 1.02; translate: 0 0; }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 40%, transparent 10%, rgb(11 11 12 / .55) 70%),
    linear-gradient(90deg, rgb(11 11 12 / .94) 0%, rgb(11 11 12 / .7) 45%, rgb(11 11 12 / .2) 100%),
    linear-gradient(to top, var(--black) 0%, transparent 30%);
}

.hero-lines {
  position: absolute;
  right: clamp(-2rem, 3vw, 4rem);
  bottom: 3rem;
  height: min(78svh, 760px);
  width: auto;
  max-width: 60vw;
  fill: none;
  stroke: var(--gold-1);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
  filter: drop-shadow(0 0 3px rgb(201 164 92 / .55)) drop-shadow(0 0 1px #000);
  pointer-events: none;
}
.hero-lines .glow {
  stroke: var(--gold-1);
  stroke-width: 2;
  filter: drop-shadow(0 0 4px var(--gold-1)) drop-shadow(0 6px 10px rgb(241 220 160 / .6));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-lines path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.4s var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * .22s + .2s);
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
/* En pantallas medianas y móviles el dibujo queda detrás del texto: se suaviza */
@media (max-width: 1199px) {
  .hero-lines { opacity: .5; }
}
/* En celulares no se muestra el dibujo */
@media (max-width: 767px) {
  .hero-lines { display: none; }
}

.hero-content {
  position: relative;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding-block: calc(var(--header-h) + 3rem) 6rem;
  max-width: var(--container);
}
.hero-content > * { max-width: 40rem; }

.hero-title {
  margin-block: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8.5vw, 6.75rem);
  line-height: .98;
  letter-spacing: -.01em;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgb(244 239 230 / .85);
}
.hero-lead strong { color: var(--gold-1); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 2.25rem;
  font-size: .85rem;
  color: var(--muted);
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* Entrada al cargar */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span {
    animation: rise 1.1s var(--ease-out) both;
    animation-delay: calc(var(--d) * .14s + .2s);
  }
  .reveal-up {
    animation: fade-up 1s var(--ease-out) both;
    animation-delay: calc(var(--d) * .14s + .2s);
  }
}
@keyframes rise { from { translate: 0 105%; } }
@keyframes fade-up { from { opacity: 0; translate: 0 24px; } }

/* El hero se aleja al hacer scroll */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .hero-content {
      animation: hero-out linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 70%;
    }
    .hero-slides {
      animation: hero-slides-out linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes hero-out { to { opacity: 0; translate: 0 -12vh; } }
@keyframes hero-slides-out { to { translate: 0 22vh; } }

.hero-pause {
  position: absolute;
  left: clamp(1.25rem, 4vw, 2.5rem);
  bottom: 1.5rem;
  z-index: 2;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgb(244 239 230 / .3);
  background: rgb(11 11 12 / .5);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-pause:hover { border-color: var(--gold); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgb(244 239 230 / .5);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-1);
  @media (prefers-reduced-motion: no-preference) {
    animation: cue 1.8s ease-in-out infinite;
  }
}
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

/* ---------- Marquee (se mueve con el scroll) ---------- */
.marquee {
  overflow: clip;
  border-block: 1px solid var(--line);
  background: var(--ink);
  padding-block: 1.4rem;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-style: italic;
  white-space: nowrap;
  color: rgb(244 239 230 / .75);
}
.marquee-track i { font-style: normal; font-size: .5em; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .marquee-track {
      animation: marquee linear both;
      animation-timeline: view();
    }
  }
}
@keyframes marquee { from { translate: 0 0; } to { translate: -35% 0; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(5rem, 10vw, 8.5rem); }
.section-dark { background: var(--ink); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2, .feature h2, .cta-band h2, .contact h2 {
  margin-block: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.75rem);
}
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

/* Aparición al entrar en pantalla */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 60px; scale: .97; } }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .4s, translate .4s var(--ease-out), box-shadow .4s;
}
.service-card:hover {
  border-color: rgb(201 164 92 / .5);
  box-shadow: 0 30px 60px -30px rgb(201 164 92 / .35);
  @media (prefers-reduced-motion: no-preference) { translate: 0 -6px; }
}
.service-media { aspect-ratio: 4 / 3.3; overflow: hidden; }
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1s var(--ease-out);
}
.service-card:hover .service-media img { scale: 1.07; }
.service-body {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  flex: 1;
  padding: 1.75rem;
}
.service-body p { color: var(--muted); flex: 1; }
.service-body .link-arrow { align-self: flex-start; }
.service-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .2em;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

/* ---------- Feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--ink);
  overflow: clip;
}
.feature-media {
  position: relative;
  height: 100%;
  min-height: 560px;
  overflow: clip;
}
.feature-media img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .feature { view-timeline: --feature; }
    .feature-media img {
      animation: parallax linear both;
      animation-timeline: --feature;
    }
  }
}
@keyframes parallax { from { translate: 0 -8%; } to { translate: 0 8%; } }

.feature-text { padding: clamp(3rem, 7vw, 6rem); }
.feature-list {
  display: grid;
  gap: 1.4rem;
  margin-block: 2rem 2.5rem;
}
.feature-list li {
  display: grid;
  gap: .2rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgb(201 164 92 / .45);
}
.feature-list strong { font-size: 1.1rem; color: var(--gold-1); }
.feature-list span { color: var(--muted); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 70vw; }
}

/* ---------- Galería ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.filter {
  padding: .6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 600;
  font-size: .9rem;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--gold); }
.filter[aria-pressed="true"] {
  background: var(--gold-grad);
  color: #1a1307;
  border-color: transparent;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
}
.g-item { aspect-ratio: 3 / 4; }
.g-item[hidden] { display: none; }
.g-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 699px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .g-item span { font-size: .78rem; padding: 2rem .75rem .7rem; }
}
.g-item button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1s var(--ease-out), filter .6s;
}
.g-item span {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem 1.25rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  background: linear-gradient(to top, rgb(11 11 12 / .9), transparent);
  opacity: 0;
  translate: 0 10px;
  transition: opacity .4s, translate .4s var(--ease-out);
}
.g-item button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(201 164 92 / 0);
  transition: box-shadow .4s;
}
.g-item button:hover img, .g-item button:focus-visible img { scale: 1.06; }
.g-item button:hover span, .g-item button:focus-visible span { opacity: 1; translate: 0 0; }
.g-item button:hover::after { box-shadow: inset 0 0 0 1px rgb(201 164 92 / .7); }
@media (hover: none) {
  .g-item span { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .g-item {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(96vw, 1000px);
  max-height: 94dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: visible;
}
.lightbox:modal { overscroll-behavior: contain; }
.lightbox::backdrop {
  background: rgb(5 5 6 / .9);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}
.lightbox figure { margin: 0; display: grid; gap: .8rem; justify-items: center; }
.lightbox img {
  max-height: 84dvh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px #000;
}
.lightbox figcaption { color: var(--muted); font-size: .95rem; }
.lb-btn, .lb-close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgb(201 164 92 / .5);
  background: rgb(11 11 12 / .75);
  font-size: 2rem;
  line-height: 1;
  transition: background-color .3s, color .3s;
}
.lb-btn:hover, .lb-close:hover { background: var(--gold); color: #1a1307; }
.lb-prev { left: .5rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .5rem; top: 50%; translate: 0 -50%; }
.lb-close { top: .5rem; right: .5rem; font-size: 1.8rem; }
.lightbox[open] {
  @media (prefers-reduced-motion: no-preference) {
    animation: lb-in .4s var(--ease-out);
  }
}
@keyframes lb-in { from { opacity: 0; scale: .94; } }

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgb(201 164 92 / .07), transparent 60%), var(--panel);
}
.step-num {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-1);
}
.step h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 6rem 1.5rem;
  text-align: center;
  overflow: clip;
  isolation: isolate;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgb(11 11 12 / .72), rgb(11 11 12 / .94));
}
.cta-inner { max-width: 46rem; }
.cta-inner p { color: rgb(244 239 230 / .85); font-size: 1.15rem; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.contact-list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: .7rem;
  border-radius: 50%;
  border: 1px solid rgb(201 164 92 / .45);
  color: var(--gold-1);
}
.contact-list a, .contact-list span { padding-top: .55rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-1); }

.quote-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  border: 1px solid rgb(201 164 92 / .3);
  background: linear-gradient(160deg, rgb(201 164 92 / .08), transparent 50%), var(--panel);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8);
}
.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.field legend { margin-bottom: .45rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / .14);
  background: var(--black);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; field-sizing: content; min-height: 6.5rem; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(201 164 92 / .2);
}
.field input:user-invalid,
.was-submitted .field input:invalid { border-color: #e2725b; }
.error {
  display: none;
  color: #f0907c;
  font-size: .85rem;
}
.field input:user-invalid + .error,
.was-submitted .field input:invalid + .error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .16);
  font-weight: 600;
  font-size: .92rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chips input:checked + span { background: var(--gold-grad); color: #1a1307; border-color: transparent; }
.chips input:focus-visible + span { outline: 2px solid var(--gold-1); outline-offset: 3px; }

.map {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgb(201 164 92 / .35);
  background: var(--panel);
}
.map-img { display: block; cursor: zoom-in; }
.map-img img { width: 100%; }
.map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 120px; border-radius: 50%; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--muted); max-width: 26rem; font-size: .95rem; }
.site-footer h3 {
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.site-footer ul { display: grid; gap: .6rem; color: var(--muted); font-size: .95rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--gold-1); }
.footer-legal {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
}
@media (min-width: 700px) {
  /* Deja espacio para que el botón flotante de WhatsApp no tape el crédito */
  .footer-legal { padding-bottom: 6rem; }
}
.credit a {
  color: var(--gold-1);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgb(201 164 92 / .4);
  transition: border-color .3s;
}
.credit a:hover { border-color: var(--gold-1); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.wa-float > .icon {
  width: 62px;
  height: 62px;
  padding: 15px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgb(37 211 102 / .6);
  transition: scale .3s var(--ease-out);
}
.wa-float:hover > .icon { scale: 1.08; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float > .icon { animation: pulse 2.4s ease-out 3; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(37 211 102 / .55), 0 12px 30px -8px rgb(37 211 102 / .6); }
  70%, 100% { box-shadow: 0 0 0 18px rgb(37 211 102 / 0), 0 12px 30px -8px rgb(37 211 102 / .6); }
}
.wa-bubble {
  padding: .65rem 1rem;
  border-radius: 14px 14px 4px 14px;
  background: var(--cream);
  color: var(--black);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 12px 30px -10px #000;
  opacity: 0;
  translate: 10px 0;
  pointer-events: none;
  transition: opacity .5s, translate .5s var(--ease-out);
}
.wa-float.show-bubble .wa-bubble, .wa-float:hover .wa-bubble { opacity: 1; translate: 0 0; }

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }
@media (max-width: 699px) {
  .wa-float { display: none; }
  body { padding-bottom: 72px; }
  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: .6rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgb(11 11 12 / .95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem;
    border-radius: 999px;
    border: 1px solid rgb(201 164 92 / .5);
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
  }
  .mobile-bar .mobile-bar-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
  .hero-pause { bottom: 1rem; }
  .scroll-cue { display: none; }
}
