/* ===============================================
   PAVEL — hero.css
   Top Bar + Header/Nav + Hero Section
   Compatible con la imagen de fondo existente.
   Usa capas HTML/CSS/JS, NO modifica la imagen.
=============================================== */

/* ---- Tokens ---- */
:root {
  --c-navy:       #0B1F3A;   /* azul marino corporativo */
  --c-navy-dark:  #071526;
  --c-accent:     #1A6EBB;   /* azul eléctrico primario */
  --c-accent-2:   #0FA3E0;   /* cian tecnológico */
  --c-white:      #FFFFFF;
  --c-white-70:   rgba(255,255,255,.70);
  --c-white-50:   rgba(255,255,255,.50);
  --c-white-20:   rgba(255,255,255,.20);
  --c-white-10:   rgba(255,255,255,.10);
  --c-line:       rgba(255,255,255,.12);

  --topbar-h:     44px;
  --header-h:     72px;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease-out:     cubic-bezier(.22,.68,0,1.2);
  --ease-std:     cubic-bezier(.4,0,.2,1);
}

/* ---- Reset mínimo ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-navy-dark);
  color: var(--c-white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ================================================
   TOP BAR
================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: linear-gradient(to bottom, rgba(11,31,58,.7), rgba(11,31,58,.5));
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
  transition: transform .35s var(--ease-std), opacity .35s;
}
.topbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}
.topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--c-white-70);
  transition: color .2s;
}
.topbar__item:hover { color: var(--c-accent-2); }
.topbar__item svg { width: 13px; height: 13px; flex-shrink: 0; }
.topbar__sep {
  color: var(--c-white-20);
  font-size: .75rem;
  user-select: none;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* "Contacto" vive como un ítem más del menú (desktop y mobile). */

/* ================================================
   LANGUAGE TOGGLE (EN / ES)
================================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle__btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--c-white-50);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s var(--ease-std), background .2s var(--ease-std);
}
.lang-toggle__btn:hover { color: var(--c-white); }
.lang-toggle__btn.is-active {
  color: var(--c-navy-dark);
  background: var(--c-accent-2);
}
/* El separador "/" queda oculto: el diseño de píldora ya distingue
   las dos opciones sin necesidad de un carácter separador. */
.lang-toggle__sep { display: none; }

/* ================================================
   SITE HEADER / NAV
================================================ */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 99;
  height: var(--header-h);
  /* Efecto cristal: fondo translúcido + blur + biselado luminoso */
  background: linear-gradient(
    to bottom,
    rgba(11,31,58,.55) 0%,
    rgba(11,31,58,.4) 100%
  );
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  transition:
    background .4s var(--ease-std),
    box-shadow .4s,
    height .3s;
}
/* Borde inferior con gradiente luminoso (en vez de línea plana) */
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15,163,224,.6) 30%,
    rgba(26,110,187,.6) 70%,
    transparent 100%
  );
}
/* Línea de highlight superior — simula el filo de un cristal biselado */
.site-header::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25) 50%, transparent);
  pointer-events: none;
}
.site-header.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(7,21,38,.85) 0%,
    rgba(7,21,38,.78) 100%
  );
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* ════════════════════════════════════════════════════════════════
   ⚠️  NO MODIFICAR ESTE BLOQUE — ADVERTENCIA PERMANENTE  ⚠️
   ════════════════════════════════════════════════════════════════
   El header tiene `position: fixed; top: var(--topbar-h)` (44px).
   Por eso `.header--hidden` NO puede usar `translateY(-100%)`:
   eso solo sube 72px (su propia altura) y el header queda cortado
   a la mitad, visible dentro de la franja del topbar.

   DEBE ser `calc(-100% - var(--topbar-h))` para sumar los 44px
   del topbar y así salir COMPLETAMENTE de pantalla (72 + 44 = 116px).

   Este bug fue reproducible en Chrome, Firefox y Brave, y persistió
   durante múltiples sesiones de debugging porque el valor incorrecto
   `translateY(-100%)` parecía razonable a simple vista.

   Regla: si cambias --topbar-h o --header-h, esta fórmula
   se actualiza automáticamente. No toques el `calc()`.
   ════════════════════════════════════════════════════════════════ */
.site-header {
  transform: translateY(0);
  transition: transform .4s var(--ease-std), background .4s var(--ease-std), box-shadow .4s, backdrop-filter .4s;
}
.site-header.header--hidden {
  transform: translateY(calc(-100% - var(--topbar-h))); /* ← NO cambiar a -100% — ver advertencia arriba */
}
.site-header.header--peek,
.site-header.header--revealed {
  transform: translateY(0);
}

/* Franja invisible en el borde superior: detecta clic para revelar el header oculto.
   pointer-events activado/desactivado por JS según estado del header. */
.header-trigger {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--topbar-h) + var(--header-h));
  z-index: 98;
  cursor: pointer;
  pointer-events: none;
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-header__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(10,160,220,.35));
  transition: filter .3s;
}
.site-header__logo:hover .site-header__logo-img {
  filter: drop-shadow(0 0 16px rgba(10,160,220,.7));
}
.site-header__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 0 20px rgba(10,160,220,.5);
}

/* Desktop Nav */
.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-white-70);
  padding: 8px 14px;
  border-radius: 3px;
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--c-accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s, width .3s;
  transform-origin: center;
}
.hamburger.open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger__bar:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO SECTION
================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* overflow:hidden en el hero cortaba los botones CTA.
     El clip se hace ahora en hero__bg para aislar el parallax. */
}

/* Imagen de fondo – capa 1 (NO SE MODIFICA) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden; /* contiene el parallax sin afectar al hero__content */
  background-size: cover;
  background-position: center 30%;
}
.hero__bg-img {
  width: 100%;
  height: 102%; /* margen mínimo, suficiente para el zoom de scroll vía scale() */
  object-fit: cover;
  object-position: center 38%;
  will-change: transform;
  opacity: 0;
  transition: opacity .8s var(--ease-std);
}
.hero__bg-img.loaded { opacity: 1; }

