/* ==========================================================================
   ARISTA Digital Studio — hoja de estilos principal
   Tokens, tipografía editorial, composición y componentes.
   ========================================================================== */

/* Tipografías locales (Fraunces + Inter, licencia SIL Open Font) */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/fraunces-italic-300_600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-normal-300_700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-normal-300_600.woff2') format('woff2');
}

:root {
  /* Color */
  --charcoal: #16171A;
  --charcoal-soft: #1D1F23;
  --cream: #F3EFE2;
  --cream-light: #FCFAF1;
  --olive: #4A5428;
  --olive-deep: #3D4620;
  --gold: #C0953A;            /* líneas, logo, detalles sobre oscuro */
  --gold-text: #8A671C;       /* etiquetas sobre crema (AA) */
  --gold-light: #E3C88F;      /* acentos sobre oliva y carbón */
  --terracotta: #B85C38;      /* referencia de marca / detalles gráficos */
  --terracotta-ink: #A8502C;  /* acción principal con texto AA */
  --terracotta-dark: #8F4225;
  --ink: #26261F;
  --muted: rgba(38, 38, 31, .72);
  --muted-soft: rgba(38, 38, 31, .66);
  --hairline: rgba(38, 38, 31, .14);
  --hairline-dark: rgba(243, 239, 226, .14);

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 1240px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Movimiento */
  --ease: cubic-bezier(.22, .68, .18, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: rgba(192, 149, 58, .3); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}
.hero :focus-visible,
.nav :focus-visible,
.menu :focus-visible,
.footer :focus-visible,
.agenda__aside :focus-visible,
.closing :focus-visible { outline-color: var(--gold-light); }

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--cream-light);
  color: var(--ink);
  font-size: .85rem;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Tipografía compartida
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--cream { color: var(--gold-light); }

.h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.022em;
  text-wrap: balance;
  margin-top: 1.1rem;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section__intro {
  margin-top: 1.5rem;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .95rem 1.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease),
              box-shadow .4s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 130% at var(--mx) var(--my),
              rgba(255, 255, 255, .26), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(1px); }

.btn__ico { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.btn:hover .btn__ico { transform: translateX(3px); }

.btn--terra {
  background: var(--terracotta-ink);
  color: var(--cream-light);
  box-shadow: 0 16px 34px -22px rgba(168, 80, 44, .9);
}
.btn--terra:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -22px rgba(158, 74, 43, .95);
}

.btn--ghost {
  border-color: rgba(243, 239, 226, .28);
  color: var(--cream);
  background: rgba(243, 239, 226, .03);
}
.btn--ghost:hover {
  border-color: rgba(216, 181, 105, .7);
  color: var(--gold-light);
  background: rgba(243, 239, 226, .06);
  transform: translateY(-2px);
}

.btn--sm { min-height: 42px; padding: .62rem 1.15rem; font-size: .8rem; }
.btn--lg { min-height: 54px; padding: 1.1rem 2rem; font-size: .98rem; }
.btn--block { width: 100%; }

.link-inline {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease),
              border-color .5s var(--ease), box-shadow .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1480px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(1rem, 2vw, 1.6rem);
  transition: padding-block .5s var(--ease);
}

.nav.is-scrolled {
  background: rgba(20, 21, 24, .88);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(192, 149, 58, .2);
  box-shadow: 0 18px 40px -34px #000;
}
.nav.is-scrolled .nav__inner { padding-block: .75rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--cream);
}
.brand__mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand__word {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .3em;
  margin-right: -.3em;
  color: var(--cream);
}

