/* ============================================================
   GIA CONDOS — Sistema de diseño
   Arquetipo: Apple/Stripe minimalista + acentos SaaS premium
   Paleta base: azul marino + azul medio del logo, acento menta
   ============================================================ */

/* Las fuentes se cargan con <link> en cada HTML, no con @import (evita un round-trip extra antes del render) */

/* ---------- REGLA #1: CERO OVERFLOW-X ---------- */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

img, video, iframe, svg, picture {
  max-width: 100%;
  height: auto;
}

.full-bleed { width: 100%; }

/* ---------- TOKENS ---------- */
:root {
  --navy-deep: #0F2447;
  --navy: #1B3A6B;
  --navy-soft: #2A4E86;
  --blue: #2E6BB8;
  --blue-light: #4E8FD9;
  --blue-pale: #DCE8F7;
  --mint: #6FBF9A;
  --mint-pale: #E3F3EB;

  --ink: #14213D;
  --ink-soft: #46567A;
  --ink-mute: #77869F;

  --bg: #F4F7FC;          /* nunca blanco puro */
  --bg-alt: #EDF2FA;
  --surface: #FFFFFF;
  --line: rgba(27, 58, 107, .12);

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 26px;

  --shadow-s: 0 2px 10px rgba(15, 36, 71, .06);
  --shadow: 0 10px 30px rgba(15, 36, 71, .09);
  --shadow-l: 0 22px 60px rgba(15, 36, 71, .14);

  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gut: clamp(18px, 4vw, 40px);

  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
  --sal: env(safe-area-inset-left);
  --sar: env(safe-area-inset-right);
}

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--sat);      /* safe-area obligatorio */
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--navy-deep);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; color: var(--ink-soft); }
li { margin-bottom: .45em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; }

.section {
  padding-block: clamp(64px, 9vw, 130px);   /* espaciado generoso */
}

.section--tight { padding-block: clamp(46px, 6vw, 84px); }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 20px;
}

.lead {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- FONDO CON TEXTURA (blobs + dot grid) ---------- */
.texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;          /* contención */
  background-image: radial-gradient(circle, rgba(27, 58, 107, .085) 1px, transparent 1px);
  background-size: 26px 26px;
}

.texture::before,
.texture::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}

.texture::before {
  width: min(52vw, 620px);
  aspect-ratio: 1;
  top: -14%;
  right: -8%;
  background: radial-gradient(circle, rgba(78, 143, 217, .5), transparent 68%);
}

.texture::after {
  width: min(46vw, 540px);
  aspect-ratio: 1;
  bottom: -12%;
  left: -10%;
  background: radial-gradient(circle, rgba(111, 191, 154, .42), transparent 68%);
}

.hline {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}

/* ---------- NAVEGACIÓN HYBRID ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(244, 247, 252, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  padding-top: max(0px, var(--sat));
  padding-left: max(0px, var(--sal));
  padding-right: max(0px, var(--sar));
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.nav.is-stuck {
  box-shadow: 0 6px 26px rgba(15, 36, 71, .08);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gut);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  mix-blend-mode: multiply;    /* elimina el fondo blanco del logo */
  flex: 0 0 auto;
}

.brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--navy-deep);
  letter-spacing: .01em;
}

.brand__tag {
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__menu a {
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}

.nav__menu a:hover { color: var(--navy); background: rgba(46, 107, 184, .09); }
.nav__menu a.is-active { color: var(--navy-deep); background: rgba(46, 107, 184, .13); }

.nav__social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.soc {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 3px 10px rgba(15, 36, 71, .16);
  transition: transform .22s ease, box-shadow .22s ease;
}

.soc:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 7px 18px rgba(15, 36, 71, .24); }
.soc svg { width: 17px; height: 17px; fill: currentColor; }
.soc__label { display: none; }

