/* ================================================================
   ABY BEAUTY SALON · Salou — hoja de estilos única
   Paleta "Caramel Noir" · Cormorant Garamond + Archivo
   Secciones: 1 tokens · 2 reset · 3 utilidades · 4 componentes
              5 header · 6 hero · 7 marquee · 8 servicios · 9 about
              10 galería · 11 proceso · 12 equipo · 13 opiniones
              14 contacto · 15 footer · 16 modales · 17 efectos
              18 responsive · 19 reduced-motion
   ================================================================ */

/* ========== 1. Tokens ========== */
:root {
  /* Paleta Caramel Noir (EDITAR aquí para cambiar los colores de toda la web) */
  --onyx:    #16110E;
  --cream:   #F6EFE7;
  --nude:    #E4CDBC;
  --caramel: #C08552;
  --gold:    #DDB892;
  --mocha:   #7A5230;

  --paper:   #FDFAF6;
  --ink-soft: rgba(22, 17, 14, 0.72);
  --ink-mute: rgba(22, 17, 14, 0.52);
  --cream-soft: rgba(246, 239, 231, 0.78);
  --cream-mute: rgba(246, 239, 231, 0.55);
  --line:    rgba(22, 17, 14, 0.12);
  --line-light: rgba(246, 239, 231, 0.16);
  --gold-metal: linear-gradient(115deg, var(--gold) 0%, #F0DCC0 45%, var(--gold) 75%, var(--caramel) 100%);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --header-h: 84px;
  --gutter: clamp(1.2rem, 4vw, 3.5rem);
  --radius: 20px;
}

/* ========== 2. Reset & base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 10px);
}
/* Suavizado SOLO para los saltos programados (enlaces del menú). El scroll
   con rueda, trackpad o dedo NO se ve afectado por esta propiedad: queda
   nativo, instantáneo y sin retraso. */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--onyx);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; }
::selection { background: var(--caramel); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========== 3. Utilidades ========== */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1.1rem;
  background: var(--onyx); color: var(--cream);
  z-index: 9999; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) var(--gutter); }
.section-dark { background: var(--onyx); color: var(--cream); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); text-align: center; }

.section-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 1.1rem;
}
.section-kicker::before, .section-kicker::after {
  content: ""; width: 26px; height: 1px; background: var(--caramel); opacity: 0.6;
}
.section-kicker-light { color: var(--gold); }
.section-kicker-light::before, .section-kicker-light::after { background: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  color: var(--onyx);
}
.section-title-light { color: var(--cream); }

.section-sub { margin-top: 1.1rem; color: var(--ink-mute); max-width: 56ch; margin-inline: auto; }