.nav__links { display: none; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav__links a {
  position: relative;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243, 239, 226, .66);
  padding-block: .35rem;
  transition: color .35s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__actions .btn { display: none; }

.nav__toggle {
  position: relative;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 239, 226, .24);
  border-radius: 50%;
  background: rgba(22, 23, 26, .25);
  cursor: pointer;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--cream);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav__toggle:hover { border-color: rgba(216, 181, 105, .65); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 6.5rem var(--gutter) 2.5rem;
  background:
    radial-gradient(120% 70% at 85% 0%, #24231f 0%, var(--charcoal) 55%);
  color: var(--cream);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: .85rem;
  border-bottom: 1px solid rgba(192, 149, 58, .18);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--cream);
  transition: color .3s var(--ease), padding-left .4s var(--ease);
}
.menu__nav a:hover { color: var(--gold-light); padding-left: .35rem; }
.menu__num {
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--gold);
}
.menu__foot { display: grid; gap: 1rem; justify-items: start; }
.menu__foot .btn { width: 100%; }
.menu__wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgba(243, 239, 226, .72);
}
.menu__wa svg { width: 17px; height: 17px; }
.menu__place {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243, 239, 226, .62);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: clamp(7rem, 12vh, 9rem) 0 clamp(9rem, 14vh, 12rem);
  background:
    radial-gradient(110% 85% at 78% 32%, #2b2822 0%, #1a1a1c 48%, var(--charcoal) 78%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 0%;
  filter: grayscale(.35) sepia(.14) contrast(1.06) brightness(.78) saturate(.92);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, #000 22%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, #000 22%, #000 74%, transparent 100%);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(22, 23, 26, .62) 0%, rgba(22, 23, 26, .82) 42%, var(--charcoal) 92%),
    radial-gradient(70% 55% at 50% 100%, rgba(22, 23, 26, .9), transparent 72%);
}

.hero__grid { position: relative; z-index: 3; }
.hero__copy { max-width: 700px; }

.wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(3.6rem, 13.5vw, 10.5rem);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.038em;
  color: var(--cream-light);
  margin-top: .9rem;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  background-image: linear-gradient(100deg,
    #FCFAF1 0%, #FCFAF1 42%, #E8D3A0 49%, #FCFAF1 56%, #FCFAF1 100%);
  background-size: 320% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wordmark-sheen 12s var(--ease) infinite;
}
@keyframes wordmark-sheen {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}
.wordmark__sub {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: .01em;
  color: rgba(243, 239, 226, .92);
}
.wordmark__rule {
  width: clamp(2.75rem, 6vw, 5rem);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(192, 149, 58, .35));
  flex: none;
}

.hero__lede {
  margin-top: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 44ch;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.62;
  color: rgba(243, 239, 226, .8);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.hero__alt {
  margin-top: .9rem;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(243, 239, 226, .68);
}
.link-quiet {
  background: none;
  border: 0;
  padding: .4rem 0;
  min-height: 44px;
  font: inherit;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(227, 200, 143, .45);
  cursor: pointer;
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.link-quiet:hover { color: #F8EFD4; text-decoration-color: currentColor; }

.hero__meta {
  margin-top: 1.1rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243, 239, 226, .6);
}

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(5.5rem, 9vw, 8rem);
  z-index: 4;
  display: none;
  align-items: center;
  gap: .75rem;
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(243, 239, 226, .6);
  transition: color .35s var(--ease);
}
.hero__scroll:hover { color: var(--gold-light); }
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--gold), rgba(192, 149, 58, 0));
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: translateY(-100%);
  animation: scroll-drip 3.4s var(--ease) infinite;
}
@keyframes scroll-drip {
  0%   { transform: translateY(-100%); opacity: 0; }
  25%  { opacity: 1; }
  75%  { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(100%); opacity: 0; }
}

