/* ==========================================================================
   styles.css
   --------------------------------------------------------------------------
   ÍNDICE
   01. Fuentes (@font-face)
   02. Tokens de diseño (variables CSS)
   03. Reset y base
   04. Utilidades (colores de texto, contenedor, iconos, accesibilidad)
   05. Tipografía de sección
   06. Componentes base (botones, pills, tags, status dots, cards, inputs)
   07. Encabezado y navegación
   08. Hero + barra KPI
   09. Nosotros
   10. Servicios
   11. Unidades (visor 3D)
   12. Unidades en venta (Odoo · js/venta.js)
   13. Monitoreo y confianza
   14. Clientes y testimonios
   15. Cotizador y contacto directo
   16. Bolsa de trabajo + modal
   17. Footer
   18. Botón flotante de WhatsApp
   19. Página legal (políticas de privacidad)
   20. Animaciones y movimiento reducido
   Breakpoints (mobile-first): 640px (sm) · 768px (md) · 1024px (lg) · 1280px (xl)
   ========================================================================== */

/* ==========================================================================
   01. FUENTES
   Subconjunto latino (español completo) en WOFF. font-display: swap
   muestra texto de inmediato con la fuente de respaldo mientras carga.
   ========================================================================== */
@font-face {
  font-family: "MADE Outer Sans";
  src: url("../assets/fonts/made-outer-sans-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MADE Outer Sans";
  src: url("../assets/fonts/made-outer-sans-900.woff") format("woff");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galderglynn Titling";
  src: url("../assets/fonts/galderglynn-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galderglynn Titling";
  src: url("../assets/fonts/galderglynn-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-500.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-600.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ==========================================================================
   02. TOKENS DE DISEÑO
   Cambia aquí un color/medida y se actualiza en toda la página.
   ========================================================================== */
:root {
  /* Tipografías */
  --font-display: "MADE Outer Sans", "Arial Black", "Helvetica Neue", sans-serif; /* títulos */
  --font-body:    "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* texto / UI */
  --font-data:    "Galderglynn Titling", "Barlow", ui-monospace, sans-serif;       /* cifras, etiquetas, IDs */

  /* Marca */
  /* Colores oficiales (DESIGN.md): índigo #312782 y naranja #EC8D22.
     Regla de contraste: sobre naranja, texto NEGRO; sobre índigo, texto blanco;
     el naranja como texto solo sobre fondos oscuros, nunca sobre blanco. */
  --purple-900: #1c1550;
  --purple-800: #241c66;   /* índigo hover */
  --purple:     #312782;   /* índigo de marca */
  --purple-700: #3d32a0;
  --purple-600: #4a3db3;
  --purple-50:  #f0eff9;
  --purple-100: #e1def3;
  --purple-200: #c9c4ea;

  --orange:       #ec8d22; /* naranja de marca: acción principal */
  --orange-hover: #d97c12;
  --orange-mid:   #f19a3a;
  --orange-bright:#ec8d22; /* acentos sobre fondo oscuro */
  --on-orange:    #000000; /* texto sobre naranja */
  --amber:        #f59e0b;
  --amber-300:    #fcd34d;

  /* Estados / telemetría */
  --green:      #34d399;
  --green-700:  #047857;
  --green-100:  #d1fae5;
  --teal:       #2dd4bf;
  --sky:        #38bdf8;
  --rose:       #fb7185;

  /* Neutros claros */
  --bg-light:   #ffffff;
  --mist:       #f3f3f7;  /* fondo gris de marca (niebla) */
  --white:      #ffffff;
  --ink:        #1a142e;  /* títulos sobre claro */
  --text:       #334155;
  --text-muted: #64748b;
  --line:       #e2e8f0;
  --line-strong:#cbd5e1;

  /* Neutros oscuros (HUD) */
  --night-950: #12101a;
  --night-900: #14121d;
  --night-850: #1b1827;
  --night-800: #1e1b29;
  --night-750: #1f1c27;
  --night-700: #272430;
  --night-600: #3c384a;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;

  /* Radios */
  --r-sm: .25rem;
  --r-md: .5rem;
  --r-lg: .75rem;
  --r-xl: 1rem;
  --r-2xl: 1.5rem;
  --r-full: 999px;

  /* Espaciado (ritmo de 8px) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --container: 80rem;           /* 1280px */
  --gutter: 1rem;
  --section-y: clamp(4rem, 8vw, 6rem);
  --header-h: 4.5rem;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px -1px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 15px -3px rgba(49, 39, 130, .12), 0 4px 6px -4px rgba(15, 23, 42, .05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, .15), 0 8px 10px -6px rgba(15, 23, 42, .10);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, .5);

  /* Movimiento */
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 650ms;
}

@media (min-width: 640px)  { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; --header-h: 5rem; } }

/* ==========================================================================
   03. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* las anclas no quedan bajo el header fijo */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--orange-bright); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--orange); color: var(--on-orange); }

