/* ==========================================================================
   PALETA DE COLORES OFICIAL VANTIA & CONFIGURACIÓN BASE
   ========================================================================== */
:root {
  --teal-primario: #0F6E56;
  --coral-acento: #D85A30;
  --grafito: #2C2C2A;
  --blanco-calido: #FAFAF8;
  --gris-suave: #F4F4F2;
  --fuente-sistema: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fuente-titulares: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--fuente-sistema);
  color: var(--grafito);
  margin: 0;
  background-color: var(--blanco-calido);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 110px; /* Compensa la altura del header flotante de dos niveles */
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--fuente-titulares);
  font-weight: 500;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
}

/* ==========================================================================
   CABECERA FLOTANTE DE DOBLE NIVEL
   ========================================================================== */
.header-flotante-completo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--blanco-calido);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 4px 20px rgba(44, 44, 42, 0.05);
}

.top-bar-anuncio {
  background-color: var(--teal-primario);
  color: var(--blanco-calido);
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 500;
  transition: margin-top 0.3s ease;
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.badge-live {
  background-color: rgba(250, 250, 248, 0.2);
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.anuncio-texto {
  margin: 0;
}

.btn-top-cta {
  color: var(--blanco-calido);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-top-cta:hover {
  opacity: 0.9;
}

.main-navbar {
  border-bottom: 1px solid rgba(44, 44, 42, 0.06);
  padding: 14px 0;
  background-color: var(--blanco-calido);
}

.main-navbar .container {
  max-width: 1280px;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.brand-wrapper-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.logo-nav {
  width: 30px;
  height: 30px;
  display: block;
}

.brand-name-nav {
  font-family: var(--fuente-sistema);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--teal-primario);
  letter-spacing: -0.02em;
}

.sticky-nav a {
  color: var(--grafito);
  margin: 0 9px;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.sticky-nav a:hover, 
.sticky-nav a.active {
  color: var(--teal-primario);
}

/* ==========================================================================
   MEGA MENÚ — dropdown de Servicios
   ========================================================================== */
.nav-item-mega {
  position: relative;
  display: inline-block;
}

/* Opción A: Rellenar el espacio con un elemento invisible */
.nav-item-mega::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 22px; /* La misma altura del gap que pusiste en top: calc(100% + 22px) */
}

.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-caret {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.nav-item-mega:hover .nav-caret {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  /* Reducimos la distancia de la posición absoluta */
  top: 100%; 
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 820px;
  max-width: 92vw;
  background: var(--blanco-calido);
  border-radius: 16px;
  /* Añadimos un borde superior transparente que actúe como puente físico para el mouse */
  border: 1px solid rgba(44, 44, 42, 0.06);
  border-top: 15px solid transparent; 
  background-clip: padding-box; /* Evita que el fondo se pinte sobre el borde invisible */
  box-shadow: 0 24px 60px rgba(44, 44, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-item-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  display: flex;
  padding: 28px;
  gap: 28px;
}

.mega-col-list {
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(44, 44, 42, 0.08);
  padding-right: 24px;
}

.mega-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9A9A94;
  margin-bottom: 10px;
}

.mega-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--grafito);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega-list-item svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mega-list-item:hover {
  background: var(--gris-suave);
  color: var(--teal-primario);
}

.mega-list-item:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.mega-list-item-highlight {
  background: rgba(15, 110, 86, 0.07);
  color: var(--teal-primario);
  font-weight: 600;
}

.mega-list-item-highlight svg {
  opacity: 1;
}

.mega-col-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.mega-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  min-width: 0;
  transition: background 0.2s ease;
}

.mega-card:hover {
  background: var(--gris-suave);
}

.mega-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 110, 86, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mega-card-featured .mega-card-icon {
  background: var(--teal-primario);
}

.mega-card > div:last-child {
  min-width: 0;
}

.mega-card h4 {
  font-family: var(--fuente-titulares);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--grafito);
  margin: 0 0 3px 0;
  overflow-wrap: break-word;
}

.mega-card p {
  font-size: 0.78rem;
  color: #7A7A75;
  margin: 0;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-nav-secondary {
  color: var(--grafito);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.btn-nav-secondary:hover {
  background-color: var(--gris-suave);
}

.btn-nav-primary {
  background-color: var(--teal-primario);
  color: var(--blanco-calido);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.btn-nav-primary:hover {
  background-color: #0b5240;
}

.header-flotante-completo.compacto .top-bar-anuncio {
  margin-top: -40px;
}

/* ==========================================================================
   MENÚ HAMBURGUESA Y OFF-CANVAS MÓVIL
   ========================================================================== */
.menu-toggle {
  display: none; 
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--teal-primario);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001; 
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(15, 110, 86, 0.3); 
  transition: background-color 0.3s ease, transform 0.2s ease; 
}

.menu-toggle:hover {
  background-color: #0b5240;
  transform: scale(1.05);
}

.bar {
  display: block;
  width: 50%; 
  height: 2px;
  background-color: var(--blanco-calido); 
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 18, 0.55);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 82%;
  height: 100%;
  background-color: var(--grafito);
  color: var(--blanco-calido);
  z-index: 1000;
  transform: translateX(100%); 
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 90px;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Bloquea el scroll del body mientras el menú móvil está abierto */
body.mobile-menu-active {
  overflow: hidden;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li a {
  display: block;
  padding: 16px 24px;
  color: rgba(250, 250, 248, 0.85);
  font-weight: 500;
  border-bottom: 1px solid rgba(250, 250, 248, 0.05);
  transition: all 0.25s ease;
}

.mobile-menu li a:hover,
.mobile-menu a.active {
  background-color: rgba(15, 110, 86, 0.15);
  color: var(--blanco-calido);
  padding-left: 32px;
}

/* ==========================================================================
   HERO PRINCIPAL (ESTRUCTURA PREMIUM INTERACTIVA EN 2 COLUMNAS)
   ========================================================================== */
.hero {
  background-color: var(--blanco-calido);
  color: var(--grafito);
  padding: 80px 0 100px 0;
  border-bottom: 1px solid rgba(44, 44, 42, 0.06);
  position: relative;
  /* Fondo cuadriculado estilo blueprint tecnológico */
  background-image: 
    linear-gradient(rgba(15, 110, 86, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 110, 86, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

/* ==========================================================================
   HERO CARRUSEL — múltiples slides dentro del mismo header .hero
   ========================================================================== */
.hero-carousel-track {
  display: grid;
  transition: height 0.5s ease;
}

.hero-slide {
  grid-area: 1 / 1;
  align-self: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}

.hero-dot {
  width: 40px;
  height: 16px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.hero-dot-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(44, 44, 42, 0.15);
  overflow: hidden;
}

.hero-dot:hover .hero-dot-track {
  background: rgba(44, 44, 42, 0.28);
}

.hero-dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--teal-primario);
}

/* Solo el dot activo corre el relleno; sincronizado con AUTOPLAY_MS (6000ms) en main.js */
.hero-dot.is-active .hero-dot-fill {
  animation: heroDotProgress 6s linear forwards;
}

.hero-carousel-dots.is-paused .hero-dot-fill {
  animation-play-state: paused;
}

@keyframes heroDotProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Flechas de navegación manual del carrusel */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(250, 250, 248, 0.92);
  box-shadow: 0 4px 14px rgba(44, 44, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--grafito);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-carousel-arrow:hover {
  background: var(--teal-primario);
  color: var(--blanco-calido);
  transform: translateY(-50%) scale(1.06);
}

.hero-carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.hero-carousel-arrow-prev { left: 6px; }
.hero-carousel-arrow-next { right: 6px; }

@media (max-width: 900px) {
  .hero-carousel-arrow {
    display: none;
  }
}

/* Slide — Servicios */
.hero-slide-services {
  text-align: center;
}

.hero-slide-eyebrow {
  color: var(--coral-acento);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-slide-services h2 {
  font-size: 2.4rem;
  margin: 0 auto 14px;
  max-width: 640px;
}

.hero-slide-services > .container > p {
  color: rgba(44, 44, 42, 0.7);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.hero-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-service-card {
  background: #ffffff;
  border: 1px solid rgba(44, 44, 42, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.hero-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-primario);
  box-shadow: 0 12px 24px rgba(15, 110, 86, 0.1);
}

.hero-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(15, 110, 86, 0.08);
  margin-bottom: 18px;
}

.hero-service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.hero-service-card p {
  font-size: 0.92rem;
  color: rgba(44, 44, 42, 0.65);
  margin: 0 0 14px;
  line-height: 1.5;
}

.hero-service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-primario);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Slide — Marca */
.hero-slide-brand {
  align-items: center;
  text-align: center;
  position: relative;
  min-height: 460px;
}

.hero-brand-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-brand-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  opacity: 0.035;
}

.hero-brand-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-brand-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-brand-inner .badge-modulo {
  margin-bottom: 28px;
}

.hero-brand-logo {
  width: 168px;
  height: 168px;
  margin-bottom: 20px;
  filter: drop-shadow(0 16px 28px rgba(15, 110, 86, 0.28));
  animation: heroBrandFloat 5s ease-in-out infinite;
}

@keyframes heroBrandFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-brand-name {
  font-family: var(--fuente-titulares);
  font-size: 4rem;
  font-weight: 700;
  color: var(--grafito);
  letter-spacing: -1px;
  margin: 0 0 16px;
}

.hero-brand-slogan {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-primario);
  margin: 0 0 16px;
}

.hero-brand-sub {
  color: rgba(44, 44, 42, 0.65);
  max-width: 480px;
  margin: 0 auto;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-logo {
    animation: none;
  }
  .hero-dot.is-active .hero-dot-fill {
    animation: none;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero-services-grid {
    grid-template-columns: 1fr;
  }
  .hero-slide-services h2 {
    font-size: 1.8rem;
  }
  .hero-brand-logo {
    width: 110px;
    height: 110px;
  }
  .hero-brand-name {
    font-size: 2.6rem;
  }
  .hero-brand-watermark {
    width: 340px;
    height: 340px;
  }
}

.hero-left-column {
  text-align: left;
}

.badge-modulo {
  display: inline-block;
  background-color: rgba(15, 110, 86, 0.08);
  color: var(--teal-primario);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 25px 0;
  letter-spacing: -0.03em;
}

.hero h1 strong {
  font-weight: 600;
  color: var(--teal-primario);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(44, 44, 42, 0.85);
  line-height: 1.6;
  margin: 0 0 40px 0;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

.hero-buttons .btn {
  min-width: 200px;
  text-align: center;
}

/* MOCKUP INTERACTIVO Y TARJETAS FLOTANTES (EFECTO ASÍNCRONO) */
.hero-right-column {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 360px;
}

.dashboard-main-bg {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(44, 44, 42, 0.1);
  box-shadow: 0 20px 40px rgba(44, 44, 42, 0.06);
  width: 90%;
  height: 280px;
  position: absolute;
  bottom: 0;
  right: 0;
  overflow: hidden;
}

.dashboard-header-mock {
  background-color: var(--gris-suave);
  padding: 10px 15px;
  border-bottom: 1px solid rgba(44, 44, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-dots {
  width: 8px;
  height: 8px;
  background-color: #e5e5e5;
  border-radius: 50%;
  box-shadow: 12px 0 0 #e5e5e5, 24px 0 0 #e5e5e5;
}

.mock-title {
  font-size: 0.75rem;
  color: #999;
  margin-left: 35px;
  font-weight: 500;
}

.dashboard-body-mock {
  padding: 25px;
  position: relative;
}

.mock-chart-line {
  height: 12px;
  background-color: var(--gris-suave);
  border-radius: 2px;
  margin-bottom: 12px;
  width: 75%;
}

.mock-chart-line.text-short {
  width: 45%;
}

.mock-grid-lines {
  border-top: 1px dashed rgba(44, 44, 42, 0.05);
  margin-top: 30px;
  height: 50px;
  border-bottom: 1px dashed rgba(44, 44, 42, 0.05);
}

.floating-card {
  position: absolute;
  background: #ffffff;
  border-radius: 6px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 250px;
  box-shadow: 0 10px 30px rgba(44, 44, 42, 0.12);
  border: 1px solid rgba(44, 44, 42, 0.05);
  width: 260px;
  box-sizing: border-box;
}

.card-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.box-teal { background-color: rgba(15, 110, 86, 0.1); }
.box-coral { background-color: rgba(216, 90, 48, 0.1); }
.box-grafito { background-color: rgba(44, 44, 42, 0.08); }

.card-text-box h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grafito);
  white-space: nowrap;
}

.card-text-box p {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: #777;
  white-space: nowrap;
}

.card-uno {
  top: 10px;
  left: 0;
  animation: levitate-one 5s infinite ease-in-out;
}

.card-dos {
  top: 145px;
  left: -20px;
  animation: levitate-two 6s infinite ease-in-out;
}

.card-tres {
  bottom: 20px;
  right: -10px;
  animation: levitate-three 5.5s infinite ease-in-out;
}

/* ANIMACIONES DE LEVITACIÓN ASÍNCRONA */
@keyframes levitate-one {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes levitate-two {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes levitate-three {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   BOTONES CORPORATIVOS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 2px; 
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--teal-primario);
  color: var(--blanco-calido);
  border: 1px solid var(--teal-primario);
}

.btn-primary:hover {
  background-color: #0b5240;
  border-color: #0b5240;
}

.btn-secondary {
  background-color: transparent;
  color: var(--grafito);
  border: 2px solid var(--grafito);
}

.btn-secondary:hover {
  background-color: var(--grafito);
  color: var(--blanco-calido);
}

/* ==========================================================================
   BENEFICIOS Y SECCIÓN INTERMEDIA VIDEO-CTA
   ========================================================================== */
.benefits p, .calendar p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.benefits {
  padding: 90px 20px;
  background-color: var(--gris-suave);
  text-align: center;
}

.benefits h2 {
  color: var(--grafito);
}

.benefits > .container > p {
  color: #5B5B57;
}

.benefit-cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  margin-top: 48px;
}

.card {
  background-color: var(--blanco-calido);
  border-radius: 16px;
  border: 1px solid rgba(44, 44, 42, 0.06);
  box-shadow: 0 10px 30px rgba(44, 44, 42, 0.06);
  padding: 40px 32px;
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(44, 44, 42, 0.1);
}

.card-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(15, 110, 86, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.3rem;
}

.card h3 {
  font-family: var(--fuente-titulares);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-primario);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  color: #5B5B57;
  font-size: 0.97rem;
}

.video-hero-cta {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 50px 0;
  background: linear-gradient(135deg, var(--grafito) 0%, #1a3a32 55%, var(--teal-primario) 130%);
}

.video-hero-cta::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: 480px;
  height: 420px;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cline x1='20' y1='80' x2='80' y2='80' stroke='%23FAFAF8' stroke-width='6' stroke-linecap='round'/%3E%3Cline x1='20' y1='80' x2='50' y2='15' stroke='%23FAFAF8' stroke-width='6' stroke-linecap='round'/%3E%3Cline x1='80' y1='80' x2='50' y2='15' stroke='%23FAFAF8' stroke-width='6' stroke-linecap='round'/%3E%3Cline x1='20' y1='80' x2='50' y2='52' stroke='%23FAFAF8' stroke-width='4.5'/%3E%3Cline x1='80' y1='80' x2='50' y2='52' stroke='%23FAFAF8' stroke-width='4.5'/%3E%3Cline x1='50' y1='15' x2='50' y2='52' stroke='%23FAFAF8' stroke-width='4.5'/%3E%3Ccircle cx='50' cy='15' r='9' fill='%23FAFAF8'/%3E%3Ccircle cx='20' cy='80' r='9' fill='%23FAFAF8'/%3E%3Ccircle cx='80' cy='80' r='9' fill='%23FAFAF8'/%3E%3Ccircle cx='33' cy='42' r='7' fill='%23FAFAF8'/%3E%3Ccircle cx='50' cy='52' r='7' fill='%23FAFAF8'/%3E%3Ccircle cx='50' cy='80' r='7' fill='%23FAFAF8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

.video-content-overlay {
  position: relative;
  z-index: 3; 
  color: var(--blanco-calido); 
}

.video-content-overlay h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 300;
}

.video-content-overlay p {
  font-size: 1.15rem;
  margin-bottom: 35px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 250, 248, 0.9);
}

.video-content-overlay .btn-primary {
  background-color: transparent;
  border: 2px solid var(--blanco-calido); 
  color: var(--blanco-calido); 
}

.video-content-overlay .btn-primary:hover {
  background-color: var(--blanco-calido); 
  color: var(--grafito); 
}

/* ==========================================================================
   CALENDARIO Y TABLAS
   ========================================================================== */
.calendar {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--gris-suave); /* Cambiado a gris suave corporativo */
  border-top: 1px solid rgba(44, 44, 42, 0.04);
  border-bottom: 1px solid rgba(44, 44, 42, 0.04);
}

.calendar h2 {
  color: var(--grafito);
  margin-bottom: 10px;
}

.calendar p {
  color: rgba(44, 44, 42, 0.8);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  text-align: left;
  background-color: #ffffff; /* La tabla se mantiene blanca para resaltar sobre el gris */
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(44, 44, 42, 0.03); /* Sombra suave para dar volumen */
}

th, td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(44, 44, 42, 0.06);
}

th {
  background-color: var(--grafito);
  color: var(--blanco-calido);
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* Fila interactiva: sutil cambio al pasar el mouse por la tabla */
tbody tr:hover {
  background-color: rgba(15, 110, 86, 0.02);
}

td:last-child {
  color: var(--coral-acento);
  font-weight: 600;
}

.table-tier-link {
  color: var(--teal-primario);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(15, 110, 86, 0.3);
  transition: border-color 0.2s ease;
}

.table-tier-link:hover {
  border-color: var(--teal-primario);
}

/* Bloque de decisión — CTA posterior a la tabla comparativa */
.decision-cta {
  background-color: var(--blanco-calido);
  border: 0.5px solid rgba(44, 44, 42, 0.08);
  border-radius: 16px;
  padding: 44px 32px;
  max-width: 620px;
  margin: 0 auto;
}

.decision-cta-badge {
  display: inline-block;
  background-color: rgba(15, 110, 86, 0.08);
  color: var(--teal-primario);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.decision-cta h3 {
  font-family: var(--fuente-titulares);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--grafito);
  margin: 0 0 10px 0;
}

.decision-cta p {
  color: #5B5B57;
  font-size: 0.95rem;
  max-width: 460px;
  margin: 0 auto 28px auto;
}

.decision-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline {
  background-color: transparent;
  color: var(--teal-primario);
  border: 1.5px solid var(--teal-primario);
}

.btn-outline:hover {
  background-color: var(--teal-primario);
  color: var(--blanco-calido);
}

.decision-cta-note {
  display: block;
  font-size: 0.78rem;
  color: #9A9A94;
  margin-top: 20px;
}

/* ==========================================================================
   7. TESTIMONIALS (ESTILO BLUEPRINT TECNOLÓGICO COMO EL HERO)
   ========================================================================== */
.testimonials {
  background-color: var(--blanco-calido);
  padding: 90px 20px;
  text-align: center;
  position: relative;
  
  /* Replicamos exactamente la cuadrícula tecnológica del Hero */
  background-image: 
    linear-gradient(rgba(15, 110, 86, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 110, 86, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  
  border-top: 1px solid rgba(44, 44, 42, 0.06);
  border-bottom: 1px solid rgba(44, 44, 42, 0.06);
}

.testimonials h2 {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--grafito);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 45px;
}

.testimonial {
  background-color: #ffffff; /* Blanco puro para que flote sobre la cuadrícula */
  padding: 35px 30px;
  border-radius: 8px; /* Un poco más redondeado para un look más moderno */
  font-style: italic;
  text-align: left;
  
  /* Sombra y borde refinados para máxima legibilidad sobre el fondo sutil */
  box-shadow: 0 12px 30px rgba(44, 44, 42, 0.05); 
  border: 1px solid rgba(15, 110, 86, 0.08); /* Sutil toque verde en el borde */
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

/* Efecto sutil al pasar el cursor por encima */
.testimonial:hover {
  transform: translateY(-4px);
}

.testimonial strong {
  display: block;
  margin-top: 20px;
  color: var(--teal-primario);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   7.5 SECCIÓN PREGUNTAS FRECUENTES (ESTILO ACORDEÓN PREMIUM)
   ========================================================================== */
.faq-section {
  background-color: #ffffff; /* Fondo blanco liso para contrastar con la cuadrícula de arriba */
  padding: 90px 20px;
  font-family: var(--fuente-sistema);
}

.container-faq {
  max-width: 950px; /* Alineación y ancho elegante como tu referencia */
  margin: 0 auto;
}

.faq-header {
  text-align: left;
  margin-bottom: 50px;
}

.faq-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--teal-primario); /* Usando el color acento de Vantia */
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

/* Línea horizontal pequeña idéntica a tu muestra */
.faq-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 2px;
  background-color: var(--teal-primario);
}

.faq-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--grafito);
  letter-spacing: -0.03em;
  margin: 0;
}

/* Estructura del Acordeón */
.faq-accordion-wrapper {
  border-top: 1px solid rgba(44, 44, 42, 0.12);
}

.faq-item {
  border-bottom: 1px solid rgba(44, 44, 42, 0.12);
  transition: background-color 0.2s ease;
}

/* Quita la flecha nativa de los navegadores */
.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-trigger::-webkit-details-marker {
  display: none;
}

.faq-trigger h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--grafito);
  margin: 0;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