/* Overlay de gradiente – capa 2 (HTML puro, no toca la imagen) */
/* Solo gradiente lateral izquierdo + inferior; sin gradiente superior
   para no interferir con el título del hero */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7,21,38,.92) 0%,
      rgba(7,21,38,.75) 40%,
      rgba(7,21,38,.20) 75%,
      rgba(7,21,38,.05) 100%
    ),
    linear-gradient(
      to top,
      rgba(7,21,38,.55) 0%,
      rgba(7,21,38,0)   28%
    ),
    /* Fundido hacia la sección siguiente: elimina el corte abrupto */
    linear-gradient(
      to bottom,
      rgba(7,21,38,0)    78%,
      var(--c-navy-dark) 100%
    );
  /* Capa extra dinámica controlada por JS via --overlay-boost */
  --overlay-boost: 0;
  transition: none;
}
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7,21,38, var(--overlay-boost));
  pointer-events: none;
}

/* Canvas partículas – posición fija, toda la parte superior de la página */
.hero__particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Contenido principal – capa 5 */
.hero__content {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + var(--header-h) + 8px) 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform, opacity; /* GPU layer para scroll suave */
}

/* Título */
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.hero__title-word { display: block; }
.hero__title-word--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--c-accent-2);
  text-shadow: none;
}

/* Descripción */
.hero__desc {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--c-white-70);
  max-width: 480px;
}
.hide-mobile { display: inline; }

/* Botones */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background .25s,
    color .25s,
    border-color .25s,
    box-shadow .25s,
    transform .2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn--primary:hover {
  background: var(--c-accent-2);
  border-color: var(--c-accent-2);
  box-shadow: 0 8px 28px rgba(15,163,224,.45);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: var(--c-white-50);
}
.btn--ghost:hover {
  border-color: #fff;
  box-shadow: 0 8px 28px rgba(255,255,255,.12);
}
.btn__icon { width: 16px; height: 16px; }



/* ================================================
   SECCIONES PLACEHOLDER (pueden eliminarse)
================================================ */
.section-placeholder {
  min-height: 500px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-navy-dark);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-placeholder h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-white-50);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1024px) {
  .topbar__item--loc { display: none; }
}

@media (max-width: 768px) {
  :root {
    --topbar-h: 44px;  /* topbar compacta visible en mobile: teléfono + idioma */
    --header-h: 60px;
  }

  /* En mobile solo se muestran el botón de llamada y el selector
     de idioma; los datos de licencia/ubicación quedan en el footer. */
  .topbar__left { display: none; }
  .topbar__inner { padding: 0 16px; justify-content: flex-end; }
  .topbar__right { width: 100%; justify-content: flex-end; gap: 10px; }
}

@media (max-width: 420px) {
  /* Pantallas muy angostas: el teléfono queda como botón de solo ícono */
  .topbar__right .topbar__item span { display: none; }
  .topbar__right .topbar__item svg { width: 18px; height: 18px; }
}

@media (max-width: 768px) {
  /* Nav mobile — overlay full-screen, no drawer estrecho */
  .site-header {
    background: rgba(7,21,38,.98);
  }
  .site-header__nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(165deg, rgba(7,21,38,.99) 0%, rgba(11,31,58,.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 32px 48px;
    transform: translateX(100%);
    transition: transform .45s var(--ease-out);
    overflow-y: auto;
    z-index: 109;
  }
  /* Resplandor decorativo, coherente con el resto del sitio */
  .site-header__nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(15,163,224,.16), transparent 55%);
    pointer-events: none;
  }
  .site-header__nav.open {
    transform: translateX(0);
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
  }
  .site-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    counter-reset: navnum;
    position: relative;
  }
  .site-header__nav-list li { counter-increment: navnum; width: 100%; }

  /* Links grandes, numerados, con entrada escalonada al abrir */
  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--c-line);
    opacity: 0;
    transform: translateY(18px);
    transition: color .2s, opacity .4s var(--ease-out), transform .4s var(--ease-out);
  }
  .nav-link::before {
    content: counter(navnum, decimal-leading-zero);
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-accent-2);
  }
  .site-header__nav.open .nav-link {
    opacity: 1;
    transform: translateY(0);
  }
  .site-header__nav-list li:nth-child(1) .nav-link { transition-delay: .06s; }
  .site-header__nav-list li:nth-child(2) .nav-link { transition-delay: .11s; }
  .site-header__nav-list li:nth-child(3) .nav-link { transition-delay: .16s; }
  .site-header__nav-list li:nth-child(4) .nav-link { transition-delay: .21s; }
  .site-header__nav-list li:nth-child(5) .nav-link { transition-delay: .26s; }
  .site-header__nav-list li:nth-child(6) .nav-link { transition-delay: .31s; }

  .hamburger { display: flex; }

  /* Hero adjustments */
  .hero__content {
    padding: calc(var(--header-h) + 32px) 24px 80px;
    gap: 16px;
  }
  .hero__title-word--accent { -webkit-text-stroke-width: 1.5px; }
  .hero__desc br.hide-mobile { display: none; }
  .hero__stats { gap: 0; flex-wrap: wrap; }
  .hero__stat { padding: 0 20px 0 0; }
  .hero__stat-divider { margin-right: 20px; }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: .76rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .hero__stat-num { font-size: 1.8rem; }
}

/* ================================================
   ACCESIBILIDAD — Reduced Motion
================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-img { animation: none !important; transform: none !important; }
  .hero__scroll-line { animation: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__content { will-change: auto !important; }
  .reveal-section { clip-path: none !important; opacity: 1 !important; transform: none !important; }
}

/* ================================================
   SCROLL PROGRESS BAR — línea superior global
================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  pointer-events: none;
  /* Sin transition — JS lo mueve en rAF directamente */
}