.hero__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 5;
  line-height: 0;
  pointer-events: none;
}
.hero__curve svg { width: 100%; height: clamp(58px, 8vw, 122px); }
.hero__curve-fill { fill: var(--cream); }
.hero__curve-line {
  stroke: url(#goldLine);
  stroke-opacity: .85;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero__curve-shimmer {
  stroke: #F6E3B4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 170 1300;
  opacity: .7;
  filter: drop-shadow(0 0 5px rgba(216, 181, 105, .45));
  vector-effect: non-scaling-stroke;
  animation: gold-flow 16s linear infinite;
}
@keyframes gold-flow {
  from { stroke-dashoffset: 1470; }
  to   { stroke-dashoffset: -300; }
}

/* Textura de grano sobre superficies oscuras */
.hero::after,
.closing__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */

.services { background: var(--cream); padding-top: clamp(3.25rem, 6vw, 5.5rem); }

.services__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }

.services__hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--muted-soft);
}
.services__hint svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

.services__list {
  border-top: 1px solid var(--hairline);
  display: grid;
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  grid-template-areas: "num body go";
  align-items: center;
  column-gap: clamp(.75rem, 1.5vw, 1.15rem);
  padding: clamp(1.3rem, 2.3vw, 1.85rem) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .5s var(--ease), background-color .5s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -.35);
  background: linear-gradient(90deg, rgba(252, 250, 241, .92), rgba(252, 250, 241, 0));
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.service:hover { padding-left: .6rem; }
.service:hover::before { opacity: 1; }

.service__num {
  grid-area: num;
  font-family: var(--serif);
  font-size: .92rem;
  font-weight: 400;
  color: var(--gold-text);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.service__icon {
  grid-area: icon;
  display: none;
  display: grid;
  place-items: center;
  width: clamp(40px, 4.2vw, 48px);
  aspect-ratio: 1;
  border: 1px solid rgba(38, 38, 31, .16);
  border-radius: 50%;
  color: var(--olive);
  transition: color .45s var(--ease), border-color .45s var(--ease),
              background-color .45s var(--ease), transform .45s var(--ease);
}
.service__icon svg { width: 21px; height: 21px; }
.service:hover .service__icon {
  color: var(--terracotta);
  border-color: rgba(184, 92, 56, .5);
  background: rgba(184, 92, 56, .05);
  transform: rotate(-4deg);
}

.service__body { grid-area: body; }
.service__title {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.9vw, 1.6rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--ink);
}
.service__desc {
  margin-top: .4rem;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}
.service__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .7rem;
}
.service__tag {
  display: inline-block;
  margin-bottom: 0;
  padding: .22rem .6rem;
  border: 1px solid rgba(192, 149, 58, .45);
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7C5C18;
}

.service__go {
  grid-area: go;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(38, 38, 31, .18);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
}
.service__go svg { width: 18px; height: 18px; }
.service__go:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream-light);
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Proceso
   -------------------------------------------------------------------------- */

.process { background: var(--cream-light); }
.process__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }

.arch { position: relative; margin: 0; max-width: 460px; }
.arch__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: 0 45px 80px -60px rgba(38, 38, 31, .85);
}
.arch__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(80% 60% at 60% 75%, rgba(206, 122, 54, .26), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.arch__frame::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(216, 181, 105, .38);
  border-radius: inherit;
  pointer-events: none;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(.92) contrast(1.04) brightness(1.02);
  transition: transform 1.4s var(--ease);
}
.arch:hover img { transform: scale(1.035); }
.arch figcaption {
  margin-top: 1.1rem;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-soft);
  text-align: center;
}