/* El control dinámico del símbolo '+' */
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Línea horizontal del '+' */
.faq-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--teal-primario);
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

/* Línea vertical del '+' */
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--teal-primario);
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}

/* Comportamiento cuando el acordeón se abre de manera nativa */
.faq-item[open] .faq-trigger h3 {
  color: var(--teal-primario);
}

/* Rotación o desaparición de la línea vertical para simular un '-' */
.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.faq-item[open] .faq-icon::before {
  transform: translateY(-50%) rotate(180deg);
}

/* Contenido oculto/desplegado */
.faq-content {
  padding-bottom: 30px;
  padding-right: 40px;
  animation: faq-fade-in 0.3s ease-out;
}

.faq-content p {
  font-size: 1rem;
  color: rgba(44, 44, 42, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* Efecto suave de aparición al abrir */
@keyframes faq-fade-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 15px;
  }
  .faq-header h2 {
    font-size: 1.8rem;
  }
  .faq-trigger h3 {
    font-size: 1.1rem;
    padding-right: 15px;
  }
  .faq-content {
    padding-right: 0;
  }
}

/* ==========================================================================
   8. FOOTER CORPORATIVO MULTICOLUMNA (LOOK CLARO & PREMIUM)
   ========================================================================== */
.main-footer-premium {
  background-color: var(--gris-suave); /* Fondo claro que contrasta con el Testimonial */
  padding: 80px 0 0 0;
  border-top: 1px solid rgba(44, 44, 42, 0.08);
  font-family: var(--fuente-sistema);
}