/* ==========================================================================
   04. UTILIDADES
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--orange); color: var(--on-orange); padding: var(--space-2) var(--space-4); border-radius: var(--r-md);
}
.skip-link:focus { top: var(--space-4); }

.text-purple        { color: var(--purple); }
.text-orange        { color: var(--orange); }
.text-orange-bright { color: var(--orange-bright); }
.text-amber         { color: var(--amber); }
.text-green         { color: var(--green); }
.text-green-light   { color: #6ee7b7; }
.text-teal          { color: var(--teal); }
.text-sky           { color: var(--sky); }
.text-rose          { color: var(--rose); }

/* ==========================================================================
   05. TIPOGRAFÍA DE SECCIÓN
   ========================================================================== */
.section { padding-block: var(--section-y); position: relative; }
.section--tight  { padding-block: clamp(3rem, 6vw, 4rem); }
.section--light  { background: var(--bg-light); }
.section--mist   { background: var(--mist); }
.section--dark   { background: var(--night-800); color: var(--white); }
.section--darker { background: var(--night-900); color: var(--white); overflow: hidden; }

/* Etiqueta pequeña sobre los títulos ("● IDENTIDAD CORPORATIVA") */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-data); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); margin-bottom: var(--space-3);
}
.eyebrow--on-dark { color: var(--orange); }
.eyebrow--sm { font-size: .7rem; margin-bottom: var(--space-1); }

/* Título de sección: MADE Outer Sans es muy ancha, por eso el tamaño es más
   contenido que con Montserrat y escala fluido con clamp(). */
.h-section {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 2.75rem);
  line-height: 1.12; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--ink);
}
.h-section--light { color: var(--white); }