/* ================================================
   SCROLL INDICATOR — premium morse/pulse
================================================ */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  will-change: opacity, transform;
}
.hero__scroll-label {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-white-50);
  animation: label-fade 3s ease-in-out infinite;
}
@keyframes label-fade {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}
/* Contenedor del indicador de scroll tipo "mouse" */
.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 11px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll-wheel {
  width: 2px;
  height: 6px;
  background: var(--c-accent-2);
  border-radius: 2px;
  animation: wheel-scroll 1.8s ease-in-out infinite;
}
@keyframes wheel-scroll {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  61%  { transform: translateY(0);   opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}
/* Flechas debajo del mouse */
.hero__scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero__scroll-arrows span {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--c-accent-2);
  border-bottom: 1.5px solid var(--c-accent-2);
  transform: rotate(45deg);
  animation: arrow-cascade 1.8s ease-in-out infinite;
}
.hero__scroll-arrows span:nth-child(2) { animation-delay: .15s; opacity: .6; }
.hero__scroll-arrows span:nth-child(3) { animation-delay: .30s; opacity: .3; }
@keyframes arrow-cascade {
  0%, 100% { opacity: inherit; }
  50%       { opacity: 1; }
}

/* ================================================
   SECTION REVEAL — clip-path slide-up
   Añadir clase .reveal-section a cada sección
================================================ */
.reveal-section {
  clip-path: inset(6% 0 0 0);
  opacity: 0;
  transform: translateY(30px);
  transition:
    clip-path .9s cubic-bezier(.16,1,.3,1),
    opacity   .8s cubic-bezier(.16,1,.3,1),
    transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal-section.revealed {
  clip-path: inset(0% 0 0 0);
  opacity: 1;
  transform: translateY(0);
}

/* Stagger entre secciones consecutivas */
.reveal-section:nth-child(2) { transition-delay: .05s; }
.reveal-section:nth-child(3) { transition-delay: .10s; }
.reveal-section:nth-child(4) { transition-delay: .15s; }

/* .services no usa opacity en el reveal — el overlay es siempre opaco */
.services.reveal-section,
.services.reveal-section.revealed {
  clip-path: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* ================================================
   SECTION IMAGE REVEAL — zoom-out + fade
   Aplica a todas las imágenes de sección excepto
   el hero principal (#inicio), que ya tiene su
   propia animación cinematográfica de salida.
================================================ */
.section-img-reveal {
  opacity: 0;
  transition:
    transform 1.8s cubic-bezier(.16,1,.3,1),
    opacity   1.0s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}
.section-img-reveal.img-visible {
  opacity: 1;
}

/* Servicios — solo zoom, sin desplazamiento lateral */
.services__hero-img.section-img-reveal {
  transform: scale(1.08);
}
.services__hero-img.img-visible {
  transform: scale(1.0);
}

/* Soluciones — paneo derecha → centro */
.solutions__hero-img.section-img-reveal {
  transform: scale(1.15) translateX(4%);
}
.solutions__hero-img.img-visible {
  transform: scale(1.06) translateX(0);
}

/* Proyectos — paneo izquierda → centro */
.projects__hero-img.section-img-reveal {
  transform: scale(1.15) translateX(-4%);
}
.projects__hero-img.img-visible {
  transform: scale(1.06) translateX(0);
}

/* Nosotros — paneo derecha → centro */
.about__hero-img.section-img-reveal {
  transform: scale(1.15) translateX(4%);
}
.about__hero-img.img-visible {
  transform: scale(1.06) translateX(0);
}

/* Contacto — solo zoom, sin desplazamiento lateral */
.contact__hero-img.section-img-reveal {
  transform: scale(1.18);
}
.contact__hero-img.img-visible {
  transform: scale(1);
}

/* ================================================
   HERO BG — will-change para GPU
================================================ */
.hero__bg-img {
  will-change: transform;
}

/* ================================================
   SCROLL PROGRESS BAR
================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
  z-index: 200;
  transition: width .1s linear;
}

/* ================================================
   FOOTER EJECUTIVO
================================================ */
.site-footer {
  background: var(--c-navy);
  border-top: 1px solid var(--c-line);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(15,163,224,.16), transparent 70%);
  pointer-events: none;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-line);
}

.site-footer__logo { display: inline-flex; align-items: center; margin-bottom: 18px; }
.site-footer__logo-img { height: 36px; width: auto; }
.site-footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.site-footer__tagline {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--c-white-70);
  max-width: 320px;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 20px;
}
.site-footer__list { display: flex; flex-direction: column; gap: 12px; }
.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  color: var(--c-white-70);
  transition: color .2s var(--ease-std);
}
.site-footer__list a svg { width: 15px; height: 15px; flex-shrink: 0; }
.site-footer__list a:hover { color: var(--c-accent-2); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  font-size: .82rem;
  color: var(--c-white-50);
}
.site-footer__back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-white-70);
  cursor: pointer;
  transition: border-color .25s var(--ease-std), color .25s var(--ease-std), transform .25s var(--ease-std);
}
.site-footer__back-top svg { width: 16px; height: 16px; }
.site-footer__back-top:hover {
  color: var(--c-accent-2);
  border-color: var(--c-accent-2);
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 640px) {
  .site-footer__top { grid-template-columns: 1fr; padding-bottom: 36px; }
  .site-footer__bottom { flex-direction: column; gap: 14px; text-align: center; padding: 20px 24px; }
}

/* ================================================
   SECCIÓN SERVICIOS
================================================ */
.services {
  background: var(--c-navy-dark);
}

/* Mini-hero con imagen + overlay, misma dinámica visual del hero principal */
.services__hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.services__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0;
  transition: transform 1.8s cubic-bezier(.16,1,.3,1), opacity 1.0s cubic-bezier(.16,1,.3,1);
}
.services__hero-img.img-visible {
  opacity: 1;
}
.services__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-navy-dark) 0%, rgba(7,21,38,.55) 40%, rgba(7,21,38,.85) 80%, var(--c-navy-dark) 100%);
  will-change: opacity;
}
.services__hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 32px;
  max-width: 720px;
}
.services__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 14px;
}
.services__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--c-white);
  margin-bottom: 18px;
}
.services__subtitle {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-white-70);
  max-width: 560px;
}