.soc--fb { background: #1877F2; }
.soc--ig { background: linear-gradient(45deg, #F09433, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888); }
.soc--wa { background: #25D366; }
.soc--li { background: #0A66C2; }

.lang {
  display: flex;
  gap: 2px;
  background: rgba(27, 58, 107, .07);
  border-radius: 999px;
  padding: 3px;
  margin-left: 10px;
  flex: 0 0 auto;
}

.lang button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-mute);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.lang button.is-on { background: var(--surface); color: var(--navy-deep); box-shadow: var(--shadow-s); }

/* Banderas en SVG, no emoji: Windows no renderiza los emoji de bandera */
.flag {
  width: 19px;
  height: 13px;
  border-radius: 2px;
  flex: 0 0 auto;
  display: block;
  box-shadow: 0 0 0 1px rgba(15, 36, 71, .14);
  opacity: .58;
  transition: opacity .2s ease;
}

.lang button.is-on .flag { opacity: 1; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex: 0 0 auto;
}

.burger span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  position: relative;
  transition: transform .3s ease, background .2s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}

.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .005em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  max-width: 100%;
}

.btn svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

.btn--primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(27, 58, 107, .3), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(27, 58, 107, .38), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn--wa {
  background: linear-gradient(135deg, #25D366 0%, #12A150 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(18, 161, 80, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn--wa:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18, 161, 80, .4); }

.btn--ghost {
  background: var(--surface);
  color: var(--navy-deep);
  border-color: var(--line);
  box-shadow: var(--shadow-s);
}

.btn--ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(46, 107, 184, .35); }

.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.center .btn-row { justify-content: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(52px, 7vw, 96px);
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blue-pale);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-s);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 26px;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(111, 191, 154, .25);
  flex: 0 0 auto;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(111, 191, 154, .25); }
  50%      { box-shadow: 0 0 0 8px rgba(111, 191, 154, .05); }
}

.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--blue) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead { margin-inline: auto; margin-bottom: 32px; }

/* ---------- HERO CON VIDEO A PANTALLA COMPLETA ----------
   El video ocupa todo el hero SIN capa oscura encima (regla de medios).
   El texto vive dentro de un panel glass — opción A de la skill. */
.hero--video {
  position: relative;
  width: 100%;
  min-height: min(88vh, 820px);
  display: grid;
  place-items: center;
  padding-block: clamp(40px, 7vw, 90px);
  padding-top: max(clamp(40px, 7vw, 90px), calc(var(--sat) + 40px));
  overflow: hidden;                 /* contención — el video nunca desborda */
  background: var(--navy-deep);
  isolation: isolate;
}

.hero--video .wrap { position: relative; z-index: 2; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texto suelto sobre el video: sin caja de fondo. La legibilidad viene de la
   sombra del propio texto, no de una capa sobre el video (regla de medios). */
.hero__panel {
  max-width: 860px;
  margin-inline: auto;
}

.hero__panel h1 {
  max-width: 18ch;
  color: #fff;
  text-shadow: 0 1px 2px rgba(6, 20, 42, .5), 0 3px 18px rgba(6, 20, 42, .55), 0 8px 44px rgba(6, 20, 42, .4);
}

.hero__panel h1 .grad {
  background: linear-gradient(120deg, #BFE8FF 0%, #A9EBC9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__panel .lead {
  margin-bottom: 30px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(6, 20, 42, .55), 0 2px 14px rgba(6, 20, 42, .6);
}

/* El badge conserva su pastilla: es una pill pequeña, no una caja tras el texto */
.hero--video .hero__badge {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 8px 22px rgba(6, 20, 42, .24);
  color: var(--navy-deep);
}

/* Datos de servicio bajo el panel, en pills glass */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 30px);
  position: relative;
  z-index: 2;
}

.hero__fact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy-deep);
  box-shadow: 0 8px 22px rgba(6, 20, 42, .22);
  max-width: 100%;
}

.hero__fact svg { width: 16px; height: 16px; fill: var(--blue); flex: 0 0 auto; }

/* Degradado suave solo en el borde inferior, para coser el video con la sección
   siguiente. Nunca sobre el video completo. */
.hero--video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(244, 247, 252, 0), var(--bg));
}

/* ---------- TARJETAS CON DEGRADADO ROTATIVO ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px 26px 28px;
  overflow: hidden;                 /* contención */
  box-shadow: var(--shadow-s);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}

.card::before {                      /* franja de degradado + inner glow */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--g, linear-gradient(90deg, var(--navy), var(--blue)));
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-l), 0 18px 44px var(--glow, rgba(46, 107, 184, .26));
}

.card__ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--g, linear-gradient(135deg, var(--navy), var(--blue)));
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px var(--glow, rgba(46, 107, 184, .32)), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.card__ico svg { width: 25px; height: 25px; fill: currentColor; }

.card h3 { margin-bottom: .35em; }
.card p { font-size: .95rem; margin-bottom: 0; }

.card .btn {
  margin-top: 20px;
  background: var(--g, linear-gradient(135deg, var(--navy), var(--blue)));
  color: #fff;
  box-shadow: 0 6px 18px var(--glow, rgba(46, 107, 184, .3));
}

.card .btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px var(--glow, rgba(46, 107, 184, .4)); }