.footer-grid-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr; /* Réplica de proporciones de la imagen */
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 60px;
}

/* Columna de Marca */
.footer-col-brand {
  text-align: left;
}

.brand-wrapper-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.logo-footer {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-name-footer {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--teal-primario);
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(44, 44, 42, 0.75);
  line-height: 1.6;
  margin: 0 0 25px 0;
}

.footer-social-links {
  display: flex;
  gap: 15px;
}

.footer-social-links a {
  font-size: 0.88rem;
  color: var(--teal-primario);
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-social-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Columnas de Enlaces */
.footer-col-links {
  text-align: left;
}

.footer-col-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grafito);
  letter-spacing: 0.08em;
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.footer-col-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col-links li {
  margin-bottom: 12px;
}

.footer-col-links a {
  font-size: 0.9rem;
  color: rgba(44, 44, 42, 0.7);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col-links a:hover {
  color: var(--teal-primario);
  padding-left: 2px;
}

/* Barra de Créditos Inferior */
.footer-bottom-credits {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--grafito) 0%, #1a3a32 55%, var(--teal-primario) 130%);
  padding: 36px 0;
  text-align: center;
}

.footer-bottom-credits::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 500px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cline x1='20' y1='80' x2='80' y2='80' stroke='%23FAFAF8' stroke-width='6' stroke-linecap='round'/%3E%3Cline x1='20' y1='80' x2='50' y2='15' stroke='%23FAFAF8' stroke-width='6' stroke-linecap='round'/%3E%3Cline x1='80' y1='80' x2='50' y2='15' stroke='%23FAFAF8' stroke-width='6' stroke-linecap='round'/%3E%3Cline x1='20' y1='80' x2='50' y2='52' stroke='%23FAFAF8' stroke-width='4.5'/%3E%3Cline x1='80' y1='80' x2='50' y2='52' stroke='%23FAFAF8' stroke-width='4.5'/%3E%3Cline x1='50' y1='15' x2='50' y2='52' stroke='%23FAFAF8' stroke-width='4.5'/%3E%3Ccircle cx='50' cy='15' r='9' fill='%23FAFAF8'/%3E%3Ccircle cx='20' cy='80' r='9' fill='%23FAFAF8'/%3E%3Ccircle cx='80' cy='80' r='9' fill='%23FAFAF8'/%3E%3Ccircle cx='33' cy='42' r='7' fill='%23FAFAF8'/%3E%3Ccircle cx='50' cy='52' r='7' fill='%23FAFAF8'/%3E%3Ccircle cx='50' cy='80' r='7' fill='%23FAFAF8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