/* Grid de tarjetas */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 56px 32px 72px;
}
.service-card {
  background: var(--c-navy);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 32px 26px;
  transition: transform .3s var(--ease-std), border-color .3s var(--ease-std), background .3s var(--ease-std);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-accent-2);
  background: var(--c-navy-light, #102a4a);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(15,163,224,.12);
  color: var(--c-accent-2);
  margin-bottom: 20px;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--c-white);
  margin-bottom: 10px;
}
.service-card p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--c-white-70);
}

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .services__hero { min-height: 46vh; }
  .services__hero-content { padding: 48px 24px; }
  .services__grid { grid-template-columns: 1fr; padding: 40px 24px 56px; }
}

/* ═══════════════════════════════════════════════════════
   CATÁLOGO COMPLETO DE SERVICIOS (acordeón por categoría)
═══════════════════════════════════════════════════════ */
.catalog {
  background: var(--c-navy-dark);
  padding: 8px 0 88px;
  border-top: 1px solid var(--c-line);
}
.catalog__header {
  max-width: 720px;
  padding: 64px 32px 8px;
}
.catalog__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 14px;
}
.catalog__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.16;
  color: var(--c-white);
  margin-bottom: 16px;
}
.catalog__subtitle {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-white-70);
  max-width: 600px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 40px 32px 0;
}

/* ── Tarjeta de categoría (acordeón nativo <details>) ── */
.catalog-category {
  background: var(--c-navy);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 4px 4px;
  transition: border-color .3s var(--ease-std);
}
.catalog-category[open],
.catalog-category:hover {
  border-color: rgba(15,163,224,.4);
}

.catalog-category__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  cursor: pointer;
  list-style: none;
}
.catalog-category__head::-webkit-details-marker { display: none; }

.catalog-category__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(15,163,224,.12);
  color: var(--c-accent-2);
}
.catalog-category__icon svg { width: 22px; height: 22px; }

.catalog-category__heading { flex: 1 1 auto; min-width: 0; }
.catalog-category__heading h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .005em;
  color: var(--c-white);
  margin-bottom: 4px;
}
.catalog-category__heading p {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--c-white-70);
}

.catalog-category__count {
  flex: none;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  background: rgba(15,163,224,.1);
  border: 1px solid rgba(15,163,224,.3);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.catalog-category__chevron {
  flex: none;
  display: inline-flex;
  color: var(--c-white-50);
  transition: transform .3s var(--ease-std);
}
.catalog-category__chevron svg { width: 18px; height: 18px; }
.catalog-category[open] .catalog-category__chevron { transform: rotate(180deg); }

.catalog-category__list {
  list-style: none;
  padding: 4px 22px 22px 86px;
  display: flex;
  flex-direction: column;
}
.catalog-category__list li {
  position: relative;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--c-white-70);
  padding: 10px 0 10px 20px;
  border-top: 1px solid var(--c-line);
  transition: color .2s var(--ease-std);
}
.catalog-category__list li:first-child { border-top: 1px solid var(--c-line); }
.catalog-category__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c-accent-2);
  transform: rotate(45deg);
  opacity: .8;
}
.catalog-category__list li:hover {
  color: var(--c-white);
}

.catalog__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  padding: 56px 32px 0;
}
.catalog__cta p {
  font-size: 1rem;
  color: var(--c-white-70);
}

@media (max-width: 900px) {
  .catalog__grid { grid-template-columns: 1fr; padding: 32px 24px 0; }
  .catalog__header { padding: 56px 24px 8px; }
  .catalog-category__list { padding-left: 22px; }
}
@media (max-width: 560px) {
  .catalog-category__head { flex-wrap: wrap; padding: 20px; }
  .catalog-category__count { order: 1; margin-left: 64px; }
  .catalog-category__chevron { position: absolute; right: 20px; top: 22px; }
  .catalog-category { position: relative; }
  .catalog__cta { padding: 48px 24px 0; }
}

/* ═══════════════════════════════════════════════════════
   SECCIÓN SOLUCIONES — espeja la arquitectura de .services
═══════════════════════════════════════════════════════ */
.solutions {
  background: var(--c-navy-dark);
}

.solutions__hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.solutions__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.solutions__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-navy-dark) 0%, rgba(7,21,38,.60) 12%, rgba(7,21,38,.75) 65%, var(--c-navy-dark) 100%),
    linear-gradient(90deg, rgba(7,21,38,.70) 0%, rgba(7,21,38,.10) 60%);
}
.solutions__hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 32px;
  max-width: 720px;
}
.solutions__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 14px;
}
.solutions__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--c-white);
  margin-bottom: 18px;
}
.solutions__subtitle {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-white-70);
  max-width: 560px;
}

/* Grid de tarjetas — 3 columnas (6 cards = 2 filas limpias) */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 32px 72px;
}

/* ── Tarjeta con efecto flip (frente / reverso) ── */
.solution-card {
  position: relative;
  min-height: 280px;
  perspective: 1400px;
  cursor: pointer;
}
.solution-card--featured { grid-column: span 2; }

.solution-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.solution-card.is-flipped .solution-card__inner {
  transform: rotateY(180deg);
}

.solution-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--c-navy);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 32px 26px;
  transition: border-color .3s var(--ease-std), background .3s var(--ease-std);
}
.solution-card:hover .solution-card__face {
  border-color: var(--c-accent-2);
  background: var(--c-navy-light, #102a4a);
}
.solution-card--featured .solution-card__face--front {
  background: linear-gradient(135deg, rgba(15,163,224,.10) 0%, var(--c-navy) 60%);
  border-color: rgba(15,163,224,.3);
}
.solution-card__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(15,163,224,.14) 0%, var(--c-navy) 65%);
  border-color: rgba(15,163,224,.35);
  justify-content: center;
}