.steps {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.85rem, 2vw, 1.4rem);
  padding: clamp(1.15rem, 2vw, 1.5rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.step__num {
  font-family: var(--serif);
  font-size: .92rem;
  color: var(--gold-text);
  padding-top: .2rem;
  font-variant-numeric: tabular-nums;
  transition: color .4s var(--ease);
}
.step:hover .step__num { color: var(--terracotta); }
.step__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1rem;
}
.step h3 {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.step__time {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  white-space: nowrap;
}
.step p {
  margin-top: .5rem;
  font-size: .93rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 48ch;
}

/* --------------------------------------------------------------------------
   Estudio / Cómo trabajamos
   -------------------------------------------------------------------------- */

.craft { background: var(--cream); }
.craft__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.h2--wide { max-width: 22ch; }

.principles { margin-top: clamp(2rem, 3.5vw, 2.75rem); border-top: 1px solid var(--hairline); }
.principle {
  padding: clamp(1.15rem, 2vw, 1.5rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.principle dt {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.3;
  color: var(--ink);
}
.principle__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(192, 149, 58, .45);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--gold-text);
}
.principle dd {
  margin: .5rem 0 0 2.85rem;
  font-size: .93rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 46ch;
}

.craft__media { position: relative; margin: 0; }
.craft__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 5px;
  filter: saturate(.92) contrast(1.03) brightness(1.01);
}
.craft__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(192, 149, 58, .4);
  border-radius: 5px;
  pointer-events: none;
}
.craft__caption {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted);
}
.craft__caption span { width: 26px; height: 1px; background: var(--gold); flex: none; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.closing { background: var(--cream); padding-top: clamp(1rem, 3vw, 2.5rem); }

.closing__shell {
  position: relative;
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.35rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(90% 80% at 50% 0%, #55602f 0%, var(--olive) 52%, var(--olive-deep) 100%);
  border-radius: 0;
  clip-path: url(#cta-arch);
  color: var(--cream-light);
  overflow: hidden;
  isolation: isolate;
  filter: drop-shadow(0 34px 44px rgba(61, 70, 32, .22));
}
.closing__shell::after {
  content: "";
  position: absolute;
  top: clamp(18px, 3vw, 30px);
  left: calc(50% - .5px);
  width: 1px;
  height: clamp(22px, 3.5vw, 34px);
  background: linear-gradient(180deg, rgba(216, 181, 105, .8), rgba(216, 181, 105, 0));
  pointer-events: none;
  z-index: 3;
}

.closing__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .09;
}
.closing__texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: grayscale(1) contrast(1.1) blur(6px);
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(90% 85% at 50% 55%, transparent 22%, #000 88%);
  mask-image: radial-gradient(90% 85% at 50% 55%, transparent 22%, #000 88%);
}

.closing__inner {
  position: relative;
  z-index: 3;
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}
.closing__title {
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--cream-light);
}
.closing__copy {
  margin: 1.4rem auto 0;
  max-width: 44ch;
  font-size: clamp(.96rem, 1.3vw, 1.06rem);
  line-height: 1.7;
  color: rgba(252, 250, 241, .82);
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.4rem;
  margin-top: clamp(1.9rem, 3.5vw, 2.6rem);
}
.closing__wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid rgba(252, 250, 241, .28);
  font-size: .86rem;
  color: rgba(252, 250, 241, .8);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.closing__wa svg { width: 17px; height: 17px; }
.closing__wa:hover { color: var(--gold-light); border-color: rgba(216, 181, 105, .6); }
.closing__fine {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(252, 250, 241, .72);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--charcoal);
  color: rgba(243, 239, 226, .7);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
}
.footer__grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(192, 149, 58, .16);
}
.footer__contact { display: grid; justify-items: start; align-content: start; }
.brand--footer { color: var(--cream); }
.footer__word {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .3em;
  margin-right: -.3em;
  color: var(--cream);
}
.footer__tag {
  margin-top: 1.1rem;
  font-size: .82rem;
  line-height: 1.75;
  color: rgba(243, 239, 226, .55);
}
.footer__tag span {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243, 239, 226, .4);
}
.footer__label {
  margin-bottom: .9rem;
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  color: var(--cream);
  border-bottom: 1px solid rgba(192, 149, 58, .25);
  padding-bottom: .15rem;
  transition: color .35s var(--ease), border-color .35s var(--ease);
  word-break: break-word;
}
.footer__mail:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243, 239, 226, .62);
  transition: color .35s var(--ease);
}
.footer__wa svg { width: 16px; height: 16px; }
.footer__wa:hover { color: var(--gold-light); }
.footer__tel {
  margin-top: .7rem;
  font-family: var(--serif);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  color: rgba(243, 239, 226, .88);
  transition: color .3s var(--ease);
}
.footer__tel:hover { color: var(--gold-light); }
.footer__social { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

.footer__legal { display: grid; justify-items: start; gap: .5rem; }
.footer__link {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  font-size: .82rem;
  color: rgba(243, 239, 226, .7);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer__link:hover { color: var(--gold-light); border-color: rgba(216, 181, 105, .5); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .65rem 1.5rem;
  padding-top: 1.75rem;
  font-size: .7rem;
  letter-spacing: .04em;
  color: rgba(243, 239, 226, .62);
}
.footer__made { color: rgba(243, 239, 226, .56); }

/* --------------------------------------------------------------------------
   Diálogos (agendamiento y legales)
   -------------------------------------------------------------------------- */

.dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  margin: 0;
  padding: clamp(.75rem, 2.5vw, 2rem);
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 90;
}
.dialog:not([open]) { display: none; }
.dialog::backdrop {
  background: rgba(12, 13, 15, .78);
  backdrop-filter: blur(8px);
}

.agenda-shell {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 92svh;
}
.agenda {
  position: relative;
  display: grid;
  width: 100%;
  max-height: 92svh;
  overflow: hidden;
  background: var(--cream-light);
  border-radius: 16px;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .7);
}