.section-head {
  display: flex; flex-direction: column; gap: var(--space-6);
  margin-bottom: var(--space-12);
}
.section-head__lead { margin-top: var(--space-3); max-width: 42rem; color: var(--slate-400); font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); }
.section--light .section-head__lead { color: #475569; }
.section-head--center { text-align: center; align-items: center; max-width: 48rem; margin-inline: auto; }
.section-head--center .section-head__lead { margin-inline: auto; }

@media (min-width: 1024px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head--center { flex-direction: column; align-items: center; }
}

.body-text { color: #475569; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); }
.body-text strong { color: var(--ink); }

/* ==========================================================================
   06. COMPONENTES BASE
   ========================================================================== */

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: .75rem 1.5rem; border-radius: var(--r-md);
  transition: background-color var(--t-fast), box-shadow var(--t-base), transform var(--t-base);
  white-space: nowrap;
}
.btn--sm    { font-size: .85rem; padding: .6rem 1.1rem; }
.btn--lg    { font-size: 1rem; padding: .95rem 1.75rem; border-radius: var(--r-lg); }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn--caps  { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; font-size: .82rem; }
.btn--lift:hover { transform: translateY(-2px); }

.btn--primary { background: var(--orange); color: var(--on-orange); box-shadow: 0 8px 20px -6px rgba(236, 141, 34, .45); }
.btn--primary:hover { background: var(--orange-hover); }

.btn--indigo { background: var(--purple); color: var(--white); box-shadow: 0 8px 20px -8px rgba(49, 39, 130, .55); }
.btn--indigo:hover { background: var(--purple-800); }

/* Botón con borde para usar sobre fotos oscuras (hero) */
.btn--ghost { color: var(--white); border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .25); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

.btn--whatsapp {
  background: #1e4e3d; color: #a7f3d0; border: 1px solid rgba(5, 150, 105, .4);
  padding-block: .9rem; border-radius: var(--r-lg); margin-bottom: var(--space-5);
}
.btn--whatsapp .icon { color: var(--green); }
.btn--whatsapp:hover { background: #174031; }

.icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-full);
  display: inline-grid; place-items: center; color: var(--slate-300);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.icon-btn--dark { background: rgba(30, 41, 59, .8); flex-shrink: 0; }
.icon-btn--dark:hover { background: var(--slate-700); }

/* ---- Cristal ahumado (glassmorphism) ---- */
.glass {
  background: rgba(18, 18, 28, .65);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
}

/* ---- Pills (insignias redondas) ---- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: var(--r-full);
  font-family: var(--font-data); font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: #f1f5f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

/* ---- Tags (etiquetas rectangulares) ---- */
.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem; border-radius: var(--r-sm);
  font-family: var(--font-data); font-weight: 700; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.tag--orange { background: rgba(249, 115, 22, .2); color: var(--orange-bright); border: 1px solid rgba(249, 115, 22, .3); border-radius: var(--r-full); padding-inline: .9rem; }
.tag--purple { background: var(--purple); color: var(--purple-200); }
.tag--violet { background: var(--purple-600); color: var(--amber-300); font-size: .72rem; }
.tag--green  { background: rgba(16, 185, 129, .2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, .4); }
.tag--green-soft { background: var(--green-100); color: var(--green-700); border: 1px solid #6ee7b7; border-radius: var(--r-full); }

/* ---- Puntos de estado ---- */
.status-dot { position: relative; display: inline-block; width: .5rem; height: .5rem; border-radius: var(--r-full); flex-shrink: 0; background: currentColor; }
.status-dot--green  { background: var(--green); }
.status-dot--amber  { background: var(--amber); }
.status-dot--orange { background: var(--orange); }
.status-dot--pulse  { animation: pulse 2s ease-in-out infinite; }
.status-dot--ping::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  animation: ping 1.5s cubic-bezier(0, 0, .2, 1) infinite;
}

/* ---- Tarjetas claras ---- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.card p { font-size: .85rem; color: #475569; line-height: 1.6; }
.card--accent-purple { border-left: 4px solid var(--purple); }
.card--accent-orange { border-left: 4px solid var(--orange); }
.card__kicker {
  font-family: var(--font-data); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--space-2);
}

/* ---- Mosaico de icono ---- */
.icon-tile {
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-md);
  display: inline-grid; place-items: center; flex-shrink: 0;
  background: var(--purple-50); color: var(--purple);
}
.icon-tile--purple { background: rgba(88, 28, 135, .4); color: #d8b4fe; width: 2rem; height: 2rem; }
.icon-tile--orange { background: rgba(124, 45, 18, .5); color: #fb923c; width: 2rem; height: 2rem; }
.icon-tile--green  { background: rgba(16, 185, 129, .2); color: var(--green); width: 2rem; height: 2rem; }

/* ---- Campos de formulario ---- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(2, 1fr); }
  .form__row--3 { grid-template-columns: repeat(3, 1fr); }
}
.field label, .field-title {
  display: block; margin-bottom: var(--space-1);
  font-family: var(--font-data); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.input {
  width: 100%; padding: .7rem .8rem; font-size: .9rem;
  background: #f8fafc; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
select.input {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.1rem;
}
.input::placeholder { color: #94a3b8; }
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(43, 8, 110, .15); }
.input[aria-invalid="true"] { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }

.input--dark { background: #0f172a; border-color: var(--slate-700); color: var(--white); border-radius: var(--r-lg); padding-block: .8rem; }
.input--dark::placeholder { color: var(--slate-500); }
.input--dark:focus { border-color: var(--orange-bright); box-shadow: 0 0 0 3px rgba(249, 115, 22, .2); }
.form--dark .field label { color: var(--slate-300); }

.form__status { font-size: .85rem; font-weight: 600; min-height: 1.2em; text-align: center; }
.form__status.is-ok    { color: var(--green-700); }
.form__status.is-error { color: #dc2626; }
.form--dark .form__status.is-ok    { color: var(--green); }
.form--dark .form__status.is-error { color: #f87171; }
.form__legal { font-size: .7rem; color: var(--slate-400); text-align: center; }

/* ==========================================================================
   07. ENCABEZADO Y NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--purple); color: var(--white);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, .4);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { flex-shrink: 0; }
.brand__logo { height: 2.25rem; width: auto; max-width: none; transition: transform var(--t-base); }
@media (max-width: 479px) {
  .brand__logo { height: 1.6rem; }
  .header-actions { gap: var(--space-2); }
  .header-actions .btn--sm { padding: .55rem .75rem; font-size: .78rem; }
  .header-actions a.icon-btn { display: none; }   /* el acceso a portal sigue en el menú/contacto */
}
@media (max-width: 379px) {
  .header-actions .btn--sm { display: none; }     /* teléfonos muy angostos: solo logo + menú */
}
.brand:hover .brand__logo { transform: scale(1.02); }
@media (min-width: 640px) { .brand__logo { height: 2.75rem; } }

.nav { display: none; align-items: center; gap: var(--space-6); }
.nav__link {
  font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: #e2e8f0;
  transition: color var(--t-fast);
}
.nav__link:hover { color: var(--white); }
.nav__link[aria-current="true"] { color: var(--orange); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: grid; gap: var(--space-1);
  background: var(--purple-800); border-top: 1px solid rgba(107, 33, 168, .5);
  padding: var(--space-2) var(--gutter) var(--space-5);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav .nav__link { padding-block: var(--space-2); font-size: 1rem; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ==========================================================================
   08. HERO + BARRA KPI
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(820px, calc(100svh - var(--header-h)));
  display: flex; flex-direction: column; justify-content: space-between;
  background: #020617; color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: contrast(1.05); }
/* Degradado de lectura a la izquierda + desvanecido inferior hacia la barra KPI */
.hero__bg::before, .hero__bg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* Celular: el texto ocupa todo el ancho, así que se oscurece de arriba hacia abajo */
.hero__bg::before { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 55%, rgba(0,0,0,.6) 100%); }
/* Escritorio: solo la zona izquierda donde está el texto */
@media (min-width: 768px) {
  .hero__bg::before { background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.7) 38%, rgba(0,0,0,.25) 62%, transparent 85%); }
}
.hero__bg::after  { top: auto; height: 8rem; background: linear-gradient(0deg, var(--night-950), transparent); }

.hero__content { padding-block: clamp(3.5rem, 8vw, 7rem) 3.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: var(--space-6); }

