/* ==========================================================================
   11B Soluciones Inmobiliarias — Design tokens
   Base monocroma (negro / blanco / cremas) + un único acento cobre-ámbar,
   tomado de la luz dorada y la madera de las fotos.
   ========================================================================== */
:root {
  /* Color: neutros */
  --black: #000000;
  --ink-950: #0d0d0d;
  --ink-900: #1c1c1e;
  --ink-700: #43434a;
  --slate-500: #63636a;
  --gray-300: #d9d8d3;
  --gray-200: #e7e5df;
  --cream-50: #faf9f6;
  --cream-100: #f2f0eb;
  --white: #ffffff;
  --border-soft: #e2dfd7;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Color: acento (sobre negro usar --accent; sobre claro, texto en --accent-ink) */
  --accent: #d9893f;
  --accent-hover: #e69a55;
  --accent-ink: #94530f;
  --accent-soft: #f8ead8;
  --accent-glow: rgba(217, 137, 63, 0.16);

  --whatsapp: #25d366;

  /* Typography */
  --font-display: "Playfair Display", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (8px rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 10, 10, 0.1);
  --shadow-lg: 0 24px 64px rgba(10, 10, 10, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 300ms;

  --container-w: 1200px;
  --header-h: 84px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--cream-50);
  overflow-x: hidden;
  min-height: 100dvh;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.site-header :focus-visible,
.hero :focus-visible,
.section-dark :focus-visible,
.zones-list :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent); }
.marquee :focus-visible { outline-color: var(--black); }
::selection { background: var(--accent); color: var(--black); }
svg { flex-shrink: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--black); text-wrap: balance; }
em { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--slate-500); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
  transform-origin: 0 50%;
  transition: transform 900ms var(--ease-out) 200ms;
}
.eyebrow-light { color: var(--accent); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
}
.section-title em { color: var(--accent-ink); }
.section-title-light { color: var(--white); }
.section-title-light em { color: var(--accent); }

.section-desc {
  max-width: 46ch;
  color: var(--slate-500);
  font-size: 1.05rem;
}

.section-head { max-width: 640px; margin-bottom: var(--space-6); }

p { color: var(--ink-700); text-wrap: pretty; }
p + p { margin-top: var(--space-2); }

.pull-quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--black);
  margin: var(--space-4) 0;
}
.pull-quote::before {
  content: "\201C";
  display: block;
  font-size: 4.5rem;
  line-height: 0.7;
  height: 2.2rem;
  color: var(--accent);
}

/* Titulares partidos en palabras (js/main.js): cada palabra sube desde una máscara */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.16em 0; margin: 0 -0.08em -0.16em 0; }
.wi { display: inline-block; }

/* ==========================================================================
   Layout sections
   ========================================================================== */
.section { padding-block: var(--space-8); }
.section-alt { background: var(--cream-100); }
.section-dark {
  background:
    radial-gradient(60% 55% at 90% 0%, var(--accent-glow), transparent 70%),
    linear-gradient(180deg, var(--black), var(--ink-950));
}
.section-dark p { color: rgba(255, 255, 255, 0.65); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.6rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
/* Destello que cruza el botón al pasar el cursor */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.28) 50%, transparent 62%);
  translate: -130% 0;
  transition: translate 800ms var(--ease-out);
}
.btn-primary:hover::after { translate: 130% 0; }

.btn-primary { background: var(--black); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink-900); box-shadow: var(--shadow-md); }

.header-actions .btn-primary { background: var(--white); color: var(--black); }
.header-actions .btn-primary:hover { background: var(--accent); }

/* Sobre el fondo negro del hero, el botón principal lleva el acento */
.hero .btn-primary { background: var(--accent); color: var(--black); box-shadow: 0 10px 30px rgba(217, 137, 63, 0.28); }
.hero .btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  margin-top: var(--space-2);
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.link-cta:hover { gap: 0.7rem; color: var(--accent-ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--black);
  transition: box-shadow var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  height: 72px;
}
/* Barra de progreso de lectura: la llena js/main.js con --progress */
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-chip img { width: 56px; height: 56px; display: block; }
.brand-chip-footer { justify-content: flex-start; }
.brand-chip-footer img { width: clamp(160px, 20vw, 220px); height: auto; aspect-ratio: 1; }
.brand-name {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
}

.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-fast) var(--ease-out);
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transition: right var(--dur-med) var(--ease-out);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; color: var(--white); padding: 4px; }

/* ==========================================================================
   Hero (split layout: copy left, photo right)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--black);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + var(--space-5)) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
/* Resplandor cálido detrás del titular (estático, no anima) */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 55% at 15% 42%, var(--accent-glow), transparent 72%);
  pointer-events: none;
}
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.hero-title {
  --d: 500ms;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  color: var(--white);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.hero-title em { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.74);
  max-width: 48ch;
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }

.scroll-cue {
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollcue 1.8s infinite ease-in-out;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================================
   Franja de zonas (cinta que corre sola)
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--black);
}
.marquee-track { display: flex; width: max-content; animation: marquee 56s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  color: var(--black);
  white-space: nowrap;
  padding-block: 0.95rem;
}
.marquee-sep { margin-inline: 1.7rem; color: rgba(0, 0, 0, 0.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.about-media { position: relative; isolation: isolate; }
/* Marco fino desplazado: da profundidad sin sombra dura */
.about-media::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: 0.7;
  transition: translate 1.2s var(--ease-out) 0.2s;
}
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  background: var(--cream-100);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo { object-position: 68% center; }
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-width: 130px;
}
.about-badge-num { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.about-badge-label { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; color: rgba(255, 255, 255, 0.7); }

.about-copy p { font-size: 1.02rem; }
.about-copy strong { color: var(--black); }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}
.service-card {
  --lift: 0px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: perspective(1100px) translateY(var(--lift)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.service-card:hover { --lift: -6px; box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card.is-tilting { transition: transform 120ms linear, box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out); }
.service-card:active { --lift: -2px; }
.service-card-body { padding: var(--space-4); display: flex; flex-direction: column; flex: 1; }

.service-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease-out); }
.service-card:hover .service-media img { scale: 1.06; }
.service-photo-top { object-position: center 15%; }

.service-card-featured { background: var(--black); border-color: var(--black); }
.service-card-featured h3, .service-card-featured .service-desc { color: var(--white); }
.service-card-featured .service-list li { color: rgba(255, 255, 255, 0.78); }
.service-card-featured .service-list svg { color: var(--accent); }
.service-card-featured .service-icon { background: var(--accent); color: var(--black); }

.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease-out);
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--cream-100);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.service-tag-featured { background: var(--accent); color: var(--black); }

.service-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.service-desc { color: var(--slate-500); font-size: 0.95rem; margin-bottom: var(--space-3); }

.service-list { display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.4;
}
.service-list svg { color: var(--accent-ink); margin-top: 2px; }

/* ==========================================================================
   Zones
   ========================================================================== */
.zones-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: start;
}
.feature-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.feature-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.feature-list svg { color: var(--accent-ink); margin-top: 3px; flex-shrink: 0; }
.feature-list strong { display: block; font-size: 1rem; color: var(--black); margin-bottom: 2px; }
.feature-list span { font-size: 0.9rem; color: var(--slate-500); }

.zones-list {
  background:
    radial-gradient(80% 60% at 100% 0%, var(--accent-glow), transparent 70%),
    var(--black);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: var(--white);
}
.zones-list-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: var(--space-3); color: var(--white); }
.zone-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-3); }
.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.zone-chip:hover { background: rgba(217, 137, 63, 0.18); border-color: var(--accent); transform: translateY(-2px); }
.zone-chip svg { color: var(--accent); }
.zones-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   Reasons (dark section)
   ========================================================================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.reason-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  transition: background var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.reason-card:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-4px); }
/* Línea de acento que se dibuja al entrar */
.reason-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-out) 0.35s;
}
/* Luz que sigue al cursor (solo con mouse) */
.reason-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(217, 137, 63, 0.2), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.reason-card:hover::after { opacity: 1; }
.reason-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(217, 137, 63, 0.14);
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.reason-card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 0.5rem; }
.reason-card p { font-size: 0.87rem; color: rgba(255, 255, 255, 0.6); }

/* ==========================================================================
   CTA / Contact
   ========================================================================== */
.cta-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: start;
}
.cta-copy p { font-size: 1.02rem; max-width: 42ch; }

.contact-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.contact-list li { display: flex; align-items: center; gap: var(--space-2); }
.contact-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.contact-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); }
.contact-list a { font-weight: 600; color: var(--black); transition: color var(--dur-fast) var(--ease-out); }
.contact-list a:hover { color: var(--accent-ink); }
.contact-list span:not(.contact-label) { font-weight: 500; color: var(--ink-900); }

.social-row { display: flex; gap: 0.7rem; margin-top: var(--space-4); }
.social-row a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--black);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: var(--black); transform: translateY(-2px); }

.cta-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}
.cta-form h3 { font-size: 1.25rem; margin-bottom: var(--space-4); }
.form-row { margin-bottom: var(--space-3); }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink-900); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  background: var(--cream-50);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  min-height: 48px;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--accent-ink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(217, 137, 63, 0.2);
  outline: none;
}
.form-hint { font-size: 0.78rem; color: var(--slate-500); text-align: center; margin-top: var(--space-2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.7); padding-top: var(--space-6); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand p { color: rgba(255, 255, 255, 0.65); margin-top: 0.6rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--accent) !important; }