.agenda__aside {
  position: relative;
  display: none;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  background:
    radial-gradient(120% 80% at 20% 0%, #2a2925 0%, var(--charcoal) 62%);
  color: var(--cream);
  overflow: hidden;
}
.agenda__aside::after {
  content: "";
  position: absolute;
  inset: auto -40% -30% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(192, 149, 58, .28), transparent 65%);
  pointer-events: none;
}
.agenda__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--serif);
  font-size: .9rem;
  letter-spacing: .26em;
  color: var(--cream);
}
.agenda__brand .brand__mark { width: 22px; height: 22px; }
.agenda__aside-title {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--cream-light);
}
.agenda__list {
  position: relative;
  display: grid;
  gap: .8rem;
  margin-top: 1.6rem;
  font-size: .84rem;
  line-height: 1.55;
  color: rgba(243, 239, 226, .72);
}
.agenda__list li { display: flex; gap: .6rem; }
.agenda__list svg { width: 16px; height: 16px; flex: none; color: var(--gold); margin-top: .15rem; }
.agenda__aside-foot {
  position: relative;
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(192, 149, 58, .22);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243, 239, 226, .62);
}

.agenda__main {
  position: relative;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.75rem, 4vw, 2.9rem);
}
.dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(38, 38, 31, .16);
  border-radius: 50%;
  background: rgba(252, 250, 241, .6);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.dialog__close svg { width: 18px; height: 18px; }
.dialog__close:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream-light);
  transform: rotate(90deg);
}
.dialog__title {
  margin-top: .9rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.dialog__intro {
  margin-top: .8rem;
  max-width: 50ch;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Formulario */
.agenda__cal {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.4rem;
  padding: .9rem 1.05rem;
  border: 1px solid rgba(192, 149, 58, .5);
  background: rgba(192, 149, 58, .09);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.agenda__cal:hover { background: rgba(192, 149, 58, .17); border-color: var(--gold); }
.agenda__cal-ico { width: 21px; height: 21px; flex: none; color: var(--gold-text); }
.agenda__cal-text { display: grid; gap: .1rem; flex: 1; }
.agenda__cal-text strong { font-size: .87rem; font-weight: 500; color: var(--ink); }
.agenda__cal-text span { font-size: .71rem; line-height: 1.4; color: var(--muted); }
.agenda__cal-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold-text);
  transition: transform .3s var(--ease);
}
.agenda__cal:hover .agenda__cal-arrow { transform: translateX(3px); }

.form { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2rem); }
.form__row { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(38, 38, 31, .72);
}
.field__optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .8rem .9rem;
  font-family: var(--sans);
  font-size: .94rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(38, 38, 31, .18);
  border-radius: 7px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 86px; line-height: 1.55; }