.solution-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(15,163,224,.12);
  color: var(--c-accent-2);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.solution-card__icon svg { width: 26px; height: 26px; }
.solution-card__face h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--c-white);
  margin-bottom: 10px;
}
.solution-card__face p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--c-white-70);
}
.solution-card__hint {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  opacity: .75;
}

@media (max-width: 1024px) {
  .solutions__grid { grid-template-columns: 1fr 1fr; }
  .solution-card--featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .solutions__hero { min-height: 46vh; }
  .solutions__hero-content { padding: 48px 24px; }
  .solutions__grid { grid-template-columns: 1fr; padding: 40px 24px 56px; }
  .solution-card--featured { grid-column: span 1; }

  /* FIX MOBILE: .solution-card__face es position:absolute (inset:0),
     por lo que NO empuja la altura del padre .solution-card. En mobile
     el card es más angosto (1 columna) y el texto se envuelve en más
     líneas que en desktop, desbordando el contenido fuera del box de
     280px original — por eso "TAP FOR MORE INFORMATION" aparecía
     cortado/flotando fuera del borde de la tarjeta.
     320px es lo justo para que la tarjeta más larga (card1, "360°
     Coordination", ~165 caracteres de desc) quepa sin desbordar, sin
     dejar hueco vacío en las tarjetas de texto corto (card5, etc). */
  .solution-card {
    min-height: 320px;
  }
  .solution-card__face {
    padding: 24px 20px;
  }
}

/* ═══════════════════════════════════════════════════════
   SECCIÓN PROYECTOS — Portafolio profesional
   Estándar industria: hero + filtros + grid con métricas
   + estadísticas globales + CTA
═══════════════════════════════════════════════════════ */

.projects {
  background: var(--c-navy-dark);
}

/* ── Mini-hero ── */
.projects__hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.projects__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.projects__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-navy-dark) 0%, rgba(7,21,38,.50) 10%, rgba(7,21,38,.68) 65%, var(--c-navy-dark) 100%),
    linear-gradient(90deg, rgba(7,21,38,.70) 0%, rgba(7,21,38,.05) 65%);
}
.projects__hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 32px;
  max-width: 720px;
}
.projects__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 14px;
}
.projects__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--c-white);
  margin-bottom: 18px;
}
.projects__subtitle {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-white-70);
  max-width: 540px;
}

/* ── Estadísticas globales ── */
.projects__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.pstat {
  position: relative;
  background: var(--c-navy);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 44px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: transform .35s var(--ease-std), border-color .35s var(--ease-std), box-shadow .35s var(--ease-std);
}
.pstat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent-2), transparent);
  opacity: .55;
}
.pstat:hover {
  transform: translateY(-6px);
  border-color: rgba(15,163,224,.45);
  box-shadow: 0 24px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(15,163,224,.12);
}
.pstat__icon-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(15,163,224,.18) 0%, rgba(15,163,224,.04) 70%);
  border: 1px solid rgba(15,163,224,.25);
  margin-bottom: 20px;
  transition: transform .35s var(--ease-std);
}
.pstat:hover .pstat__icon-wrap {
  transform: scale(1.08);
}
.pstat__icon {
  width: 28px;
  height: 28px;
  color: var(--c-accent-2);
}
.pstat__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--c-accent-2);
  line-height: 1;
}
.pstat__num--text {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.pstat__prefix,
.pstat__suffix {
  font-size: .65em;
  opacity: .85;
}
.pstat__divider {
  width: 28px;
  height: 2px;
  background: rgba(15,163,224,.4);
  margin: 16px 0 14px;
}
.pstat__label {
  font-size: .82rem;
  color: var(--c-white-70);
  letter-spacing: .04em;
}

/* ── Pstat con efecto flip (Entregas a tiempo) ── */
.pstat--flip {
  perspective: 1400px;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}
.pstat--flip::before { display: none; }
.pstat--flip:hover { transform: none; box-shadow: none; }

.pstat__flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.pstat--flip.is-flipped .pstat__flip-inner {
  transform: rotateY(180deg);
}

.pstat__flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--c-navy);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 44px 24px 36px;
  transition: border-color .35s var(--ease-std), box-shadow .35s var(--ease-std), transform .35s var(--ease-std);
}
.pstat--flip:hover .pstat__flip-face--front {
  transform: translateY(-6px);
  border-color: rgba(15,163,224,.45);
  box-shadow: 0 24px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(15,163,224,.12);
}
.pstat__flip-face--front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent-2), transparent);
  opacity: .55;
}
.pstat__flip-face--back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(15,163,224,.14) 0%, var(--c-navy) 65%);
  border-color: rgba(15,163,224,.35);
  padding: 32px 26px;
}
.pstat__flip-text {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--c-white-70);
}

/* ── CTA — panel con efecto de luz ── */
.projects__cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 56px;
  margin-bottom: 96px;
  padding: 48px 44px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15,163,224,.10) 0%, var(--c-navy) 65%);
  border: 1px solid rgba(15,163,224,.25);
  overflow: hidden;
}
.projects__cta-glow {
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(15,163,224,.22) 0%, transparent 70%);
  pointer-events: none;
}
.projects__cta-text {
  position: relative;
  z-index: 1;
  max-width: 440px;
}
.projects__cta-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 8px;
}
.projects__cta-text p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--c-white-70);
}
.projects__cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .projects__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .projects__hero { min-height: 46vh; }
  .projects__hero-content { padding: 48px 24px; }
  .projects__stats { grid-template-columns: repeat(2, 1fr); margin: 40px 24px 0; }
  .projects__cta-panel { margin: 40px 24px 72px; padding: 36px 28px; flex-direction: column; align-items: flex-start; }

  /* FIX MOBILE: el reverso de la stat flip ("On-time delivery") tiene
     un párrafo largo que en columnas angostas se envuelve en muchas
     líneas y se desborda del contenedor absolute inset:0 (misma causa
     que el bug de las solution-cards). Se reduce el texto del reverso
     y se da algo más de alto al contenedor para que quepan tanto el
     frente (ícono + número) como el reverso (texto) sin dejar huecos
     grandes en ninguno de los dos estados. */
  .pstat__flip-inner {
    min-height: 320px;
  }
  .pstat__flip-face--front {
    justify-content: flex-start;
  }
  .pstat__flip-face--back {
    padding: 22px 18px;
  }
  .pstat__flip-text {
    font-size: .76rem;
    line-height: 1.45;
  }
}