.footer-bottom-credits .container {
  position: relative;
  z-index: 2;
}

.border-top-credits {
  border-top: 1px solid rgba(250, 250, 248, 0.14);
  padding-top: 20px;
}

.meta-info-text {
  margin: 0 0 6px 0;
  font-size: 0.85rem;
  color: rgba(250, 250, 248, 0.75);
}

.copyright-text {
  margin: 15px 0 0 0;
  font-size: 0.8rem;
  color: rgba(250, 250, 248, 0.45);
  font-weight: 500;
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL DEL FOOTER
   ========================================================================== */
@media (max-width: 768px) {
  .footer-grid-columns {
    grid-template-columns: 1fr; /* Se apilan en una sola columna en móviles */
    gap: 35px;
    padding-bottom: 40px;
  }
  
  .footer-col-brand, .footer-col-links {
    text-align: center;
  }
  
  .brand-wrapper-footer {
    justify-content: center;
  }
  
  .footer-social-links {
    justify-content: center;
  }
  
  .footer-bottom-credits {
    padding: 25px 15px;
  }
}
/* ==========================================================================
   MODALES — Panel lateral oscuro (grafito) con formulario vertical
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 13, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.35s ease;
  justify-content: flex-end;
  align-items: stretch;
}

.modal-overlay.visible {
  display: flex;
  opacity: 1;
}

.modal-panel {
  position: relative;
  width: 460px;
  max-width: 92vw;
  height: 100%;
  background-color: var(--grafito);
  border-radius: 20px 0 0 20px;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
  padding: 56px 40px;
  overflow-y: auto;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.visible .modal-panel {
  transform: translateX(0);
}

.modal-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.close-modal-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1.5px solid rgba(250, 250, 248, 0.4);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--blanco-calido);
  line-height: 1;
  z-index: 10001;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.close-modal-btn:hover {
  background-color: var(--blanco-calido);
  color: var(--grafito);
  border-color: var(--blanco-calido);
}

.modal-content h2 {
  color: var(--blanco-calido);
  font-family: var(--fuente-titulares);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 20px 0 14px 0;
}

.modal-content p {
  color: rgba(250, 250, 248, 0.7);
  font-size: 0.97rem;
  max-width: 100%;
  margin-bottom: 8px;
}

.booking-form, .contact-form {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.booking-form label, .contact-form label {
  color: rgba(250, 250, 248, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 18px 0 7px 0;
}

.booking-form label:first-child, .contact-form label:first-child {
  margin-top: 0;
}

.booking-form input,
.booking-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(250, 250, 248, 0.06);
  border: 1px solid rgba(250, 250, 248, 0.25);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--blanco-calido);
  font-family: var(--fuente-sistema);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.booking-form input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(250, 250, 248, 0.4);
}

.booking-form input:focus,
.booking-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--coral-acento);
  background-color: rgba(250, 250, 248, 0.1);
}

.booking-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAFAF8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
}

.booking-form select option {
  background-color: var(--grafito);
  color: var(--blanco-calido);
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--fuente-sistema);
}

#selected-datetime {
  font-size: 0.82rem;
  color: rgba(250, 250, 248, 0.6);
  margin-top: 16px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(250, 250, 248, 0.7);
  cursor: pointer;
}

.consent-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--coral-acento);
  cursor: pointer;
}

.consent-check a {
  color: var(--blanco-calido);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-check a:hover {
  color: var(--coral-acento);
}

.btn-pay-submit {
  background-color: var(--coral-acento) !important;
  border-color: var(--coral-acento) !important;
  color: var(--blanco-calido) !important;
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  margin-top: 28px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-pay-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ANIMACIONES INTERNAS DE PULSO */
@keyframes pulse-cta {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(15, 110, 86, 0.5); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(15, 110, 86, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(15, 110, 86, 0); }
}
.hero-buttons .btn-primary, .btn-cta-pay {
  display: inline-block; 
  animation: pulse-cta 2.5s infinite ease-in-out; 
}
.btn-cta-pay { background-color: var(--teal-primario); }

/* ==========================================================================
   MEDIA QUERIES - OPTIMIZACIÓN MÓVIL RESPONSIVA
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  .menu-toggle {
    display: flex; 
  }
  
  .main-nav, .header-flotante-completo {
    display: none !important; 
  }

  .hero {
    padding: 60px 20px 60px 20px;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-left-column {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .hero-buttons .btn {
    min-width: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  
  .benefit-cards, 
  .testimonials-grid {
    flex-direction: column; 
    align-items: center; 
  }

  .modal-panel {
    padding: 44px 26px;
  }
  
  .card, .testimonial {
    width: 100%;
    max-width: 450px; 
  }

  .calendar .container {
    overflow-x: auto; 
  }
  
  table, th, td {
    white-space: nowrap; 
  }

  .video-hero-cta {
    height: 45vh;
  }
  
  .video-content-overlay h2 {
    font-size: 1.7rem;
  }

  .mockup-wrapper {
    height: 320px;
  }

  .dashboard-main-bg {
    width: 100%;
    right: 0;
  }

  .card-dos {
    left: 10px;
  }

  .calendar .container {
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  table {
    margin: 20px 0;
  }
}

/* ==========================================================================
   BANNER DE CONVERSIÓN DE WHATSAPP (ESTILO PREMIUM LIMPIO)
   ========================================================================== */
.whatsapp-banner-section {
  padding: 40px 0;
  background-color: var(--blanco-calido);
}

.wsp-banner-card {
  background-color: rgba(37, 211, 102, 0.04); /* Fondo verde menta ultra sutil */
  border: 1px solid rgba(37, 211, 102, 0.2);  /* Borde verde corporativo transparente */
  border-radius: 16px;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

/* Contenedor del Icono */
.wsp-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wsp-icon-wrapper svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 4px 10px rgba(37, 211, 102, 0.15));
}