.field select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2326261F' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input::placeholder { color: rgba(38, 38, 31, .58); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fffdf7;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, .16);
}
.field [aria-invalid="true"] {
  border-color: #A33B2A;
  background: rgba(163, 59, 42, .05);
}
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163, 59, 42, .18); }
.field__error {
  min-height: 0;
  font-size: .74rem;
  line-height: 1.4;
  color: #9B3A28;
}
.field__error:empty { display: none; }

.form__status {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--muted);
}
.form__status:empty { display: none; }
.form__status.is-error { color: #9B3A28; }
.form__status.is-success { color: var(--olive); }

.form__fallback {
  display: grid;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(192, 149, 58, .6);
  border-radius: 10px;
  background: rgba(192, 149, 58, .08);
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(38, 38, 31, .78);
}
.form__fallback[hidden] { display: none; }
.form__fallback-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.form__fallback .btn--ghost {
  border-color: rgba(38, 38, 31, .24);
  color: var(--ink);
  background: transparent;
}
.form__fallback .btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.form__privacy { font-size: .7rem; color: var(--muted); }

/* Consentimiento */
.field--check { gap: .25rem; }
.field label.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  color: rgba(38, 38, 31, .8);
  cursor: pointer;
}
.field--check input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: .15rem 0 0;
  padding: 0;
  accent-color: var(--terracotta);
  border-radius: 4px;
  background: none;
  box-shadow: none;
  cursor: pointer;
}
.field--check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  box-shadow: none;
}
.field--check input[type="checkbox"][aria-invalid="true"] {
  outline: 2px solid #A33B2A;
  outline-offset: 1px;
  background: none;
}