.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.9); margin-bottom: var(--space-2); }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); transition: color var(--dur-fast) var(--ease-out); width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.social-row-footer { margin-top: 0.4rem; }
.social-row-footer a { border-color: var(--border-dark); color: rgba(255, 255, 255, 0.7); width: 36px; height: 36px; }

.footer-bottom { padding-block: var(--space-3); text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.4); }

/* ==========================================================================
   WhatsApp float button (brand green kept for recognizability)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--dur-fast) var(--ease-out);
  animation: wa-in 700ms var(--ease-out) 1.6s both;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-ring 2.8s ease-out 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes wa-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ==========================================================================
   Movimiento
   Regla: el contenido es visible por defecto. Los estados ocultos solo existen
   bajo `.js` (lo pone un script en <head>); sin JS, o si main.js falla,
   `.reveal-fallback` los deshace y todo se ve.
   ========================================================================== */

/* -- Aparición al hacer scroll. Usa `translate`, no `transform`, para no chocar
      con la inclinación de las tarjetas. `--d` es el retraso. -- */
.js .reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 800ms var(--ease-out) var(--d, 0ms), translate 900ms var(--ease-out) var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.js .reveal-fade { translate: 0 0; }

.services-grid .reveal:nth-child(2) { --d: 110ms; }
.services-grid .reveal:nth-child(3) { --d: 220ms; }
.reasons-grid .reveal:nth-child(2) { --d: 80ms; }
.reasons-grid .reveal:nth-child(3) { --d: 160ms; }
.reasons-grid .reveal:nth-child(4) { --d: 240ms; }
.reasons-grid .reveal:nth-child(5) { --d: 320ms; }

/* -- Hijos que entran en cascada (chips de zonas, lista de ventajas) -- */
.js .stagger > * {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 700ms var(--ease-out) calc(var(--i, 0) * 70ms), translate 800ms var(--ease-out) calc(var(--i, 0) * 70ms);
}
.js .stagger.is-visible > * { opacity: 1; translate: 0 0; }

/* -- Titulares: cada palabra sube desde su máscara -- */
.js .split .wi {
  translate: 0 118%;
  transition: translate 1000ms var(--ease-out) calc(var(--i, 0) * 60ms + var(--d, 0ms));
}
.js .split.is-visible .wi { translate: 0 0; }

/* -- Línea del eyebrow: se dibuja -- */
.js .eyebrow::before { transform: scaleX(0); }
.js .is-visible .eyebrow::before,
.js .eyebrow.is-visible::before { transform: scaleX(1); }

/* -- Cortinas: una imagen se descubre recortada. Finales con inset negativo
      para no cortar sombras. -- */
.js .reveal-wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1400ms var(--ease-out) var(--d, 0ms); }
.js .reveal-wipe.is-visible { clip-path: inset(0 0 0 0); }
.js .hero-media img { scale: 1.2; transition: scale 2200ms var(--ease-out) var(--d, 0ms); }
.js .hero-media.is-visible img { scale: 1; }

.js .about-media .media-frame { clip-path: inset(100% -80px -80px -80px); transition: clip-path 1300ms var(--ease-out) 150ms; }
.js .about-media.is-visible .media-frame { clip-path: inset(-80px); }
.js .about-media::before { translate: 24px -24px; opacity: 0; transition: translate 1200ms var(--ease-out) 600ms, opacity 900ms ease 600ms; }
.js .about-media.is-visible::before { translate: 0 0; opacity: 0.7; }
.js .about-badge { opacity: 0; scale: 0.7; transition: opacity 700ms var(--ease-out) 900ms, scale 800ms var(--ease-out) 900ms; }
.js .about-media.is-visible .about-badge { opacity: 1; scale: 1; }
.js .pull-quote::before { scale: 0.4; opacity: 0; transform-origin: 0 100%; transition: scale 900ms var(--ease-out) 300ms, opacity 700ms ease 300ms; }
.js .pull-quote.is-visible::before { scale: 1; opacity: 1; }

.js .service-media { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-out) calc(var(--d, 0ms) + 250ms); }
.js .service-card.is-visible .service-media { clip-path: inset(0 0 0 0); }

.js .reason-card::before { transform: scaleX(0); }
.js .reason-card.is-visible::before { transform: scaleX(1); }

/* -- Parallax: la foto se mueve dentro de su marco. Con soporte de scroll
      timelines lo hace el navegador; si no, main.js escribe el transform. -- */