/* Textos internos */
.wsp-text-content {
  text-align: left;
}

.wsp-text-content h3 {
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--grafito);
  letter-spacing: -0.01em;
}

.wsp-text-content p {
  margin: 0;
  font-size: 1rem;
  color: rgba(44, 44, 42, 0.75);
}

/* Botón de Acción */
.btn-wsp-cta {
  display: inline-block;
  background-color: #25D366;
  color: #ffffff;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-wsp-cta:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Ajuste específico para celulares */
@media (max-width: 768px) {
  .wsp-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }

  .wsp-text-content {
    text-align: center;
  }

  .wsp-action-wrapper,
  .btn-wsp-cta {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   CARRUSEL DE LOGOS CON EFECTO TÚNEL (GRADIENT FADE)
   ========================================================================== */
.logos-carousel-section {
  background-color: var(--blanco-calido);
  padding: 60px 0 30px 0;
  text-align: center;
  overflow: hidden;
}

.carousel-title {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #7b8a9e;
  font-weight: 600;
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* Contenedor máscara con efecto de degradado en los extremos (Efecto Túnel) */
.logos-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;

  /* Máscara webkit para desvanecer los bordes izquierdo y derecho */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

/* La pista interna que se mueve de derecha a izquierda */
.logos-track {
  display: flex;
  gap: 80px; 
  width: max-content;
  animation: logo-glide 25s linear infinite; 
}

/* Estilo individual para cada logo */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  color: #a0aab5; 
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
}

.logo-item.font-bold { font-weight: 700; letter-spacing: -0.04em; }
.logo-item .color-light { font-weight: 300; opacity: 0.7; }
.logo-item.font-italic { font-style: italic; font-weight: 800; letter-spacing: -0.02em; }

/* Pausar la animación al hacer hover */
.logos-slider-container:hover .logos-track {
  animation-play-state: paused;
}

/* ==========================================================================
   ANIMACIÓN DEL DESPLAZAMIENTO INFINITO
   ========================================================================== */
@keyframes logo-glide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 40px)); 
  }
}