/* ========== 4. Componentes: botones ========== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn > * { position: relative; z-index: 1; }
/* Relleno animado caramelo → dorado */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, var(--caramel), var(--gold));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
  border-radius: inherit;
}
@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover { color: var(--onyx); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(122, 82, 48, 0.55); }
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-dark { background: var(--onyx); color: var(--cream); }
.btn-caramel { background: var(--caramel); color: var(--onyx); }
.btn-caramel::before { background: linear-gradient(100deg, var(--gold), #F0DCC0); }
.btn-light { background: var(--cream); color: var(--onyx); }
.btn-light::before { background: linear-gradient(100deg, #fff, var(--gold)); }
.btn-xl { padding: 1.1rem 2.3rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ========== 5. Header ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), backdrop-filter 0.4s var(--ease-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
  transition: height 0.4s var(--ease-soft);
}
/* Compactado + glassmorphism al hacer scroll (fallback sólido primero) */
.header.is-scrolled { background: rgba(246, 239, 231, 0.92); box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(22, 17, 14, 0.25); }
/* Glassmorphism del header. Blur moderado y SIN saturate(): el header es fijo
   y visible durante todo el scroll, así que su desenfoque se recalcula
   constantemente; cada efecto extra encarece todos los frames. */
@supports (backdrop-filter: blur(10px)) {
  .header.is-scrolled { background: rgba(246, 239, 231, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.header.is-scrolled .header-inner { height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--onyx); color: var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; font-weight: 600;
  border: 1px solid rgba(221, 184, 146, 0.5);
}
.logo-text { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.logo-text em { font-style: italic; font-weight: 500; color: var(--caramel); }

.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav-link {
  position: relative; font-weight: 600; font-size: 0.92rem; padding: 0.3rem 0;
  color: var(--ink-soft);
  transition: color 0.3s;
}
/* Subrayado animado */
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--caramel), var(--gold));
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover, .nav-link.is-current { color: var(--onyx); }
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); transform-origin: left center; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang { display: flex; align-items: center; gap: 0.15rem; font-size: 0.82rem; }
.lang-sep { color: var(--ink-mute); }
.lang-btn {
  padding: 0.25rem 0.4rem; border-radius: 6px;
  font-weight: 600; color: var(--ink-mute);
  transition: color 0.25s, background 0.25s;
}
.lang-btn:hover { color: var(--onyx); }
.lang-btn.is-active { color: var(--caramel); font-weight: 800; }

.nav-toggle { display: none; position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--onyx); transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ========== 6. Hero ========== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 4.5rem;
  overflow: clip;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 44% at 82% 30%, rgba(228, 205, 188, 0.85) 0%, rgba(228, 205, 188, 0) 70%),
    radial-gradient(40% 36% at 12% 82%, rgba(221, 184, 146, 0.5) 0%, rgba(221, 184, 146, 0) 72%),
    linear-gradient(168deg, var(--cream) 0%, var(--nude) 62%, #CDAF97 100%);
}

.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%; max-width: 1280px; margin: 0 auto;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: 1.4rem;
}
.eyebrow-line { width: 44px; height: 1px; background: var(--mocha); display: inline-block; }

.hero-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 12ch;
}
.hero-line { display: block; }
.hero-title em {
  font-family: var(--serif);
  font-style: italic; font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--caramel);
  font-size: 1.12em;
}
.hero-dot { color: var(--caramel); }

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Visual: arco + figura + chips */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.hero-arch {
  position: absolute;
  left: 0; right: 0; margin-inline: auto;
  width: min(430px, 88%);
  height: 108%;
  bottom: -6%;
  border-radius: 999px 999px 30px 30px;
  background: linear-gradient(180deg, #EFDCCB 0%, var(--nude) 40%, #B08D6E 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 40px 80px -40px rgba(122, 82, 48, 0.55);
}
.hero-ring {
  position: absolute;
  left: 0; right: 0; margin-inline: auto;
  width: min(470px, 96%);
  height: 112%;
  bottom: -8%;
  border-radius: 999px 999px 34px 34px;
  border: 1px solid rgba(122, 82, 48, 0.4);
}
.hero-figure {
  position: relative; z-index: 1;
  width: min(370px, 76%);
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  box-shadow: 0 34px 70px -30px rgba(22, 17, 14, 0.5);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(221, 184, 146, 0.18) 0%, transparent 38%);
  pointer-events: none;
}