/* ═══════════════════════════════════════════════════════
   SECCIÓN NOSOTROS
═══════════════════════════════════════════════════════ */
.about {
  background: var(--c-navy-dark);
}

.about__hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.about__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Desatura la foto original para alinearla a la paleta navy/cian
     de la marca, en vez de dejar los tonos cálidos del atardecer
     compitiendo con el resto del sitio. */
  filter: grayscale(.55) brightness(.62) contrast(1.1);
}
.about__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-navy-dark) 0%, rgba(7,21,38,.55) 14%, rgba(7,21,38,.72) 65%, var(--c-navy-dark) 100%),
    linear-gradient(90deg, rgba(7,21,38,.85) 0%, rgba(7,21,38,.25) 55%, rgba(7,21,38,.65) 100%);
}
.about__hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 32px 56px;
  max-width: 760px;
}
.about__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 16px;
}
.about__eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--c-accent-2);
}
.about__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: 18px;
}
.about__subtitle {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-white-70);
  max-width: 560px;
}

/* ── Franja de credenciales corporativas ── */
.about__credentials {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.about__credentials li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,.16);
}
.about__credentials li:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.about__credentials-label {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-white-50);
}
.about__credentials-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-white);
}

/* Cuerpo: historia + valores */
.about__body {
  display: grid;
  grid-template-columns: .95fr 1.15fr;
  gap: 72px;
  padding: 88px 32px 96px;
  align-items: start;
}
.about__story-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 20px;
}
.about__story-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.45;
  color: var(--c-white);
  padding-left: 18px;
  border-left: 2px solid var(--c-accent-2);
  margin-bottom: 24px;
}
.about__story p {
  font-size: .98rem;
  line-height: 1.8;
  color: var(--c-white-70);
  margin-bottom: 16px;
}
.about__story p:last-child { margin-bottom: 0; }

.about__values {
  display: flex;
  flex-direction: column;
}
.value-row {
  display: grid;
  grid-template-columns: 40px 52px 1fr;
  align-items: start;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--c-line);
  transition: padding-left .35s var(--ease-std), border-color .35s var(--ease-std);
}
.about__values .value-row:last-child {
  border-bottom: 1px solid var(--c-line);
}
.value-row:hover {
  padding-left: 10px;
  border-color: rgba(15,163,224,.4);
}
.value-row__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(255,255,255,.28);
  transition: color .35s var(--ease-std);
}
.value-row:hover .value-row__index {
  color: var(--c-accent-2);
}
.value-row__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  color: var(--c-accent-2);
  flex-shrink: 0;
  transition: border-color .35s var(--ease-std), background .35s var(--ease-std);
}
.value-row:hover .value-row__icon {
  border-color: var(--c-accent-2);
  background: rgba(15,163,224,.1);
}
.value-row__icon svg { width: 20px; height: 20px; }
.value-row__text h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 6px;
}
.value-row__text p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--c-white-70);
}

@media (max-width: 1024px) {
  .about__body { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .about__hero { min-height: auto; }
  .about__hero-content { padding: 72px 24px 40px; }
  .about__credentials { flex-direction: column; gap: 16px; margin-top: 32px; }
  .about__credentials li {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .about__credentials li:last-child { border-bottom: none; padding-bottom: 0; }
  .about__body { padding: 56px 24px 64px; }
  .about__story-lead { font-size: 1.18rem; }
  .value-row { grid-template-columns: 32px 42px 1fr; gap: 14px; padding: 24px 0; }
}

/* ═══════════════════════════════════════════════════════
   SECCIÓN CONTACTO
═══════════════════════════════════════════════════════ */
.contact {
  background: var(--c-navy-dark);
}
.contact__hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 0;
}
.contact__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.contact__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-navy-dark) 0%, rgba(7,21,38,.55) 12%, rgba(7,21,38,.72) 65%, var(--c-navy-dark) 100%),
    radial-gradient(ellipse 820px 640px at 18% 55%, rgba(7,21,38,.18) 0%, rgba(7,21,38,.6) 45%, rgba(7,21,38,.92) 75%);
}

/* Contenedor: grid de 2 columnas con proporción fija (no flex-wrap
   automático), así nunca queda un estado intermedio desbalanceado
   entre el breakpoint mobile y el desktop completo. */
.contact__hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.contact__hero-content--split {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}
.contact__hero-text {
  display: flex;
  flex-direction: column;
}
.contact__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 14px;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.15;
  color: var(--c-white);
  margin-bottom: 18px;
}
.contact__subtitle {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-white-70);
  margin-bottom: 28px;
}
.contact__subtitle strong { color: var(--c-white); }

/* ── Lista de datos de contacto (teléfono / oficina) ── */
.contact__info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact__info-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(15,163,224,.14);
  color: var(--c-accent-2);
}
.contact__info-icon svg { width: 18px; height: 18px; }
.contact__info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}
.contact__info-label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-white-50);
}
.contact__info-text a,
.contact__info-text span:not(.contact__info-label) {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-white);
  text-decoration: none;
}
.contact__info-text a:hover { color: var(--c-accent-2); }

.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.contact__actions .btn { min-width: 200px; }

/* Tablet: la tarjeta pasa debajo del texto, columna única centrada
   (rompe el grid en vez de dejarlo "a medio camino" como antes). */