/* Rotación de degradados: azul→cian, rojo→naranja, verde→teal, morado→rosa */
.g1 { --g: linear-gradient(135deg, #1B3A6B, #22B8CF); --glow: rgba(34, 184, 207, .3); }
.g2 { --g: linear-gradient(135deg, #D64545, #F08C3A); --glow: rgba(214, 69, 69, .28); }
.g3 { --g: linear-gradient(135deg, #2FA36B, #14A0A0); --glow: rgba(20, 160, 160, .3); }
.g4 { --g: linear-gradient(135deg, #6C4BC1, #D857A0); --glow: rgba(108, 75, 193, .3); }

/* ---------- ESTADÍSTICAS (contadores animados) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: clamp(14px, 2.4vw, 26px);
}

.stat {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-l);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-s);
  transition: transform .3s ease, box-shadow .3s ease;
}

.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__lbl {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: .04em;
  margin-top: 8px;
  display: block;
  line-height: 1.4;
}

/* ---------- SLIDER DE FOTOS ---------- */
.photo-slider {
  overflow: hidden;                 /* contención — nunca quitar */
  width: 100%;
  position: relative;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  background: var(--navy-deep);
}

.photo-slider-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.photo-slider-track figure {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  position: relative;
}

.photo-slider-track img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.photo-slider figcaption {                 /* pill sólida, no overlay sobre toda la foto */
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy-deep);
  font-size: .84rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 36, 71, .2);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(27, 58, 107, .2);
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, background .3s ease;
}

.slider-dots button.is-on { width: 26px; background: var(--blue); }

/* ---------- ANTES / DESPUÉS ---------- */
.ba {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}

.ba figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;                 /* contención */
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: transform .3s ease, box-shadow .3s ease;
}

.ba figure:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.ba img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.ba figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: center;
}

.ba .is-before figcaption { color: #B4562F; background: #FCEFE7; }
.ba .is-after  figcaption { color: #157A52; background: var(--mint-pale); }

/* ---------- MARQUEE DE CLIENTES ---------- */
.logo-marquee {
  overflow: hidden;                 /* contención — nunca quitar */
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  width: max-content;
  animation: marquee 30s linear infinite;
}

.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }

.logo-marquee-track .chip {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  white-space: nowrap;
  opacity: .74;
  transition: opacity .25s ease;
}

.logo-marquee-track .chip:hover { opacity: 1; }

.logo-marquee-track .chip img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
}

.logo-marquee-track .chip .mk {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  flex: 0 0 auto;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- SLIDER DE RESEÑAS ---------- */
.review-slider {
  overflow: hidden;                 /* contención — nunca quitar */
  width: 100%;
}

.review-slider-track {
  display: flex;
  gap: clamp(16px, 2.4vw, 24px);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.review-card {
  flex: 0 0 min(340px, 84vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px 24px;
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
}

.review-card .stars { color: #F5A623; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-size: .95rem; font-style: italic; color: var(--ink); flex: 1; }
.review-card strong { font-family: var(--font-display); font-size: .93rem; color: var(--navy-deep); }
.review-card em { display: block; font-size: .78rem; color: var(--ink-mute); font-style: normal; }

/* ---------- LISTAS DE SERVICIO ---------- */
.svc-list { list-style: none; padding: 0; margin: 0; }

.svc-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--g, linear-gradient(135deg, var(--navy), var(--blue)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

.svc-list li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: .78em;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.svc-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  position: relative;
}

.svc-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--g, linear-gradient(90deg, var(--navy), var(--blue)));
}

.svc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.svc-head h3 { margin: 0; }

.pill {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue-pale);
  border-radius: 999px;
  padding: 6px 13px;
}

.note {
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: var(--radius-s);
  background: #FFF8E8;
  border: 1px solid #F5DFA8;
  font-size: .87rem;
  color: #7A5A18;
}

.note strong { color: #5E440F; }

/* ---------- PERMISOS / BADGES ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-deep);
  box-shadow: var(--shadow-s);
  transition: transform .25s ease, box-shadow .25s ease;
}

.badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.badge .tick {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), #2FA36B);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.badge .tick svg { width: 9px; height: 9px; fill: #fff; }

/* ---------- SPLIT (imagen + texto) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.split__media {
  border-radius: var(--radius-l);
  overflow: hidden;                 /* contención */
  box-shadow: var(--shadow-l);
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}

.split__media:hover img { transform: scale(1.04); }

/* ---------- FORMULARIO ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 17px; }

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 7px;
  letter-spacing: .01em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 16px;              /* 16px evita el zoom automático en iOS */
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea { min-height: 118px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(46, 107, 184, .14);
}

.form-note { font-size: .8rem; color: var(--ink-mute); margin: 12px 0 0; }

/* ---------- CONTACTO ---------- */
.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-s);
  transition: transform .25s ease, box-shadow .25s ease;
  min-width: 0;
}

.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.contact-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--g, linear-gradient(135deg, var(--navy), var(--blue)));
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px var(--glow, rgba(46, 107, 184, .28));
}

.contact-card .ico svg { width: 20px; height: 20px; fill: currentColor; }

.contact-card .t { min-width: 0; }
.contact-card .t span { display: block; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
.contact-card .t strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--navy-deep); word-break: break-word; }