/* Ajuste responsivo para pantallas pequeñas */
@media (max-width: 768px) {
  .logos-carousel-section {
    padding: 40px 0 20px 0;
  }
  .carousel-title {
    margin-bottom: 25px;
  }
  .logos-track {
    gap: 50px; 
    animation-duration: 18s; 
  }
  .logo-item {
    font-size: 1.1rem;
  }
  /* Suavizamos un poco el degradado en móviles para ganar espacio de lectura */
  .logos-slider-container {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
}
/* ==========================================================================
   BOTÓN VOLVER ARRIBA (ESTILO CORPORATIVO VANTIA - VERDE Y CORAL)
   ========================================================================== */
button#backToTopBtn,
.back-to-top-left {
  /* Forzar limpieza de estilos nativos del sistema */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  border: none !important;
  
  /* Posicionamiento fijo */
  position: fixed !important;
  bottom: 30px !important;
  left: 30px !important;
  
  /* Dimensiones perfectas */
  width: 50px !important;
  height: 50px !important;
  
  /* Paleta Vantia */
  background-color: var(--teal-primario) !important; /* Verde corporativo */
  color: var(--coral-acento) !important; /* Flecha Naranja/Coral */
  
  /* Forzar círculo perfecto */
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  
  /* Centrado del icono SVG interno */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Efecto flotante */
  box-shadow: 0 4px 15px rgba(15, 110, 86, 0.3) !important;
  z-index: 9999 !important;
  
  /* Transición de aparición */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  
  padding: 0 !important; /* Evita que el navegador le meta márgenes internos */
  margin: 0 !important;
}

/* Forzar tamaño del SVG interno */
button#backToTopBtn svg,
.back-to-top-left svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

/* Estado activo administrado por tu JS */
button#backToTopBtn.visible,
.back-to-top-left.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Efectos interactivos con inversión de paleta */
button#backToTopBtn:hover,
.back-to-top-left:hover {
  background-color: var(--coral-acento) !important; /* El fondo pasa a naranja */
  color: #ffffff !important; /* La flecha pasa a blanca */
  box-shadow: 0 6px 20px rgba(242, 108, 79, 0.45) !important;
}

button#backToTopBtn:hover svg,
.back-to-top-left:hover svg {
  transform: translateY(-3px) !important;
}

/* Adaptación para celulares */
@media (max-width: 768px) {
  button#backToTopBtn,
  .back-to-top-left {
    bottom: 20px !important;
    left: 20px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

.back-to-top-left svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

/* Estado activo administrado por JavaScript */
.back-to-top-left.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Efectos interactivos con inversión de paleta */
.back-to-top-left:hover {
  background-color: var(--coral-acento); /* El fondo cambia a naranja */
  color: #ffffff; /* La flecha pasa a blanco para un contraste limpio */
  box-shadow: 0 6px 20px rgba(242, 108, 79, 0.4); /* Sombra ahora con el tono coral */
}

.back-to-top-left:hover svg {
  transform: translateY(-3px); /* Mantiene el salto orgánico al hacer hover */
}

/* Adaptación para dispositivos móviles */
@media (max-width: 768px) {
  .back-to-top-left {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }
  .back-to-top-left svg {
    width: 18px;
    height: 18px;
  }
}
/* ==========================================================================
   ANEXO CORRECCIÓN: BOTÓN VOLVER ARRIBA OFICIAL VANTIA
   ========================================================================== */
button#backToTopBtn {
  /* Reseteo absoluto para evitar conflictos con estilos previos */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  
  /* Ubicación estricta en la esquina izquierda */
  position: fixed !important;
  bottom: 30px !important;
  left: 30px !important;
  z-index: 9999 !important;
  
  /* Identidad Visual Vantia (Círculo Verde) */
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  background-color: var(--teal-primario, #0F6E56) !important; 
  color: var(--coral-acento, #D85A30) !important; /* Flecha Coral */
  
  /* Centrado e Interacción */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(15, 110, 86, 0.25) !important;
  
  /* Transición de oculto a visible */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(15px) !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease !important;
  cursor: pointer !important;
}

/* Ajuste del icono SVG interior */
button#backToTopBtn svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

/* Clase de activación inyectada por JS */
button#backToTopBtn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Efecto Hover: Invierte la paleta de colores de Vantia */
button#backToTopBtn:hover {
  background-color: var(--coral-acento, #D85A30) !important; /* El fondo cambia a Coral */
  color: #ffffff !important; /* La flecha pasa a Blanca */
  box-shadow: 0 6px 20px rgba(216, 90, 48, 0.4) !important;
}

button#backToTopBtn:hover svg {
  transform: translateY(-3px) !important; /* Animación sutil hacia arriba */
}

/* Consistencia en pantallas móviles */
@media (max-width: 768px) {
  button#backToTopBtn {
    bottom: 20px !important;
    left: 20px !important;
    width: 44px !important;
    height: 44px !important;
  }
  button#backToTopBtn svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ==========================================================================
   PÁGINA: servicios.html — detalle de niveles
   ========================================================================== */
.services-page-hero {
  padding: 60px 20px 50px 20px;
  text-align: center;
  background-color: var(--gris-suave);
}

.services-back-link {
  display: inline-block;
  color: #7A7A75;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.services-back-link:hover {
  color: var(--teal-primario);
}

.services-page-hero h1 {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--grafito);
  margin: 0 0 16px 0;
}

.services-page-hero > .container > p {
  color: #5B5B57;
  max-width: 620px;
  margin: 0 auto 36px auto;
  font-size: 1.02rem;
}

.services-jumpnav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.services-jumpnav a {
  background-color: var(--blanco-calido);
  border: 1px solid rgba(44, 44, 42, 0.12);
  color: var(--grafito);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 30px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.services-jumpnav a:hover {
  border-color: var(--teal-primario);
  color: var(--teal-primario);
}

.service-detail {
  padding: 80px 20px;
}

.service-detail-alt {
  background-color: var(--gris-suave);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.service-detail-grid > * {
  min-width: 0;
}

.service-detail-grid-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.service-detail-grid-reverse .service-detail-copy {
  order: 2;
}

.service-detail-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral-acento);
  margin-bottom: 10px;
}

.service-detail-copy h2 {
  font-family: var(--fuente-titulares);
  font-size: 2rem;
  font-weight: 600;
  color: var(--grafito);
  margin: 0 0 8px 0;
}

.service-detail-tagline {
  color: var(--teal-primario);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 20px 0;
}

.service-detail-desc {
  color: #5B5B57;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 24px 0;
}

.service-detail-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.service-detail-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--grafito);
}

.service-detail-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(15, 110, 86, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6E56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px;
}

.visual-frame {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--teal-primario) 0%, var(--grafito) 100%);
  box-shadow: 0 24px 48px rgba(44, 44, 42, 0.18);
}

.visual-frame-2 {
  background: linear-gradient(135deg, var(--grafito) 0%, var(--teal-primario) 100%);
}