/* Legales */
.legal-shell {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 88svh;
}
.dialog--legal .legal {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 88svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--cream-light);
  border-radius: 14px;
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .7);
}
.legal__date {
  margin-top: .6rem;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.legal h3 {
  margin: clamp(1.4rem, 2.5vw, 1.9rem) 0 .4rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: -.005em;
  color: var(--ink);
}
.legal p {
  font-size: .91rem;
  line-height: 1.72;
  color: var(--muted);
}
.legal a { color: var(--terracotta-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--terracotta-dark); }

/* --------------------------------------------------------------------------
   Revelado al hacer scroll
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; font-size: .87rem; padding-inline: 1.1rem; }
  .closing__shell { padding-top: clamp(6.5rem, 18vw, 8rem); padding-inline: 1.6rem; }
  .closing .eyebrow { max-width: 25ch; margin-inline: auto; }
  .closing__fine { letter-spacing: .13em; }
  .closing__actions .btn { width: 100%; }
  .closing__wa { justify-content: center; width: 100%; }
}

@media (min-width: 620px) {
  .service {
    grid-template-columns: 2.1rem auto minmax(0, 1fr) auto;
    grid-template-areas: "num icon body go";
  }
  .service__icon { display: grid; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 780px) {
  .hero__scroll { display: inline-flex; }
  .closing__copy { font-size: 1.05rem; }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__actions .btn { display: inline-flex; }
  .services__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .services__head { position: sticky; top: 7.5rem; align-self: start; }
  .services__hint { margin-top: 2.75rem; }
  .process__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .craft__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; }
  .craft__media { margin-top: 2.5rem; }
  .footer__grid { grid-template-columns: 1.3fr .9fr auto; }
  .agenda { grid-template-columns: 340px minmax(0, 1fr); max-height: 90svh; }
  .agenda-shell { max-height: 90svh; }
  .agenda__aside { display: flex; }
  .agenda__main { max-height: 90svh; }
}

@media (min-width: 1100px) {
  .hero__media { width: 60%; }
  .hero__media img {
    -webkit-mask-image:
      linear-gradient(to left, #000 0 46%, rgba(0, 0, 0, .82) 66%, transparent 93%),
      linear-gradient(to bottom, rgba(0,0,0,.5) 0%, #000 16%, #000 78%, transparent 100%);
    mask-image:
      linear-gradient(to left, #000 0 46%, rgba(0, 0, 0, .82) 66%, transparent 93%),
      linear-gradient(to bottom, rgba(0,0,0,.5) 0%, #000 16%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hero__veil {
    background:
      linear-gradient(90deg, #16171A 0%, rgba(22, 23, 26, .94) 26%, rgba(22, 23, 26, .55) 46%, rgba(22, 23, 26, 0) 66%),
      linear-gradient(180deg, rgba(22, 23, 26, .35) 0%, transparent 30%, rgba(22, 23, 26, .55) 88%, var(--charcoal) 100%);
  }
  .hero__copy { max-width: 620px; }
  .arch { max-width: 100%; }
  .step h3 { font-size: 1.3rem; }
}

@media (min-width: 1280px) {
  .hero__media { width: 56%; }
  .hero__copy { max-width: 660px; }
  .liquid--hero { right: 4%; }
}

/* ==========================================================================
   Marca geométrica, movimiento de impacto y rendimiento móvil
   Todo el movimiento nuevo usa transform/opacity (compositadas por la GPU).
   ========================================================================== */

/* --- Isotipo --- */
.brand__mark {
  fill: currentColor;
  width: 27px;
  height: 27px;
}
.agenda__brand .brand__mark {
  fill: currentColor;
  width: 22px;
  height: 22px;
}
.brand__mark { transition: filter .5s var(--ease), transform .6s var(--ease); }
.brand:hover .brand__mark {
  transform: rotate(-3deg) scale(1.05);
  filter: drop-shadow(0 0 9px rgba(216, 181, 105, .45));
}

/* --- Barra de progreso de lectura --- */
.nav__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(192, 149, 58, .1), var(--gold) 55%, var(--gold-light));
  opacity: 0;
  transition: opacity .5s var(--ease);
  will-change: transform;
}
.nav.is-scrolled .nav__progress { opacity: .95; }

/* --- Hero: aliento dorado de fondo --- */
.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(42% 44% at 32% 42%, rgba(192, 149, 58, .2), transparent 72%);
  animation: hero-breathe 15s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
  from { transform: translate3d(-2%, 1%, 0) scale(1); opacity: .75; }
  to   { transform: translate3d(3%, -2%, 0) scale(1.16); opacity: 1; }
}

/* Monograma grabado sobre el mármol: se dibuja al cargar */
.hero__monogram {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(-3rem, 1vw, 3rem);
  width: clamp(280px, 33vw, 540px);
  height: auto;
  transform: translateY(-50%) rotate(-5deg);
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linejoin: round;
  opacity: .22;
  pointer-events: none;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: mark-draw 3.2s var(--ease) .55s forwards;
}
@keyframes mark-draw { to { stroke-dashoffset: 0; } }

/* --- Wordmark: entrada con máscara y brillo continuo --- */
.wordmark {
  overflow: hidden;
  padding-bottom: .04em;
  background-image: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}
.wordmark__text {
  display: inline-block;
  background-image: linear-gradient(100deg,
    #FCFAF1 0%, #FCFAF1 42%, #E8D3A0 49%, #FCFAF1 56%, #FCFAF1 100%);
  background-size: 320% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wordmark-sheen 12s var(--ease) infinite;
  transition: transform 1.2s var(--ease) .15s;
}
.js .wordmark__text { transform: translateY(112%) rotate(1.5deg); }
.js .wordmark.is-in .wordmark__text { transform: translateY(0) rotate(0); }

/* Ken Burns lento sobre la escultura (solo pantallas grandes) */
@media (min-width: 780px) {
  .hero__media img {
    animation: hero-drift 36s ease-in-out infinite alternate;
    will-change: transform;
  }
}
@keyframes hero-drift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.2%, -1.6%, 0); }
}