.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.75rem, .9rem + 3.9vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase;
  max-width: 17ch; margin-bottom: var(--space-6);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .75);
}
.hero__lead {
  max-width: 40rem; margin-bottom: var(--space-8);
  font-size: clamp(1rem, .9rem + .45vw, 1.25rem); line-height: 1.6; color: #f1f5f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 12px rgba(0, 0, 0, .6);
}
.hero__ctas { display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; align-items: center; } }

.kpi-bar {
  background: rgba(18, 16, 26, .95); border-top: 1px solid rgba(30, 41, 59, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-block: var(--space-5);
}
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }

.kpi {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--night-850); border: 1px solid var(--slate-800);
  border-radius: var(--r-md); padding: .9rem 1rem;
}
.kpi__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0; }
.kpi__icon--purple { background: rgba(43, 8, 110, .6); color: #d8b4fe; }
.kpi__icon--orange { background: rgba(200, 90, 0, .2); color: #fb923c; }
.kpi__icon--indigo { background: rgba(59, 7, 100, .7); color: #a5b4fc; }
.kpi__icon--amber  { background: #3c2317; color: var(--amber); }
.kpi__value {
  display: block; font-family: var(--font-data); font-weight: 700;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem); line-height: 1; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.kpi__value--sm { font-size: clamp(.95rem, .9rem + .3vw, 1.1rem); line-height: 1.2; }
.kpi__label {
  display: block; margin-top: .3rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400);
}

/* ==========================================================================
   09. NOSOTROS
   ========================================================================== */
.split { display: grid; gap: var(--space-10); align-items: center; }
.split__text { display: grid; gap: var(--space-6); justify-items: start; }
.split__text .eyebrow { margin-bottom: 0; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-12); } }

.mv-grid { display: grid; gap: var(--space-4); width: 100%; }
@media (min-width: 640px) { .mv-grid { grid-template-columns: 1fr 1fr; } }

.photo-card {
  position: relative; overflow: hidden; border-radius: var(--r-2xl);
  border: 1px solid var(--purple-100); box-shadow: var(--shadow-xl);
  background: linear-gradient(90deg, rgba(216, 203, 247, .4), #f1f5f9);
}
.photo-card img { width: 100%; height: clamp(20rem, 30vw, 24rem); object-fit: cover; object-position: right; }
.photo-card__caption {
  position: absolute; inset: auto 0 0 0; padding: var(--space-6); color: var(--white);
  background: linear-gradient(0deg, var(--purple-900) 0%, rgba(28, 21, 80, .85) 55%, transparent);
  display: grid; gap: var(--space-1);
}
.photo-card__caption strong { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.photo-card__caption span { font-size: .8rem; color: var(--purple-200); font-weight: 500; }
/* Foto vertical (Nosotros) */
.photo-card--portrait img { height: clamp(26rem, 42vw, 36rem); object-position: center 40%; }

/* ==========================================================================
   10. SERVICIOS
   Tarjetas de servicio. venta.js reutiliza .svc-grid, .svc-card, .svc-body
   y .svc-title para las tarjetas de unidades en venta.
   ========================================================================== */
.svc-grid { display: grid; gap: var(--space-6); }
@media (min-width: 640px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--t-base), transform var(--t-base);
}
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-card > img, .svc-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-6); }
.svc-body p { color: #475569; font-size: .92rem; }
.svc-body > .btn { margin-top: auto; }
.svc-title { font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: var(--ink); }

.svc-more {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-4);
  padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-xl);
  background: var(--purple); color: var(--white);
}
.svc-more__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.15; }
.svc-more p { color: var(--purple-200); }

/* ==========================================================================
   11. UNIDADES (VISOR 3D TIPO LIBRO)
   La posición de cada tarjeta la decide el atributo data-pos que pone el JS:
   0 = al frente · 1 y 2 = capas traseras · "out" = oculta.
   Solo se animan transform y opacity (las propiedades más baratas para la GPU).
   ========================================================================== */
.glow { position: absolute; width: 24rem; height: 24rem; border-radius: var(--r-full); filter: blur(64px); pointer-events: none; }
.glow--purple { top: -8rem; left: -8rem; background: rgba(88, 28, 135, .25); }
.glow--orange { bottom: -8rem; right: -8rem; background: rgba(194, 65, 12, .2); }
.fleet__inner { position: relative; z-index: 1; }

.carousel-controls { display: flex; gap: var(--space-2); }
.ctrl-btn {
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-lg);
  display: grid; place-items: center; color: var(--white);
  background: rgba(15, 23, 42, .8); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .3);
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.ctrl-btn:hover { background: var(--orange); color: var(--on-orange); transform: scale(1.05); }
.ctrl-btn:active { transform: scale(.95); }

.fleet__grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 1024px) { .fleet__grid { grid-template-columns: 5fr 7fr; } }