.hero-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--onyx);
  background: rgba(253, 250, 246, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 30px -18px rgba(22, 17, 14, 0.45);
}
@supports (backdrop-filter: blur(10px)) {
  .hero-chip { background: rgba(253, 250, 246, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.hero-chip-1 { top: 16%; left: 0; }
.hero-chip-1 > span:first-child { color: var(--caramel); }
.hero-chip-2 { bottom: 10%; right: 0; }
.hero-chip-2 strong { color: var(--mocha); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(122, 82, 48, 0.4); color: var(--mocha);
  animation: scrollNudge 2.8s var(--ease-soft) infinite;
  transition: background 0.3s, color 0.3s;
}
@keyframes scrollNudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
@media (hover: hover) { .hero-scroll:hover { background: var(--mocha); color: var(--cream); } }

/* ========== 7. Marquee ========== */
.marquee {
  background: var(--onyx);
  padding: 1.05rem 0;
  overflow: clip;
  border-block: 1px solid rgba(221, 184, 146, 0.35);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-seq {
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; letter-spacing: 0.06em;
  color: var(--gold); white-space: nowrap; padding-right: 0.5rem;
}
.marquee-seq i { font-style: normal; color: var(--caramel); padding: 0 0.65rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== 8. Servicios ========== */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
  max-width: 1280px; margin: 0 auto;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  transform-style: preserve-3d;
  /* Aísla el repintado de cada tarjeta: el hover de una no obliga a
     recalcular el resto de la cuadrícula. */
  contain: layout paint;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
/* Sin filter: el realce era imperceptible y encarecía el zoom del hover
   (la imagen se recomponía con el filtro aplicado en cada frame). */
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 17, 14, 0.36) 100%);
  opacity: 0; transition: opacity 0.5s;
}
.card-body { padding: 1.15rem 1.25rem 3.1rem; }
.card-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.card-desc { margin-top: 0.4rem; font-size: 0.92rem; color: var(--ink-mute); }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.85rem; font-size: 0.85rem;
}
.card-time { color: var(--ink-mute); }
.card-time::before { content: "◷ "; color: var(--caramel); }
.card-price { font-weight: 800; color: var(--mocha); }

.card-cta {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1rem;
  font-weight: 700; font-size: 0.9rem; color: var(--caramel);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.3s;
}
.card-cta:hover { color: var(--mocha); }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-8px);
    border-color: rgba(221, 184, 146, 0.9);
    box-shadow:
      0 24px 50px -24px rgba(122, 82, 48, 0.45),
      0 0 0 1px rgba(221, 184, 146, 0.55),
      0 0 34px -6px rgba(221, 184, 146, 0.5);
  }
  .card:hover .card-media img { transform: scale(1.07); }
  .card:hover .card-media::after { opacity: 1; }
  .card:hover .card-cta { opacity: 1; transform: translateY(0); }
}
/* En táctil el botón de reserva siempre visible */
@media (hover: none) {
  .card-cta { opacity: 1; transform: none; }
}

/* ========== 9. Sobre nosotras (oscuro) ========== */
.about {
  position: relative;
  background: var(--onyx); color: var(--cream);
  padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
  overflow: clip;
}
/* Halo cálido. Nota de rendimiento: un radial-gradient YA es suave, así que
   NO se le aplica filter: blur() — ese desenfoque obligaba al navegador a
   re-rasterizar un área enorme en cada frame del scroll y provocaba tirones. */
.about::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 90%;
  background: radial-gradient(46% 42% at 74% 48%, rgba(122, 82, 48, 0.42) 0%, rgba(122, 82, 48, 0.16) 45%, transparent 78%);
  pointer-events: none;
}
.about-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  max-width: 1280px; margin: 0 auto;
}
.about-num {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--caramel); line-height: 1;
}
.about .section-title { margin-top: 0.4rem; text-align: left; }
.about-lead {
  margin-top: 1.6rem;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4;
  color: var(--gold);
  max-width: 40ch;
}
.about-text { margin-top: 1.2rem; color: var(--cream-mute); max-width: 54ch; }

.counters { display: flex; gap: clamp(1.6rem, 4vw, 3rem); margin-top: 2.6rem; flex-wrap: wrap; }
.counter dt {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1;
  background: var(--gold-metal);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.counter dd { margin-top: 0.35rem; font-size: 0.86rem; color: var(--cream-mute); letter-spacing: 0.04em; }

/* Óvalos de fotos del local */
.about-visual { position: relative; min-height: 520px; }
.oval {
  position: absolute;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(221, 184, 146, 0.4);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  will-change: transform;
}
/* Sin filter: estas 3 fotos se mueven con parallax y el filtro se recalculaba
   en cada frame. El tono cálido se consigue con un velo de color (barato). */
.oval img { width: 100%; height: 100%; object-fit: cover; }
.oval::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(122, 82, 48, 0.14);
  pointer-events: none;
}
.oval-1 { width: 52%; aspect-ratio: 3 / 4.1; top: 0; left: 4%; z-index: 2; }
.oval-2 { width: 44%; aspect-ratio: 3 / 4.1; top: 16%; right: 0; z-index: 1; }
.oval-3 { width: 38%; aspect-ratio: 3 / 4.1; bottom: 0; left: 24%; z-index: 3; }
.about-star {
  position: absolute; top: 6%; right: 30%;
  font-size: 2rem; color: var(--caramel);
  animation: starSpin 14s linear infinite;
}
@keyframes starSpin { to { transform: rotate(360deg); } }