@media (max-width: 900px) {
  .contact__hero { padding: 72px 0; }
  .contact__hero-overlay {
    background:
      linear-gradient(180deg, var(--c-navy-dark) 0%, rgba(7,21,38,.55) 12%, rgba(7,21,38,.72) 65%, var(--c-navy-dark) 100%),
      radial-gradient(ellipse 820px 640px at 50% 40%, rgba(7,21,38,.18) 0%, rgba(7,21,38,.6) 45%, rgba(7,21,38,.92) 75%);
  }
  .contact__hero-content--split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact__hero-text { text-align: center; align-items: center; }
  .contact__subtitle { max-width: 560px; }
  .contact__info-list { align-items: center; }
  .contact__info-item { text-align: left; width: 100%; max-width: 360px; }
  .contact__actions { justify-content: center; }
  .contact-card { max-width: 520px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .contact__hero { padding: 56px 0; }
  .contact__hero-content { padding: 0 24px; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }
}

/* ── Tarjeta de formulario de correo ── */
.contact-card {
  width: 100%;
  background: linear-gradient(160deg, rgba(26,110,187,.16), rgba(7,21,38,.78));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: clamp(26px, 3vw, 36px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.contact-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-card__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(15,163,224,.18);
  color: var(--c-accent-2);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
}
.contact-card__subtitle {
  font-size: .84rem;
  color: var(--c-white-50);
  margin-top: 2px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-width: 0;
}
@media (max-width: 480px) {
  .contact-form__row { grid-template-columns: 1fr; }
}
.contact-form__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.contact-form__field label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-white-70);
}
.contact-form__field label span {
  text-transform: none;
  font-weight: 400;
  color: var(--c-white-50);
  letter-spacing: normal;
}
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-white);
  background: rgba(7,21,38,.55);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  padding: 13px 15px;
  outline: none;
  line-height: 1.45;
  transition: border-color .2s, background .2s, box-shadow .2s;
  resize: vertical;
}
.contact-form__field textarea { min-height: 110px; }
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: var(--c-white-50); }
.contact-form__field input:hover,
.contact-form__field textarea:hover { border-color: rgba(255,255,255,.3); }
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--c-accent-2);
  background: rgba(7,21,38,.7);
  box-shadow: 0 0 0 3px rgba(15,163,224,.2);
}
.contact-form__honeypot { display: none; }
.contact-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 14px 24px;
}
.contact-form__submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.contact-form__status {
  font-size: .85rem;
  min-height: 1.2em;
  text-align: center;
}
.contact-form__status--ok { color: #4ADE80; }
.contact-form__status--error { color: #F87171; }

/* ── FAB (botón flotante) ── */
.pv-chat-fab {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-navy) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26,110,187,.45), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  outline: none;
}
.pv-chat-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(15,163,224,.35);
  animation: pvFabPulse 3.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pvFabPulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}
.pv-chat-fab:hover  { transform: scale(1.08); box-shadow: 0 6px 28px rgba(26,110,187,.55), 0 2px 10px rgba(0,0,0,.4); }
.pv-chat-fab:active { transform: scale(.96); }

/* Íconos del FAB */
.pv-chat-fab__ico {
  width: 22px; height: 22px;
  position: absolute;
  transition: opacity .2s, transform .2s;
}
.pv-chat-fab__ico--chat { opacity: 1;  transform: rotate(0deg) scale(1); }
.pv-chat-fab__ico--x   { opacity: 0;  transform: rotate(-45deg) scale(.6); }

.pv-chat-fab.is-open .pv-chat-fab__ico--chat { opacity: 0;  transform: rotate(45deg) scale(.6); }
.pv-chat-fab.is-open .pv-chat-fab__ico--x   { opacity: 1;  transform: rotate(0deg) scale(1); }
.pv-chat-fab.is-open::before { animation: none; opacity: 0; }

/* Badge de notificación */
.pv-chat-fab__badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-accent-2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body, 'Inter', sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-navy-dark);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.pv-chat-fab__badge.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* ── PANEL PRINCIPAL ── */
.pv-chat {
  position: fixed;
  bottom: calc(1.6rem + 56px + 12px);
  right: 1.6rem;
  z-index: 8999;
  width: 360px;
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--c-navy-dark);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.7), 0 4px 16px rgba(0,0,0,.5);
  /* Estado inicial: oculto */
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .25s, transform .25s cubic-bezier(.34,1.2,.64,1);
  transform-origin: bottom right;
}
.pv-chat.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── HEADER ── */
.pv-chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-dark) 100%);
  border-bottom: 1px solid var(--c-line);
  flex-shrink: 0;
  overflow: hidden;
}
.pv-chat__hdr-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(15,163,224,.14);
  border: 2px solid rgba(15,163,224,.45);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pv-chat__hdr-av-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.pv-chat__hdr-av svg { width: 20px; height: 20px; }
.pv-chat__hdr-info { flex: 1; min-width: 0; }
.pv-chat__hdr-name {
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.pv-chat__hdr-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--c-white-50);
  margin-top: 2px;
}
.pv-chat__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
}
.pv-chat__hdr-x {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.pv-chat__hdr-x:hover { background: rgba(255,255,255,.12); }
.pv-chat__hdr-x svg { width: 14px; height: 14px; }

/* ── MENSAJES ── */
.pv-chat__messages {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--c-navy-dark);
  scroll-behavior: smooth;
}
.pv-chat__messages::-webkit-scrollbar { width: 4px; }
.pv-chat__messages::-webkit-scrollbar-track { background: transparent; }
.pv-chat__messages::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 2px; }

/* Spacer para empujar mensajes hacia abajo cuando hay pocos */
.pv-chat__spacer { flex: 1; }

/* Fila de mensaje */
.pv-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.pv-row--bot  { flex-direction: row; }
.pv-row--user { flex-direction: row-reverse; }