.spec-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6);
  min-height: 28.75rem; padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(15, 23, 42, .8); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.5rem; box-shadow: var(--shadow-2xl);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.spec-panel::before {
  content: ""; position: absolute; top: -3rem; right: -3rem; width: 11rem; height: 11rem;
  border-radius: var(--r-full); background: rgba(249, 115, 22, .1); filter: blur(40px); pointer-events: none;
}
.spec-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.spec-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem); line-height: 1.15; margin-bottom: var(--space-3);
}
.spec-desc { font-size: .9rem; color: var(--slate-300); line-height: 1.6; margin-bottom: var(--space-6); }
/* Transición suave cuando el JS cambia el contenido */
.spec-panel__body { transition: opacity var(--t-base); }
.spec-panel.is-switching .spec-panel__body { opacity: .25; }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.metric { background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .05); border-radius: var(--r-xl); padding: .9rem; }
.metric__label { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); }
.metric__value { font-family: var(--font-data); font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin-top: .15rem; color: var(--white); font-variant-numeric: tabular-nums; }
.metric__value--sm { font-family: var(--font-body); font-size: .9rem; margin-top: .25rem; }
.metric__value.text-orange-bright { color: var(--orange-bright); }
.metric__sub { font-size: .68rem; color: var(--slate-500); }
.metric__sub.text-green { color: var(--green); }

.spec-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .1); }

.dots { display: flex; align-items: center; gap: var(--space-2); }
.dot {
  width: .625rem; height: .625rem; border-radius: var(--r-full); background: #475569;
  transition: background-color var(--t-fast), transform var(--t-base), box-shadow var(--t-base);
  /* área táctil ampliada sin cambiar el tamaño visual */
  position: relative;
}
.dot::after { content: ""; position: absolute; inset: -8px; }
.dot:hover { background: var(--slate-400); }
.dot[aria-selected="true"] { background: var(--orange-bright); transform: scale(1.2); box-shadow: 0 0 0 3px rgba(249, 115, 22, .35); }

.stage {
  perspective: 1200px; perspective-origin: center;
  min-height: 30rem; display: flex; align-items: center; justify-content: center;
  padding-block: var(--space-6); user-select: none; -webkit-user-select: none;
  touch-action: pan-y; /* permite scroll vertical y deslizar horizontal (swipe) */
}
@media (min-width: 640px) { .stage { min-height: 32.5rem; } }
.deck { position: relative; width: 100%; max-width: 32.5rem; height: 23.75rem; transform-style: preserve-3d; }
@media (min-width: 640px) { .deck { height: 26.875rem; } }

.fleet-card {
  position: absolute; inset: 0; display: block; padding: 0; text-align: left; color: var(--white);
  border-radius: 1.5rem; overflow: hidden; background: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 25px 35px -10px rgba(0, 0, 0, .65);
  transform-style: preserve-3d; will-change: transform, opacity;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) ease, visibility 0s linear var(--t-slow);
  /* estado por defecto = oculta (data-pos="out") */
  transform: translate3d(-50px, 0, -200px) rotateY(12deg) scale(.78);
  opacity: 0; visibility: hidden; z-index: 0; pointer-events: none;
}
/* Capa oscura que reemplaza a filter: brightness() (mucho más barato de animar) */
.fleet-card::after {
  content: ""; position: absolute; inset: 0; background: #000; opacity: 0;
  transition: opacity var(--t-slow) ease; pointer-events: none;
}
.fleet-card[data-pos="0"] { transform: translate3d(0, 0, 0) rotateY(0) scale(1); opacity: 1; z-index: 30; }
.fleet-card[data-pos="1"] { transform: translate3d(40px, -12px, -80px) rotateY(-8deg) scale(.93); opacity: .78; z-index: 20; }
.fleet-card[data-pos="2"] { transform: translate3d(75px, -24px, -160px) rotateY(-14deg) scale(.86); opacity: .5; z-index: 10; }
.fleet-card[data-pos="1"]::after { opacity: .15; }
.fleet-card[data-pos="2"]::after { opacity: .3; }
.fleet-card[data-pos="0"], .fleet-card[data-pos="1"], .fleet-card[data-pos="2"] {
  visibility: visible; pointer-events: auto;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) ease, visibility 0s;
}

.fleet-card__img { width: 100%; height: 100%; object-fit: cover; }
.fleet-card::after { z-index: 1; }                    /* capa de oscurecido sobre la foto… */
.fleet-card__tag, .fleet-card__foot { z-index: 2; }   /* …pero debajo de los textos */
.fleet-card__tag {
  position: absolute; top: 1rem; left: 1rem; padding: .25rem .75rem; border-radius: var(--r-md);
  font-family: var(--font-data); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tag-color, var(--amber-300));
}
.fleet-card__foot {
  position: absolute; inset: auto 0 0 0; padding: 3.5rem 1rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: linear-gradient(0deg, rgba(0,0,0,.8), transparent);
}
.fleet-card__title { display: block; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 700; }
.fleet-card__sub { display: block; font-size: .75rem; color: var(--slate-300); }
.fleet-card__eye {
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-full); flex-shrink: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* ==========================================================================
   12. UNIDADES EN VENTA (Odoo)
   El contenido lo crea js/venta.js; aquí solo va su apariencia.
   ========================================================================== */