/* ========== 10. Galería ========== */
.gallery { background: var(--paper); }
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.filter-btn {
  padding: 0.5rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem; font-weight: 600; color: var(--ink-mute);
  transition: all 0.35s var(--ease-out);
}
.filter-btn:hover { border-color: var(--caramel); color: var(--mocha); }
.filter-btn.is-active { background: var(--onyx); border-color: var(--onyx); color: var(--gold); }

.gallery-grid { columns: 3; column-gap: 1.1rem; max-width: 1180px; margin: 0 auto; }
.g-item {
  display: block; break-inside: avoid; margin-bottom: 1.1rem;
  border-radius: 16px; overflow: hidden; position: relative;
}
.g-item.is-hidden { display: none; }
.g-item figure { position: relative; }
.g-item img {
  width: 100%;
  transition: transform 0.9s var(--ease-out);
}
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(22, 17, 14, 0.72));
  color: var(--cream);
  font-family: var(--serif); font-style: italic; font-size: 1.02rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  .g-item:hover img { transform: scale(1.06); }
  .g-item:hover figcaption { opacity: 1; transform: translateY(0); }
}
@media (hover: none) { .g-item figcaption { opacity: 1; transform: none; } }

/* ========== 11. Proceso ========== */
.process {
  position: relative;
  overflow: clip;
  padding: clamp(6rem, 12vw, 10rem) var(--gutter) clamp(4.5rem, 9vw, 8rem);
}
/* Mismo criterio que .about::before: gradiente suave sin blur (ver nota arriba). */
.process::after {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(50% 50% at 30% 50%, rgba(192, 133, 82, 0.3) 0%, rgba(192, 133, 82, 0.12) 48%, transparent 80%);
  pointer-events: none;
}
.steps {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
  max-width: 1180px; margin: 0 auto;
  counter-reset: step;
}
.step { text-align: left; position: relative; padding-top: 0.6rem; }
.step-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  color: var(--gold);
  border: 1px solid rgba(221, 184, 146, 0.45);
  background: rgba(221, 184, 146, 0.07);
  margin-bottom: 1.1rem;
  transition: transform 0.4s var(--ease-out), background 0.4s;
}
.step-icon svg { width: 30px; height: 30px; }
@media (hover: hover) { .step:hover .step-icon { transform: translateY(-4px) scale(1.05); background: rgba(221, 184, 146, 0.14); } }
.step-num {
  position: absolute; top: 0; right: 0;
  font-family: var(--serif); font-style: italic;
  font-size: 2.6rem; line-height: 1; color: rgba(221, 184, 146, 0.22);
}
.step-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--cream); }
.step-text { margin-top: 0.45rem; font-size: 0.9rem; color: var(--cream-mute); max-width: 30ch; }

.steps-line {
  position: relative; max-width: 1180px; margin: 2.6rem auto 0;
  height: 2px; background: var(--line-light); border-radius: 2px; overflow: hidden;
}
.steps-line-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--caramel), var(--gold));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.2s linear;
}