/* ---------- CTA FINAL ---------- */
.cta {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;                 /* contención */
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, var(--blue) 100%);
  color: #fff;
  padding: clamp(38px, 5.6vw, 74px) clamp(24px, 4vw, 60px);
  text-align: center;
  box-shadow: var(--shadow-l);
}

.cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: min(58%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 191, 154, .4), transparent 68%);
  filter: blur(46px);
  pointer-events: none;
}

.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .87); max-width: 58ch; margin-inline: auto; }
.cta .btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(10px); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .24); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .74);
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: max(26px, var(--sab));
  margin-top: clamp(56px, 7vw, 96px);
}

.footer a { color: rgba(255, 255, 255, .74); }
.footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(26px, 3.6vw, 44px);
  margin-bottom: 38px;
}

.footer h4 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; font-size: .92rem; }
.footer p { color: rgba(255, 255, 255, .64); font-size: .92rem; }

.footer .brand__name { color: #fff; }
.footer .brand__tag { color: rgba(255, 255, 255, .5); }
.footer .brand img { mix-blend-mode: normal; background: #fff; border-radius: 10px; padding: 3px; }

.footer__bot {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: .84rem;
}

/* ---------- FOMO ---------- */
.fomo-notification {
  position: fixed;
  bottom: max(20px, var(--sab));
  left: max(20px, var(--sal));
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 36, 71, .18);
  padding: 12px 16px;
  display: flex;
  gap: 11px;
  align-items: center;
  transform: translateX(-130%);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
  z-index: 40;
}

.fomo-notification.show { transform: translateX(0); }

.fomo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: .88rem;
  flex: 0 0 auto;
}

.fomo-text { min-width: 0; line-height: 1.3; }
.fomo-text strong { display: block; font-size: .84rem; color: var(--navy-deep); }
.fomo-text span { display: block; font-size: .78rem; color: var(--ink-soft); }
.fomo-text time { font-size: .7rem; color: var(--ink-mute); }

/* ---------- BOTÓN FLOTANTE WHATSAPP ---------- */
.wa-float {
  position: fixed;
  right: max(20px, var(--sar));
  bottom: max(20px, var(--sab));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #12A150);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(18, 161, 80, .42);
  z-index: 45;
  transition: transform .25s ease, box-shadow .25s ease;
}

.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 16px 34px rgba(18, 161, 80, .5); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- REVEAL (con red de seguridad) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .3, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* stagger por índice */
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ---------- PARALLAX ---------- */
.parallax {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;                 /* contención */
  box-shadow: var(--shadow-l);
  height: clamp(260px, 40vw, 440px);
}

.parallax img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

.parallax__pill {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 32px);
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius);
  padding: 14px 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 36, 71, .22);
}

.parallax__pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--navy-deep);
}

.parallax__pill span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(310px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    box-shadow: -14px 0 40px rgba(15, 36, 71, .18);
    padding: calc(84px + var(--sat)) 20px 30px;
    transform: translateX(102%);
    transition: transform .34s cubic-bezier(.2, .7, .3, 1);
    z-index: 70;
    overflow-y: auto;
  }

  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { padding: 13px 15px; font-size: 1rem; }

  .nav__social {
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-content: center;
  }

  .burger { display: grid; margin-left: auto; }
  .lang { margin-left: 8px; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 36, 71, .35);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 65;
  }

  .nav-backdrop.is-on { opacity: 1; pointer-events: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand__tag { display: none; }
  .hero--video { min-height: min(84vh, 680px); }
  .hero__facts { gap: 8px; }
  .hero__fact { font-size: .8rem; padding: 8px 14px; }
  .fomo-notification { left: max(12px, var(--sal)); right: max(12px, var(--sar)); max-width: none; }
  .review-card { flex-basis: min(300px, 86vw); }
  .footer__bot { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 1.02rem; }
  .btn { padding: 13px 22px; font-size: .94rem; }
}

/* Solo se gatean efectos intrusivos (regla dura #8) */
@media (prefers-reduced-motion: reduce) {
  .parallax img { transform: none !important; }
  .logo-marquee-track { animation: none; }
}

@media print {
  .nav, .fomo-notification, .wa-float, .texture { display: none; }
}