.venta .h-section { text-align: center; margin-bottom: var(--space-10); }
.venta-grid { margin-top: var(--space-2); }
.venta-sin-foto { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; background: var(--mist); color: var(--text-muted); font-weight: 600; }
.venta-sin-foto[hidden], .venta-foto-grande[hidden] { display: none; }
.venta-datos, .svc-body .venta-datos { color: var(--text-muted); font-size: .9rem; }
.venta-precio, .svc-body .venta-precio { font-family: var(--font-data); font-weight: 700; font-size: 1.5rem; color: var(--purple); font-variant-numeric: tabular-nums; }
.venta-acciones { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); }
.venta-acciones .btn[aria-disabled="true"] { background: var(--mist); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.venta-aviso { margin: 0; text-align: center; font-weight: 600; }
.venta-aviso:not(:empty) { margin-top: var(--space-6); }
@media (max-width: 1023px) { .venta-grid .venta-acciones { padding-right: 3.5rem; } }

html:has(.venta-dialogo[open]) { overflow: hidden; }
.venta-dialogo {
  width: min(100% - 2rem, 65rem); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: 0;
  border: 0; border-radius: var(--r-2xl); background: var(--white); color: var(--ink);
  overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow-2xl);
}
.venta-dialogo[open] { display: grid; align-items: start; animation: modal-in .22s var(--ease-out); }
.venta-dialogo::backdrop { background: rgba(10, 8, 30, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.venta-galeria { background: var(--night-900); align-self: stretch; display: flex; flex-direction: column; }
.venta-foto-grande { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #000; }
.venta-galeria .venta-sin-foto { flex: 1; background: var(--night-800); color: var(--slate-400); }
.venta-miniaturas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: var(--space-2); }
.venta-miniaturas:empty { display: none; }
.venta-miniatura { display: block; width: 5.5rem; padding: 0; border: 3px solid transparent; border-radius: var(--r-md); overflow: hidden; }
.venta-miniatura img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.venta-miniatura[aria-current="true"] { border-color: var(--orange); }
.venta-dialogo-cuerpo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-8) var(--space-6); }
.venta-dialogo-cuerpo .svc-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
.venta-dialogo-cuerpo .venta-aviso { text-align: left; }
.venta-dialogo-cuerpo .venta-aviso:not(:empty) { margin-top: 0; }
@media (min-width: 1024px) {
  .venta-dialogo[open] { grid-template-columns: 3fr 2fr; }
  .venta-dialogo-cuerpo { padding: var(--space-10); }
}

/* ==========================================================================
   13. MONITOREO Y CONFIANZA
   ========================================================================== */
.tele-grid { display: grid; gap: var(--space-8); align-items: stretch; }
@media (min-width: 1024px) { .tele-grid { grid-template-columns: 1fr 1fr; } }

.tele-photo {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid rgba(51, 65, 85, .8); background: var(--slate-800); box-shadow: var(--shadow-2xl);
}
.tele-photo { min-height: 22.5rem; }
/* La imagen va en absoluto: la altura de la fila la decide la lista de la derecha y la foto solo la cubre */
.tele-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(.95); }
.tele-photo__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .25rem .75rem; border-radius: var(--r-sm);
  font-family: var(--font-data); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #e2e8f0;
}
.tele-photo__status {
  position: absolute; z-index: 2; inset: auto 1rem 1rem 1rem; padding: .9rem; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.tele-photo__status-main { display: flex; align-items: center; gap: var(--space-3); }
.tele-photo__status strong { display: block; font-size: .8rem; color: var(--white); }
.tele-photo__status small  { display: block; font-size: .7rem; color: var(--slate-300); }
.trust-list { display: grid; gap: var(--space-3); }
@media (min-width: 640px) and (max-width: 1023px) { .trust-list { grid-template-columns: 1fr 1fr; } }
.feature {
  display: flex; align-items: flex-start; gap: var(--space-4);
  background: var(--night-700); border: 1px solid var(--night-600); border-radius: var(--r-lg); padding: clamp(1rem, 2vw, 1.25rem);
}
.feature h3 { font-size: .98rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-1); }
.feature p { font-size: .85rem; color: var(--slate-400); line-height: 1.55; }
.bases { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem var(--space-4); font-size: .85rem; color: var(--slate-300); }
.bases li::before { content: "• "; color: var(--orange); }

/* ==========================================================================
   14. CLIENTES Y TESTIMONIOS
   ========================================================================== */
.client-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }
.client-item {
  display: grid; place-items: center; width: min(100%, 16rem); height: 9rem; padding: var(--space-6);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
}
.client-logo { display: block; max-width: 100%; max-height: 5.5rem; width: auto; height: auto; object-fit: contain; }