/* Avatar */
.pv-av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pv-row--bot  .pv-av { background: rgba(15,163,224,.12); border: 1px solid rgba(15,163,224,.3); }
.pv-row--user .pv-av { background: var(--c-white-10); border: 1px solid var(--c-white-20); }
.pv-av svg { width: 13px; height: 13px; }
.pv-row--bot  .pv-av svg { fill: var(--c-accent-2); }
.pv-row--user .pv-av svg { fill: var(--c-white-50); }
.pv-av-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Columna del mensaje */
.pv-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: calc(100% - 40px);
}
.pv-row--user .pv-col { align-items: flex-end; }
.pv-row--bot  .pv-col { align-items: flex-start; }

/* Burbuja */
.pv-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 9px 13px;
  font-size: 13px;
  font-family: var(--font-body, 'Inter', sans-serif);
  line-height: 1.55;
  border-radius: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.pv-row--bot .pv-bubble {
  background: rgba(255,255,255,.05);
  color: var(--c-white);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--c-line);
}
.pv-row--user .pv-bubble {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  color: #fff;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* Timestamp */
.pv-ts {
  font-size: 10px;
  color: var(--c-white-20);
  margin-top: 3px;
  padding: 0 2px;
}
.pv-row--user .pv-ts { text-align: right; }

/* Efecto typing (3 puntos) */
.pv-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.pv-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(15,163,224,.65);
  animation: pvTyping .9s ease-in-out infinite;
}
.pv-typing span:nth-child(2) { animation-delay: .15s; }
.pv-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes pvTyping {
  0%, 60%, 100% { transform: translateY(0);    opacity: .5; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Animación de entrada de burbuja */
@keyframes pvBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pv-bubble-anim { animation: pvBubbleIn .22s ease-out forwards; }

/* ── QUICK REPLIES ── */
.pv-chat__quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--c-navy-dark);
  border-top: 1px solid var(--c-line);
  flex-shrink: 0;
}
.pv-chat__qr {
  font-size: 11px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 20px;
  border: 1px solid rgba(15,163,224,.35);
  background: rgba(15,163,224,.08);
  color: var(--c-accent-2);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.pv-chat__qr:hover {
  background: rgba(15,163,224,.2);
  border-color: rgba(15,163,224,.7);
  color: var(--c-white);
}

/* ── INPUT BAR ── */
.pv-chat__bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  background: var(--c-navy);
  border-top: 1px solid var(--c-line);
  flex-shrink: 0;
}
.pv-chat__input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 100px;
  resize: none;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font-body, 'Inter', sans-serif);
  color: var(--c-white);
  background: var(--c-navy-dark);
  outline: none;
  line-height: 1.5;
  transition: border-color .2s;
  overflow-y: auto;
}
.pv-chat__input::placeholder { color: var(--c-white-20); }
.pv-chat__input:focus { border-color: rgba(15,163,224,.5); }

.pv-chat__send {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(15,163,224,.3);
}
.pv-chat__send:hover  { transform: scale(1.06); box-shadow: 0 4px 14px rgba(15,163,224,.45); }
.pv-chat__send:active { transform: scale(.94); }
.pv-chat__send svg { width: 15px; height: 15px; }

/* Footer del panel */
.pv-chat__foot {
  text-align: center;
  font-size: 10px;
  color: var(--c-white-20);
  padding: 3px 0 7px;
  background: var(--c-navy);
  font-family: var(--font-body, 'Inter', sans-serif);
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  .pv-chat {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: calc(1rem + 56px + 10px);
    max-height: 70vh;
  }
  .pv-chat-fab { bottom: 1rem; right: 1rem; }
}

/* ── SELECTOR DE MODO DE CONVERSACIÓN ── */
.pv-chat__modes {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: var(--c-navy-dark);
  border-bottom: 1px solid var(--c-line);
  flex-shrink: 0;
}
.pv-chat__mode {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .5rem .5rem;
  border-radius: 8px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-white-50);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .18s, border-color .18s, color .18s;
}
.pv-mode__ico {
  width: 13px !important;
  height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .18s;
  display: block;
}
.pv-chat__mode:hover {
  border-color: rgba(15,163,224,.5);
  color: var(--c-white);
}
.pv-chat__mode:hover .pv-mode__ico { opacity: 1; }
.pv-chat__mode.is-active {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  border-color: transparent;
  color: #fff;
}
.pv-chat__mode.is-active .pv-mode__ico { opacity: 1; }

/* ── SELECTOR DE IDIOMA ── */
.pv-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 2px 4px;
  flex-shrink: 0;
  margin-right: 6px;
}
.pv-lang__btn {
  background: transparent;
  border: none;
  color: var(--c-white-50);
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .18s, color .18s;
  line-height: 1;
}
.pv-lang__btn:hover {
  color: var(--c-white);
  background: rgba(255,255,255,.08);
}
.pv-lang__btn.is-active {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #fff;
}
.pv-lang__sep {
  color: rgba(255,255,255,.2);
  font-size: 10px;
  line-height: 1;
  user-select: none;
}

/* ── TARJETA DE CONTACTO (estilo "contacto compartido") ── */
.pv-contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--c-line);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .15s;
}
.pv-contact-card:hover {
  border-color: rgba(15,163,224,.5);
  background: rgba(15,163,224,.08);
  transform: translateY(-1px);
}
.pv-contact-card__ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,163,224,.15);
  color: var(--c-accent-2);
}
.pv-contact-card__ico svg { width: 16px; height: 16px; }
.pv-contact-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pv-contact-card__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-white);
  font-family: var(--font-body, 'Inter', sans-serif);
}
.pv-contact-card__phone {
  font-size: 11.5px;
  color: var(--c-white-50);
  font-family: var(--font-body, 'Inter', sans-serif);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pv-contact-card__action {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  padding: 6px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ── ACCESIBILIDAD ── */
@media (prefers-reduced-motion: reduce) {
  .pv-chat-fab::before,
  .pv-typing span { animation: none; }
  .pv-chat { transition: none; }
  .pv-bubble-anim { animation: none; }
}
/* ================================================
   FIN CHATBOT WIDGET
================================================ */