/* ========== 12. Equipo ========== */
.team { background: var(--cream); }
.team-grid {
  display: flex; justify-content: center; gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.member { text-align: center; max-width: 320px; }
/* Con una sola integrante la tarjeta se agranda un poco para no quedar
   perdida en el centro; si algún día hay 2 o más, vuelve al tamaño normal. */
.member:only-child .member-photo { width: clamp(230px, 28vw, 300px); }
.member-photo {
  position: relative;
  width: clamp(200px, 24vw, 260px); aspect-ratio: 3 / 4;
  margin: 0 auto 1.2rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(122, 82, 48, 0.3);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.member-photo::after {
  content: ""; position: absolute; inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(246, 239, 231, 0.55);
  pointer-events: none;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }

@media (hover: hover) {
  .member:hover .member-photo { transform: rotate(-2deg) translateY(-6px); box-shadow: 0 26px 50px -26px rgba(122, 82, 48, 0.6); }
  .member:hover .member-photo img { transform: scale(1.06); }
}
.member-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.member-role { margin-top: 0.2rem; font-size: 0.88rem; color: var(--ink-mute); }

/* ========== 13. Opiniones ========== */
.reviews { background: var(--paper); text-align: center; }
.reviews-carousel { position: relative; max-width: 760px; margin: 0 auto; min-height: 230px; }
.review {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.review.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.review-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.45;
  color: var(--onyx);
}
.review-quote::before {
  content: "“";
  display: block;
  font-size: 3.4rem; line-height: 0.6;
  color: var(--caramel);
  margin-bottom: 0.9rem;
}
.review-author { margin-top: 1.3rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-mute); letter-spacing: 0.04em; }

.reviews-nav { display: flex; justify-content: center; gap: 0.55rem; margin-top: 1.8rem; }
.review-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); border: 0;
  transition: background 0.3s, transform 0.3s;
}
.review-dot:hover { background: var(--gold); }
.review-dot.is-active { background: var(--caramel); transform: scale(1.35); }

/* ========== 14. Contacto ========== */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--mocha) 0%, var(--caramel) 55%, #D49A66 100%);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  text-align: center;
  overflow: clip;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 80% 10%, rgba(246, 239, 231, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band-inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: #FFF9F2;
}
.cta-sub { margin-top: 1rem; font-size: 1.05rem; color: rgba(255, 249, 242, 0.88); }
.cta-band .btn { margin-top: 2rem; }
.cta-phone { margin-top: 1.1rem; font-size: 0.92rem; color: rgba(255, 249, 242, 0.82); }
.cta-phone a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.contact-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.8rem, 4vw, 3.2rem);
  max-width: 1180px; margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 1.4rem; }
.form-row { margin-bottom: 1.05rem; }
.form-row label {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mocha);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit; color: var(--onyx);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.18);
}
.form-row .is-invalid { border-color: #B3402A; box-shadow: 0 0 0 3px rgba(179, 64, 42, 0.14); }
.form-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--ink-mute); text-align: center; }
.form-legal { margin-top: 0.5rem; font-size: 0.74rem; line-height: 1.5; color: var(--ink-mute); text-align: center; }
.form-legal a { color: var(--mocha); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.form-status { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--mocha); text-align: center; min-height: 1.4em; }
.form-status.is-error { color: #B3402A; }
.form-status.is-ok { color: #4A6B3A; }

.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.8rem; }
.info-list li { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.95rem; }
.info-label {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--caramel);
}
.info-list a { font-weight: 600; transition: color 0.3s; }
.info-list a:hover { color: var(--caramel); }

.map {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 300px;
}
.map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }

/* Vista previa del mapa antes de cargar Google (ver nota en index.html) */
.map--pending {
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(228, 205, 188, 0.55) 0%, transparent 70%),
    linear-gradient(160deg, var(--cream) 0%, var(--nude) 100%);
}
.map-load {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem;
  width: 100%; height: 100%; min-height: 300px;
  padding: 1.5rem; text-align: center;
  color: var(--mocha);
  transition: background 0.4s var(--ease-out);
}
.map-pin {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(253, 250, 246, 0.75);
  border: 1px solid rgba(192, 133, 82, 0.45);
  color: var(--caramel);
  margin-bottom: 0.4rem;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.map-load-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--onyx); }
.map-load-cta {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--caramel);
}
.map-load-note { font-size: 0.76rem; color: var(--ink-mute); }
@media (hover: hover) {
  .map-load:hover .map-pin { transform: translateY(-3px) scale(1.06); background: var(--caramel); color: var(--cream); }
}