.testimonials { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); max-width: 52rem; margin: 0 auto var(--space-12); }
.testimonials[hidden] { display: none; }
.testimonial-slides { display: grid; }
.testimonial { grid-area: 1 / 1; opacity: 0; transition: opacity var(--t-slow) ease; text-align: center; }
.testimonial.is-current { opacity: 1; }
.testimonial blockquote { font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--ink); margin-bottom: var(--space-4); }
.testimonial figcaption strong { display: block; color: var(--purple); }
.testimonial figcaption span { font-size: .85rem; color: var(--text-muted); }
.ctrl-btn--light { background: var(--white); color: var(--purple); border-color: var(--line); box-shadow: var(--shadow-sm); }
.ctrl-btn[hidden] { display: none; }

/* ==========================================================================
   15. COTIZADOR Y CONTACTO DIRECTO
   ========================================================================== */
.quote-grid { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1024px) { .quote-grid { grid-template-columns: 7fr 5fr; } }

.form-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-xl);
  border-top: 6px solid var(--purple);
}
.form-card__title {
  display: flex; align-items: center; gap: .6rem; margin-bottom: var(--space-6);
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 700; color: var(--night-800);
}
.form-card__title span { font-size: 1.3rem; font-weight: 900; }

.dispatch-col { display: grid; gap: var(--space-5); }
.dispatch {
  background: var(--night-700); color: var(--white); border: 1px solid var(--night-600);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 1.75rem); box-shadow: var(--shadow-xl);
}
.dispatch__title { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 700; margin-bottom: var(--space-5); }
.phone-list { display: grid; gap: .9rem; margin-bottom: var(--space-6); }
.phone-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: var(--night-750); border: 1px solid var(--slate-700); border-radius: var(--r-lg); padding: .9rem;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.phone-link:hover { background: #1a1722; border-color: var(--orange); }
.phone-link__label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); }
.phone-link__num { font-family: var(--font-data); font-weight: 700; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.phone-link__icon { width: 2.25rem; height: 2.25rem; border-radius: var(--r-full); display: grid; place-items: center; background: var(--slate-800); color: #fb923c; flex-shrink: 0; }

.dispatch__meta { display: grid; gap: .4rem; padding-top: var(--space-3); border-top: 1px solid rgba(51, 65, 85, .6); font-size: .78rem; font-weight: 500; color: var(--slate-400); }
.dispatch__meta li { display: flex; align-items: center; gap: .4rem; }
.dispatch__meta a:hover { color: var(--white); }

/* Vista previa del mensaje de WhatsApp (se actualiza mientras escribes) */
.wa-preview { background: var(--mist); border: 1px dashed var(--purple-200); border-radius: var(--r-lg); padding: var(--space-4); }
.wa-preview__title { display: flex; align-items: center; gap: var(--space-2); font-size: .78rem; font-weight: 700; color: var(--purple); margin-bottom: var(--space-2); }
.wa-preview__text { white-space: pre-line; font-size: .88rem; color: var(--ink); }
.form__legal a { text-decoration: underline; }

/* ==========================================================================
   16. BOLSA DE TRABAJO + MODAL
   ========================================================================== */
.recruit {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 1.5rem; padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(90deg, var(--purple-900), var(--purple), var(--purple-700));
  border: 1px solid rgba(168, 85, 247, .25); color: var(--white); box-shadow: var(--shadow-2xl);
  transition: box-shadow var(--t-base);
}
.recruit:hover { box-shadow: 0 25px 50px -12px rgba(88, 28, 135, .5); }
.recruit__bg { position: absolute; inset: 0 0 0 auto; width: 100%; z-index: -1; opacity: .3; mix-blend-mode: luminosity; overflow: hidden; pointer-events: none; }
.recruit__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right; transition: transform .7s ease; }
.recruit:hover .recruit__bg img { transform: scale(1.05); }
@media (min-width: 1024px) { .recruit__bg { width: 58%; opacity: .4; } }

.recruit__content { max-width: 42rem; }
.recruit__badges { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: var(--space-5); }
.recruit__badges .pill { text-transform: none; letter-spacing: .02em; font-size: .78rem; }
.recruit .h-section { margin-bottom: var(--space-4); line-height: 1.05; }
.recruit__lead { max-width: 36rem; margin-bottom: var(--space-8); color: #e2e8f0; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); }

/* ---- <dialog> nativo: Esc, foco y capa superior los maneja el navegador ---- */
.modal {
  width: min(42rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  margin: auto; padding: 0; overflow: hidden;
  background: var(--night-800); color: var(--white);
  border: 1px solid rgba(168, 85, 247, .3); border-radius: 1.5rem; box-shadow: var(--shadow-2xl);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .22s var(--ease-out); }
.modal::backdrop { background: rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.modal__bar { height: .5rem; flex-shrink: 0; background: linear-gradient(90deg, var(--purple), var(--orange), var(--amber)); }
.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) var(--space-4); border-bottom: 1px solid var(--slate-800);
}
.modal__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.1rem, 1rem + .7vw, 1.5rem); text-transform: uppercase; line-height: 1.2; }
.modal__sub { font-size: .8rem; color: var(--slate-400); margin-top: var(--space-1); }
.modal__body { padding: clamp(1.5rem, 3vw, 2rem); display: grid; gap: var(--space-6); overflow-y: auto; overscroll-behavior: contain; }
.modal .form { padding-top: var(--space-6); border-top: 1px solid var(--slate-800); }
.modal .field-title { color: var(--slate-400); margin-bottom: -.75rem; }