.visual-frame-3 {
  background: linear-gradient(135deg, var(--teal-primario) 0%, var(--coral-acento) 140%);
}

.visual-frame-tag {
  position: absolute;
  top: -12px;
  left: 28px;
  background-color: var(--coral-acento);
  color: var(--blanco-calido);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(216, 90, 48, 0.35);
  z-index: 2;
}

.service-detail-visual {
  display: block;
  width: 100%;
  height: auto; /* Sin esto, el atributo HTML height="" de cada <img> (agregado para evitar CLS) pisa el aspect-ratio de abajo */
  min-height: 320px;
  aspect-ratio: 4 / 3.3;
  border-radius: 14px;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9);
}

.decision-cta-section {
  padding: 20px 20px 90px 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .service-detail-grid,
  .service-detail-grid-reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-detail-grid-reverse .service-detail-copy {
    order: 0;
  }

  .service-detail-visual {
    aspect-ratio: 16 / 10;
  }

  .services-page-hero h1 {
    font-size: 1.8rem;
  }
}
/* Overlay que cubre toda la pantalla con un fondo semitransparente oscuro */
.custom-modal-overlay {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999; /* Asegura que esté por encima de los paneles laterales */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Contenedor blanco del mensaje */
.custom-modal-content {
  background-color: #FAFAF8; /* Blanco cálido de Vantia */
  padding: 45px 30px;
  border-radius: 8px;
  max-width: 550px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: auto; /* Se centra dentro del overlay existente */
}

/* Título verde característico */
.success-title {
  color: #0F6E56; /* Verde primario de Vantia */
  font-family: 'General Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Cuerpo del mensaje */
.success-text {
  color: #2D2D2D; /* Gris oscuro para excelente lectura */
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Botón "Entendido" estilo grafito */
.success-btn {
  background-color: #2D2D2D;
  color: #FAFAF8;
  border: none;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.success-btn:hover {
  background-color: #1A1A1A;
}

/* Animación de aparición suave */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Transiciones suaves para SPA por AJAX */
#app-content {
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
}
/* ==========================================================================
   CONSULTORÍA IA — GRID DE SERVICIOS DE ASESORÍA ESTRATÉGICA
   ========================================================================== */
.consultoria-grid-section {
  padding: 20px 20px 90px 20px;
}

.consultoria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 10px;
}

.consultoria-card {
  background-color: var(--grafito);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consultoria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(44, 44, 42, 0.18);
}

.consultoria-card-visual {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(15, 110, 86, 0.35) 0%, rgba(44, 44, 42, 0) 70%), var(--grafito);
  border-bottom: 1px solid rgba(250, 250, 248, 0.06);
  overflow: hidden;
}

.consultoria-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.consultoria-card-visual svg {
  width: 84px;
  height: 84px;
}

.consultoria-card-eyebrow {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-acento);
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.consultoria-card-body {
  padding: 28px 26px 32px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.consultoria-card-body h3 {
  font-family: var(--fuente-titulares);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blanco-calido);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.consultoria-card-body p {
  color: rgba(250, 250, 248, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.consultoria-intro {
  max-width: 680px;
  margin: 0 auto 44px auto;
  text-align: center;
}

.consultoria-intro p {
  color: #5B5B57;
  font-size: 1.02rem;
}

@media (max-width: 900px) {
  .consultoria-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MARKETING DIGITAL — VARIANTE DE PANEL VISUAL CON ÍCONO (SIN IMAGEN)
   ========================================================================== */
.service-detail-visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  aspect-ratio: 4 / 3.3;
  border-radius: 14px;
  background-color: rgba(250, 250, 248, 0.08);
}

.service-detail-visual-icon svg {
  width: 40%;
  height: 40%;
  max-width: 160px;
  max-height: 160px;
}

@media (max-width: 768px) {
  .service-detail-visual-icon {
    aspect-ratio: 16 / 10;
  }
}

/* Eyebrow para la sección de transición teal en Marketing Digital */
.video-cta-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-acento);
  margin-bottom: 16px;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP — esquina inferior derecha, en todas las páginas
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 68px !important;
  height: 68px !important;
  background-color: var(--teal-primario) !important;
  color: var(--blanco-calido) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(15, 110, 86, 0.35) !important;
  z-index: 9999 !important;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--teal-primario);
  opacity: 0.55;
  animation: whatsapp-pulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.12) !important;
  background-color: #0b5240 !important;
  box-shadow: 0 10px 28px rgba(15, 110, 86, 0.5) !important;
}

.whatsapp-float-btn svg {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .whatsapp-float-btn {
    bottom: 20px !important;
    right: 20px !important;
    width: 58px !important;
    height: 58px !important;
  }
  .whatsapp-float-btn svg {
    width: 29px;
    height: 29px;
  }
}

/* ==========================================================================
   PÁGINAS LEGALES — Privacidad / Términos / Cookies
   ========================================================================== */
.legal-content {
  padding: 60px 0 100px;
}

.legal-content .container {
  max-width: 780px;
}

.legal-content .legal-updated {
  color: rgba(44, 44, 42, 0.55);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: rgba(44, 44, 42, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--teal-primario);
  text-decoration: underline;
}

.legal-content .legal-toc {
  background: var(--gris-suave);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.legal-content .legal-toc p {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--grafito);
}

.legal-content .legal-toc ul {
  margin: 0;
  columns: 2;
}

@media (max-width: 640px) {
  .legal-content .legal-toc ul {
    columns: 1;
  }
}

/* ==========================================================================
   CASOS DE ÉXITO
   ========================================================================== */
.casos-exito-section {
  padding: 60px 0 100px;
}

.caso-nota-ilustrativa {
  background: var(--gris-suave);
  border-left: 3px solid var(--coral-acento);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 48px;
  font-size: 0.92rem;
  color: rgba(44, 44, 42, 0.75);
}

.caso-card {
  border: 1px solid rgba(44, 44, 42, 0.08);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
  background: #ffffff;
}

.caso-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.caso-sector-badge {
  display: inline-block;
  background: rgba(15, 110, 86, 0.1);
  color: var(--teal-primario);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.caso-servicio-badge {
  display: inline-block;
  background: rgba(216, 90, 48, 0.1);
  color: var(--coral-acento);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.caso-card h2 {
  font-size: 1.6rem;
  margin: 0 0 24px;
}

.caso-bloque {
  margin-bottom: 24px;
}

.caso-bloque h4 {
  font-family: var(--fuente-titulares);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(44, 44, 42, 0.5);
  margin: 0 0 10px;
}

.caso-bloque p {
  margin: 0;
  line-height: 1.7;
  color: rgba(44, 44, 42, 0.85);
}

.caso-bloque ul {
  margin: 0;
  padding-left: 20px;
}

.caso-bloque li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: rgba(44, 44, 42, 0.85);
}

.caso-resultados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.caso-stat {
  background: var(--gris-suave);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}

.caso-stat-number {
  display: block;
  font-family: var(--fuente-titulares);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-primario);
  margin-bottom: 4px;
}