/* ========== 15. Footer ========== */
.footer { background: var(--onyx); color: var(--cream); padding: 3.2rem var(--gutter) 1.6rem; }
.footer .logo-mark { background: transparent; border-color: rgba(221, 184, 146, 0.5); }
.footer .logo-text { color: var(--cream); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem;
  max-width: 1280px; margin: 0 auto;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-tag { margin-top: 0.8rem; font-family: var(--serif); font-style: italic; color: var(--cream-mute); }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.92rem; }
.footer-nav a { color: var(--cream-mute); transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-light); color: var(--cream-mute);
  transition: all 0.35s var(--ease-out);
}
.footer-social a:hover { color: var(--onyx); background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  max-width: 1280px; margin: 1.4rem auto 0;
  font-size: 0.8rem; color: var(--cream-mute);
}
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.footer-legal a:hover { color: var(--gold); }

/* ========== 16. Modales ========== */
.modal { border: 0; padding: 0; background: transparent; max-width: min(920px, 92vw); }
.modal::backdrop { background: rgba(22, 17, 14, 0.82); }
@supports (backdrop-filter: blur(6px)) { .modal::backdrop { backdrop-filter: blur(6px); } }
.modal-close {
  position: absolute; top: -2.8rem; right: 0;
  color: var(--cream); font-size: 1.3rem;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-light);
  transition: background 0.3s, color 0.3s;
  z-index: 2;
}
.modal-close:hover { background: var(--cream); color: var(--onyx); }

.modal-lightbox { display: flex; align-items: center; gap: 0.8rem; }
.modal-lightbox:not([open]) { display: none; }
.lb-figure { position: relative; margin: 0 auto; }
.lb-figure img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 14px; margin: 0 auto; }
.lb-figure figcaption {
  margin-top: 0.7rem; text-align: center;
  color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 1.05rem;
}
.lb-nav {
  flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-light); color: var(--cream);
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s;
}
.lb-nav:hover { background: var(--cream); color: var(--onyx); }

/* ========== 17. Efectos globales ========== */

/* Grano de textura */
.grain {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  /* Capa propia: así el ruido no se vuelve a pintar en cada scroll */
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor personalizado (oculto hasta el primer mousemove; solo puntero fino) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
  .cursor.is-ready { opacity: 1; }
  /* Nota de rendimiento: NO se usa mix-blend-mode aquí. El modo "difference"
     obliga al navegador a recomponer toda la página en cada movimiento del
     ratón y durante el scroll. Con color caramelo el cursor se lee bien
     tanto sobre las secciones claras como sobre las oscuras. */
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--caramel); }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1.5px solid rgba(192, 133, 82, 0.85);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out), opacity 0.3s, border-color 0.3s;
  }
  .cursor.is-grow .cursor-ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-color: rgba(221, 184, 146, 0.95); }
}

/* Preloader */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--onyx);
  transition: opacity 0.7s var(--ease-soft), visibility 0.7s;
  /* Red de seguridad: se oculta solo a los 4,5 s aunque el JS falle */
  animation: splashSafety 0.01s 4.5s forwards;
}
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { display: grid; place-items: center; gap: 0.9rem; text-align: center; }
.splash-mark {
  font-family: var(--serif); font-style: italic;
  font-size: 4rem; line-height: 1;
  background: var(--gold-metal);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  animation: splashMark 1.1s var(--ease-out) both;
}
@keyframes splashMark { from { opacity: 0; transform: translateY(16px) scale(0.92); } }
.splash-name {
  font-family: var(--serif); letter-spacing: 0.28em; text-transform: uppercase;
  font-size: 0.85rem; color: var(--cream-mute);
  animation: splashMark 1.1s 0.25s var(--ease-out) both;
}
.splash-line {
  width: 120px; height: 1px; background: var(--line-light);
  position: relative; overflow: hidden;
}
.splash-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--caramel), var(--gold));
  transform: scaleX(0); transform-origin: left;
  animation: splashLine 1.6s 0.4s var(--ease-out) forwards;
}
@keyframes splashLine { to { transform: scaleX(1); } }

/* Reveals — solo se ocultan si hay JS (html.js); sin JS todo es visible */
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }

/* Split text — defensa: el contenedor jamás se queda invisible */
.reveal[data-split], html.js .reveal[data-split] { opacity: 1; transform: none; }
.split-char, .split-word { display: inline-block; }
html.js [data-split].split-ready .split-char,
html.js [data-split].split-ready .split-word { opacity: 0; transform: translateY(0.65em); }
html.js [data-split].split-ready.is-visible .split-char,
html.js [data-split].split-ready.is-visible .split-word {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--ci, 0) * 26ms);
}

/* ========== 18. Responsive (mobile-first overrides hacia abajo) ========== */
@media (max-width: 1279px) {
  .hero-title { font-size: clamp(2.7rem, 6.4vw, 4.6rem); }
}

@media (max-width: 959px) {
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
    background: var(--cream);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; z-index: 98; }
  .nav-link { font-size: 1.5rem; font-family: var(--serif); }
  .nav-toggle { display: block; }
  .header .btn-caramel { display: none; }
  /* El overlay del menú (nav, z-index 98) es hermano del logo y las acciones
     dentro del header: hay que elevar logo y botón por encima para que sigan
     visibles y el hamburguesa/X pueda cerrar el menú. */
  .logo, .header-actions { position: relative; z-index: 99; }

  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-title { max-width: none; }
  .hero-visual { min-height: 0; margin-top: 0.5rem; }
  .hero-figure { width: min(320px, 78%); }
  .hero-arch { width: min(380px, 90%); }
  .hero-ring { display: none; }
  .hero-chip-1 { top: 6%; left: 2%; }
  .hero-chip-2 { bottom: 4%; right: 2%; }
  .hero-scroll { display: none; }

  .about-inner { grid-template-columns: 1fr; }
  .about-visual { min-height: 0; height: 420px; max-width: 480px; margin: 0 auto; width: 100%; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  :root { --header-h: 70px; }
  .logo-text { font-size: 1.12rem; }
  .lang { font-size: 0.78rem; }

  .hero { padding-bottom: 3rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { justify-content: center; gap: 1.1rem; }

  .marquee-seq { font-size: 1rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .card-body { padding: 0.9rem 0.95rem 2.9rem; }
  .card-title { font-size: 1.2rem; }
  .card-desc { display: none; }
  .card-cta { left: 0.95rem; right: 0.95rem; }

  .info-list { grid-template-columns: 1fr; }
  .steps { gap: 1.6rem 1rem; }
  .step-text { max-width: none; }
}

@media (max-width: 539px) {
  .services-grid { grid-template-columns: 1fr; }
  .card-desc { display: block; }
  .card-body { padding: 1.1rem 1.15rem 3rem; }
  .card-title { font-size: 1.4rem; }
  .gallery-grid { columns: 2; column-gap: 0.7rem; }
  .g-item { margin-bottom: 0.7rem; }
  .g-item figcaption { font-size: 0.85rem; padding: 1.4rem 0.7rem 0.55rem; }
  .steps { grid-template-columns: 1fr; }
  .about-visual { height: 340px; }
  .counters { gap: 1.4rem; }
  .btn-xl { padding: 1rem 1.6rem; font-size: 0.98rem; }
  .modal-lightbox { flex-direction: column; }
  .lb-nav { position: fixed; bottom: 1rem; z-index: 3; }
  .lb-prev { left: 18%; }
  .lb-next { right: 18%; }
}

/* ========== 19. Reduced motion ==========
   Se desactivan los efectos de movimiento intensos (parallax, tilt,
   cursor, stagger de letras, pulsos), se conservan fades suaves,
   hovers y transiciones de color. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { display: none !important; }
  .hero-scroll { animation: none; }
  .about-star { animation: none; }
  .marquee-track { animation-duration: 90s; }
  html.js .reveal { transform: none; }
  html.js .reveal.is-visible { transition-duration: 0.4s; }
  html.js [data-split].split-ready .split-char,
  html.js [data-split].split-ready .split-word { transform: none; transition-delay: 0ms; }
}