.vac-grid { display: grid; gap: .65rem; }
@media (min-width: 640px) { .vac-grid { grid-template-columns: 1fr 1fr; } }
.vac-chip {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3); text-align: left; border-radius: var(--r-lg);
  background: rgba(30, 41, 59, .8); border: 1px solid rgba(51, 65, 85, .8);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.vac-chip:hover { background: rgba(59, 7, 100, .6); }
.vac-chip[aria-pressed="true"] { border-color: var(--orange-bright); background: rgba(249, 115, 22, .1); }
.vac-chip strong { display: block; font-size: .82rem; color: var(--white); }
.vac-chip small  { display: block; font-size: .7rem; color: var(--slate-400); }

body.has-modal { overflow: hidden; }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.site-footer { background: var(--purple-900); color: #d6d3ee; padding: var(--space-16) 0 var(--space-12); }
.footer-grid { display: grid; gap: var(--space-10); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 3fr 3fr 3fr 4fr; } }

.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand img { height: 2.25rem; width: auto; }
.footer-brand p { max-width: 22rem; font-size: .85rem; line-height: 1.6; }

.footer-col__title { font-family: var(--font-data); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: var(--space-3); }
.footer-col__title--next { margin-top: var(--space-6); }
.footer-col ul, .footer-list { display: grid; gap: var(--space-2); font-size: .88rem; }
.footer-col a, .footer-link { color: #d6d3ee; transition: color var(--t-fast); }
.footer-col a:hover, .footer-link:hover { color: var(--white); }
.footer-link { text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.footer-col .footer-contact__phone { font-family: var(--font-data); font-weight: 700; font-size: 1.05rem; color: var(--white); }
.footer-col .footer-contact__phone:hover { color: var(--orange); }
.footer-col address { font-style: normal; font-size: .88rem; line-height: 1.6; margin-top: var(--space-4); }

.footer-map iframe { display: block; width: 100%; height: 13rem; border: 0; border-radius: var(--r-lg); background: var(--purple-800); }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.footer-actions .btn { color: var(--on-orange); }

.footer-bottom { padding-top: var(--space-8); display: flex; flex-direction: column; align-items: center; gap: var(--space-4); font-size: .78rem; color: #a9a4d6; text-align: center; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }
.footer-bottom a:hover { color: var(--white); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ==========================================================================
   18. BOTÓN FLOTANTE DE WHATSAPP
   Aparece al bajar y se oculta cuando ya hay un contacto visible.
   ========================================================================== */
.wa-float {
  position: fixed; right: 1rem; bottom: 5.5rem; z-index: 40;
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: .8rem 1.1rem; border-radius: var(--r-full);
  background: #25d366; color: #052e16; font-weight: 700; font-size: .9rem;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(1rem); pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), background-color var(--t-fast);
}
.wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #1fb857; }
@media (max-width: 479px) { .wa-float span { display: none; } .wa-float { padding: .9rem; } }

.mobile-nav__cta { margin-top: var(--space-3); }

/* ==========================================================================
   19. PÁGINA LEGAL (politicas-de-privacidad/)
   ========================================================================== */
.legal-doc { max-width: 48rem; margin-inline: auto; }
.legal-doc + .legal-doc { margin-top: var(--space-16); padding-top: var(--space-10); border-top: 1px solid var(--line); }
.legal-doc h1, .legal-doc > .h-section { margin-bottom: var(--space-6); }
.legal-doc h2 { font-size: 1.2rem; font-weight: 700; color: var(--purple); margin: var(--space-8) 0 var(--space-3); }
.legal-doc p, .legal-doc li { color: #475569; margin-bottom: var(--space-3); }
.legal-doc ul { list-style: disc; padding-left: var(--space-6); }
.legal-doc a { color: var(--purple); text-decoration: underline; }
.site-footer--compact { padding: var(--space-6) 0; }
.site-footer--compact .footer-bottom { padding-top: 0; }
.todo { display: inline-block; background: #000; color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .4rem; }

/* ==========================================================================
   20. ANIMACIONES Y MOVIMIENTO REDUCIDO
   ========================================================================== */
@keyframes pulse { 50% { opacity: .45; } }
@keyframes ping  { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* Aparición al hacer scroll. Solo se activa si hay JS (clase .js en <html>),
   así sin JS el contenido siempre es visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .svc-grid .reveal:nth-child(3n+2), .js .trust-list .reveal:nth-child(2n) { transition-delay: 90ms; }
.js .svc-grid .reveal:nth-child(3n) { transition-delay: 180ms; }

/* Respeta la preferencia del sistema "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