.caso-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(44, 44, 42, 0.65);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .caso-card {
    padding: 28px 22px;
  }
  .caso-resultados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Avatar circular por caso (ícono representativo del rubro) */
.caso-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.caso-avatar-teal {
  background: var(--teal-primario);
}

.caso-avatar-coral {
  background: var(--coral-acento);
}

/* Acento de color superior por caso, para diferenciarlos de un vistazo */
.caso-card {
  position: relative;
  overflow: hidden;
}

.caso-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.caso-card-teal::before {
  background: var(--teal-primario);
}

.caso-card-coral::before {
  background: var(--coral-acento);
}

/* Lista de "Qué implementamos" con check en vez de bullet plano */
.caso-bloque ul.caso-check-list {
  list-style: none;
  padding-left: 0;
}

.caso-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.caso-check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.caso-card-teal .caso-check-icon {
  color: var(--teal-primario);
}

.caso-card-coral .caso-check-icon {
  color: var(--coral-acento);
}

/* Stat destacado (el resultado más relevante de cada caso) */
.caso-stat-destacado {
  color: #ffffff !important;
}

.caso-card-teal .caso-stat-destacado {
  background: var(--teal-primario);
}

.caso-card-coral .caso-stat-destacado {
  background: var(--coral-acento);
}

.caso-stat-destacado .caso-stat-number {
  color: #ffffff;
}

.caso-stat-destacado .caso-stat-label {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================
   PRELOADER ANIMATION
   ========================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #101112; /* Fondo oscuro, más profundo que grafito para que el neón resalte */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.65s ease 0.2s, visibility 0.65s ease 0.2s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 60vw;
  max-height: 60vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.75s cubic-bezier(0.34, 0.9, 0.64, 1), opacity 0.55s ease, filter 0.75s ease;
}

/* ZOOM + FADE OUT — el logo avanza hacia la cámara y se disuelve antes de que el fondo del preloader termine de irse */
#preloader.hidden .loader-content {
  transform: scale(1.8);
  opacity: 0;
  filter: blur(4px);
}

/* Cintas neón (mismo degradado/glow que la tarjeta de presentación) */
.ribbon-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ribbon-path {
  fill: none;
  stroke: url(#neonGradientPreloader);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: url(#neonGlowPreloader);
  opacity: 0;
}

.ribbon-a {
  animation:
    ribbonDrawA 1.5s cubic-bezier(0.4,0,0.2,1) 0.05s forwards,
    ribbonDrift 4s ease-in-out 1.6s infinite;
}

.ribbon-b {
  animation:
    ribbonDrawB 1.5s cubic-bezier(0.4,0,0.2,1) 0.25s forwards,
    ribbonDrift 4.4s ease-in-out 1.8s infinite reverse;
}

@keyframes ribbonDrawA {
  0%   { opacity: 0; stroke-dashoffset: 1; }
  8%   { opacity: 0.9; }
  75%  { opacity: 0.9; stroke-dashoffset: 0; }
  100% { opacity: 0.55; stroke-dashoffset: 0; }
}

@keyframes ribbonDrawB {
  0%   { opacity: 0; stroke-dashoffset: 1; }
  8%   { opacity: 0.85; }
  75%  { opacity: 0.85; stroke-dashoffset: 0; }
  100% { opacity: 0.5; stroke-dashoffset: 0; }
}

@keyframes ribbonDrift {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50%      { transform: translate(3px,-4px) rotate(1.2deg); }
}

.logo-loader {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  max-width: 35vw; /* En celulares se ajustará proporcionalmente */
  max-height: 35vw;
  overflow: visible;
}

/* Animación de dibujado de líneas (Stroke Dash), ahora con glow neon */
.draw-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 3px rgba(15,110,86,0.55));
  animation: drawLine 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Delays para las líneas para que se construyan en secuencia (arrancan después de las cintas) */
.line-1 { animation-delay: 0.55s; }
.line-2 { animation-delay: 0.72s; }
.line-3 { animation-delay: 0.80s; }
.line-4 { animation-delay: 0.95s; }
.line-5 { animation-delay: 1.02s; }
.line-6 { animation-delay: 1.10s; }

/* Animación para los nodos (Aparecen con escala y pop) */
.pop-node {
  transform-origin: center;
  transform: scale(0);
  filter: drop-shadow(0 0 5px rgba(15,110,86,0.7));
  animation: popNode 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Delays para los círculos */
.node-1 { animation-delay: 1.00s; }
.node-2 { animation-delay: 1.08s; }
.node-3 { animation-delay: 1.16s; }
.node-4 {
  animation-delay: 1.28s;
  filter: drop-shadow(0 0 6px rgba(216,90,48,0.75));
} /* Nodo coral de acento */
.node-5 { animation-delay: 1.36s; }
.node-6 { animation-delay: 1.44s; }

/* Keyframes */
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes popNode {
  to {
    transform: scale(1);
  }
}

/* Respiración suave del isotipo ya armado, mientras la página real termina de cargar */
.logo-loader.is-settled {
  animation: idleGlow 2.6s ease-in-out 2.1s infinite;
}

@keyframes idleGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(15,110,86,0.35)); }
  50%      { filter: drop-shadow(0 0 10px rgba(15,110,86,0.6)); }
}

/* Flash final — remate tipo intro de consola, coincide con el isotipo ya completo */
.flash-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(0,240,224,0.5) 35%, rgba(15,110,86,0) 70%);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  animation: flashBurst 0.7s cubic-bezier(0.16,1,0.3,1) 1.62s forwards;
}

@keyframes flashBurst {
  0%   { opacity: 0; transform: scale(0.2); }
  35%  { opacity: 1; transform: scale(2.4); }
  100% { opacity: 0; transform: scale(6); }
}

/* ==========================================================================
   BANNER DE CONSENTIMIENTO DE COOKIES
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9998; /* debajo del preloader (99999), encima de todo lo demás */
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--grafito);
  color: var(--blanco-calido);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-text {
  flex: 1 1 320px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(250, 250, 248, 0.85);
}

.cookie-banner-text a {
  color: var(--blanco-calido);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: var(--coral-acento);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--blanco-calido);
  border: 1px solid rgba(250, 250, 248, 0.35);
}

.btn-cookie-reject:hover {
  background: rgba(250, 250, 248, 0.1);
}

.btn-cookie-accept {
  background: var(--teal-primario);
  color: var(--blanco-calido);
}

.btn-cookie-accept:hover {
  background: #0c5c47;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .btn-cookie {
    flex: 1;
  }
}