.parallax > img { transform: translate3d(0, 0, 0) scale(1.14); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes parallax-y {
      from { transform: translate3d(0, -6%, 0) scale(1.14); }
      to   { transform: translate3d(0, 6%, 0) scale(1.14); }
    }
    .parallax > img {
      animation: parallax-y linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    /* El hero se despide: el texto sube y se apaga un poco al salir */
    @keyframes hero-exit { to { translate: 0 -64px; opacity: 0.15; } }
    @media (min-width: 901px) {
      .hero-copy {
        animation: hero-exit linear both;
        animation-timeline: view();
        animation-range: exit 0% exit 90%;
      }
    }
  }
}

/* -- Menú móvil: se abre en círculo desde el botón, los enlaces suben -- */
@keyframes nav-open {
  from { clip-path: circle(0 at calc(100% - 36px) 38px); }
  to   { clip-path: circle(150% at calc(100% - 36px) 38px); }
}
@keyframes nav-link {
  from { opacity: 0; translate: 0 26px; }
  to   { opacity: 1; translate: 0 0; }
}

/* -- Sin movimiento: todo visible, sin cintas ni desplazamientos -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .stagger > *, .js .split .wi, .js .about-badge, .js .pull-quote::before { opacity: 1; translate: 0 0; scale: 1; }
  .js .reveal-wipe, .js .service-media { clip-path: none; }
  .js .about-media .media-frame { clip-path: none; }
  .js .about-media::before { opacity: 0.7; translate: 0 0; }
  .js .hero-media img { scale: 1; }
  .js .eyebrow::before, .js .reason-card::before { transform: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; }
  .parallax > img { transform: scale(1.04); }
}

/* Si main.js no cargó, nada queda oculto */
.reveal-fallback .reveal, .reveal-fallback .stagger > *, .reveal-fallback .split .wi,
.reveal-fallback .about-badge, .reveal-fallback .pull-quote::before { opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; transition: none !important; }
.reveal-fallback .reveal-wipe, .reveal-fallback .service-media, .reveal-fallback .about-media .media-frame { clip-path: none !important; }
.reveal-fallback .hero-media img { scale: 1 !important; }
.reveal-fallback .eyebrow::before, .reveal-fallback .reason-card::before { transform: none !important; }
.reveal-fallback .about-media::before { opacity: 0.7 !important; translate: 0 0 !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .reasons-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .zones-grid, .cta-grid { gap: var(--space-5); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  /* Logo y botones por encima del panel del menú abierto, para poder cerrarlo */
  .brand, .header-actions { position: relative; z-index: 100; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 0;
    background:
      radial-gradient(70% 45% at 85% 100%, var(--accent-glow), transparent 70%),
      var(--black);
    padding: calc(var(--header-h) + var(--space-5)) var(--space-4) var(--space-4);
    gap: var(--space-2);
    z-index: 99;
    animation: nav-open 650ms var(--ease-out) both;
  }
  .main-nav.is-open a {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 500;
    color: var(--white);
    width: fit-content;
    animation: nav-link 700ms var(--ease-out) both;
  }
  .main-nav.is-open a:nth-child(1) { animation-delay: 180ms; }
  .main-nav.is-open a:nth-child(2) { animation-delay: 240ms; }
  .main-nav.is-open a:nth-child(3) { animation-delay: 300ms; }
  .main-nav.is-open a:nth-child(4) { animation-delay: 360ms; }
  .main-nav.is-open a:nth-child(5) { animation-delay: 420ms; }

  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 46vh; }
  .hero-copy { max-width: none; padding: var(--space-5) var(--space-3); }
  .js .reveal-wipe { clip-path: inset(0 0 100% 0); }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto; }
  .about-media::before { inset: -12px 12px 12px -12px; }

  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .services-grid .reveal:nth-child(n),
  .reasons-grid .reveal:nth-child(n) { --d: 0ms; }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }

  .zones-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Parallax más corto en pantallas chicas: menos trabajo por cuadro */
@media (max-width: 767px) {
  .parallax > img, .no-sdt .parallax > img { transform: translate3d(0, 0, 0) scale(1.1); }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      @keyframes parallax-y {
        from { transform: translate3d(0, -4%, 0) scale(1.1); }
        to   { transform: translate3d(0, 4%, 0) scale(1.1); }
      }
    }
  }
  .marquee-track { animation-duration: 38s; }
}

@media (max-width: 560px) {
  :root { --space-6: 3rem; --space-7: 4rem; --space-8: 5rem; }
  .container { padding-inline: var(--space-2); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .reasons-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-badge { position: static; margin-top: var(--space-2); display: inline-flex; align-items: center; gap: var(--space-2); text-align: left; }
  .about-badge-num { font-size: 1.8rem; }
  .whatsapp-float { width: 52px; height: 52px; bottom: var(--space-2); right: var(--space-2); }
  .brand-name { display: none; }
  .marquee-sep { margin-inline: 1.2rem; }
}