/* --- Cinta de marca --- */
.ribbon {
  position: relative;
  overflow: hidden;
  padding-block: .9rem;
  background: var(--charcoal);
  border-block: 1px solid rgba(192, 149, 58, .22);
  color: var(--gold-light);
}
.ribbon__track {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  width: max-content;
  animation: ribbon 38s linear infinite;
  will-change: transform;
}
.ribbon__track span {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ribbon__track i {
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}
@keyframes ribbon {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --- Regla dorada que se dibuja bajo los títulos --- */
.services__head .h2::after,
.process__body .h2::after,
.craft__copy .h2::after {
  content: "";
  display: block;
  width: clamp(56px, 7vw, 88px);
  height: 1px;
  margin-top: 1.4rem;
  background: linear-gradient(90deg, var(--gold), rgba(192, 149, 58, 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease) .25s;
}
.services__head .h2.is-in::after,
.process__body .h2.is-in::after,
.craft__copy .h2.is-in::after { transform: scaleX(1); }

/* --- Filas de servicio: reflejo dorado al pasar --- */
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(192, 149, 58, .17) 48%, transparent 64%);
  transform: translateX(-100%);
}
.service:hover::after { opacity: 1; animation: row-sheen 1.2s var(--ease); }
@keyframes row-sheen {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.service > * { position: relative; z-index: 1; }

/* --- Cierre: aurora dorada en lugar del canvas --- */
.closing__glow {
  position: absolute;
  inset: -22%;
  z-index: 1;
  pointer-events: none;
  opacity: .6;
  background:
    radial-gradient(36% 42% at 30% 34%, rgba(216, 181, 105, .6), transparent 68%),
    radial-gradient(32% 38% at 72% 66%, rgba(190, 210, 138, .38), transparent 70%);
  mix-blend-mode: soft-light;
  animation: aurora 24s var(--ease) infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-3%, 2%, 0) scale(1); }
  50%  { transform: translate3d(4%, -3%, 0) scale(1.14); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.04); }
}

/* Título de cierre con brillo que recorre la palabra */
.closing__title {
  background-image: linear-gradient(100deg,
    #FCFAF1 0%, #FCFAF1 40%, #F2DCA6 50%, #FCFAF1 60%, #FCFAF1 100%);
  background-size: 280% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wordmark-sheen 15s var(--ease) infinite;
}

/* --- Menos trabajo de pintura en teléfonos --- */
@media (max-width: 899.98px) {
  .hero__monogram { display: none; }
  .nav.is-scrolled {
    background: rgba(20, 21, 24, .96);
    backdrop-filter: none;
  }
  .hero::after,
  .closing__shell::before { display: none; }
  .closing__glow { opacity: .45; }
  .hero::before { animation-duration: 22s; }
}
@media (max-width: 619.98px) {
  /* El icono no cabe en la fila de servicio en pantallas angostas */
  .service__icon { display: none; }
}
@media (max-width: 640px) {
  .ribbon__track { animation-duration: 46s; }
  .closing__title { animation: none; background-position: 42% 0; }
  .service:hover::after { animation: none; opacity: 0; }
}

/* --------------------------------------------------------------------------
   Accesibilidad y movimiento reducido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .service:hover { padding-left: 0; }
  .arch:hover img { transform: none; }
  .btn:hover { transform: none; }
  .hero__monogram { stroke-dashoffset: 0; opacity: .18; }
  .js .wordmark__text { transform: none; }
  .wordmark__text,
  .closing__title {
    background-image: none;
    -webkit-text-fill-color: currentColor;
  }
  .closing__title { color: var(--cream-light); }
}
