/* ===================================================================
   SISTEMAS & SOLUCIONES ERP - HOJA DE ESTILOS PRINCIPAL
   Estética ejecutiva, moderna, luminosa y clara con acentos Sky y Emerald.
   =================================================================== */

:root {
  /* Paleta de Colores Claros y Neutros */
  --bg-main: #f8fafc;           /* Slate 50 - Fondo luminoso y descansado */
  --bg-secondary: #ffffff;      /* Blanco Puro */
  --bg-card: #ffffff;           /* Tarjetas en blanco limpio */
  --bg-card-hover: #ffffff;
  --bg-card-alt: #f1f5f9;       /* Slate 100 para contenedores secundarios */
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --text-primary: #0f172a;      /* Slate 900 - Alta legibilidad ejecutiva */
  --text-secondary: #475569;    /* Slate 600 - Párrafos y descripciones */
  --text-muted: #64748b;        /* Slate 500 - Etiquetas sutiles */
  --text-inverse: #ffffff;

  /* Acentos de Marca Luminosos */
  --accent-cyan: #0284c7;        /* Sky 600 - Azul tecnológico confiable */
  --accent-cyan-light: #0369a1;  /* Sky 700 */
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);
  
  --accent-emerald: #059669;     /* Emerald 600 */
  --accent-emerald-light: #047857;
  --accent-emerald-glow: rgba(5, 150, 105, 0.15);
  
  --accent-blue: #2563eb;        /* Blue 600 */
  --accent-blue-dark: #1d4ed8;
  --accent-purple: #7c3aed;
  --accent-gold: #c79d63;        /* Dorado Financiero Consulting */
  --accent-gold-dark: #b88a4c;

  /* Bordes y Separadores Claros */
  --border-subtle: #e2e8f0;      /* Slate 200 */
  --border-highlight: #cbd5e1;   /* Slate 300 */
  --border-focus: #0284c7;

  /* Sombras Suaves y Elegantes */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.1), 0 8px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 10px 25px rgba(2, 132, 199, 0.12);

  --gradient-primary: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --gradient-emerald: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Tipografías y Espaciado */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --header-height: 134px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 134px);
  font-size: 16px;
}

section[id], .hero-section {
  scroll-margin-top: calc(var(--header-height, 134px) + 16px);
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(2, 132, 199, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 45%, rgba(5, 150, 105, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Contenedor */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tipografía */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-emerald {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Insignias / Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #eff6ff;
  color: #0284c7;
  border: 1px solid #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tech-pill-tilted {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ffffff;
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  transform: rotate(-2.5deg);
  transition: var(--transition);
}

.tech-pill-tilted:hover {
  transform: rotate(0deg) scale(1.04);
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
}

.badge-emerald {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

/* Badge Flotante para Áreas de Especialización Estratégica Empresarial */
.badge-floating {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.45rem;
  border-radius: 9999px;
  background: #0284c7;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 1.5px solid rgba(125, 211, 252, 0.45);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none !important;
  text-shadow: none !important;
  transform: translateY(-8px);
  animation: floatBadgeElevated 3.4s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  cursor: default;
  margin-bottom: 0.85rem;
}

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

.badge-floating:hover {
  transform: translateY(-18px);
  border-color: #38bdf8;
  box-shadow: none !important;
}

.badge-floating .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: none !important;
  animation: pulseDotElevated 2s infinite;
}

@keyframes pulseDotElevated {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-emerald {
  background: var(--gradient-emerald);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-gold {
  background: linear-gradient(135deg, #c79d63 0%, #b88a4c 100%);
  color: #090821;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(199, 157, 99, 0.35);
  border: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d4ab72 0%, #c79d63 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 157, 99, 0.5);
  color: #000000;
}

/* ===================================================================
   CINTA AZUL SUPERIOR CORPORATIVA (INFORMACIÓN DE CONTACTO & REDES)
   =================================================================== */
.top-info-bar {
  width: 100%;
  background: #061933; /* Azul marino corporativo */
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  padding: 0.45rem 0;
  font-size: 0.8125rem;
  color: #cbd5e1;
  position: relative;
  z-index: 1001;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .top-info-bar {
  background: rgba(0, 26, 48, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(56, 189, 248, 0.2);
  padding: 0.28rem 0;
}

.top-info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.top-info-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.top-info-link {
  color: #e2e8f0;
}

.top-info-link:hover {
  color: #38bdf8;
}

.top-info-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.top-social-list {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.5rem;
}

.top-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.top-social-link:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

@media (max-width: 1080px) {
  .top-info-welcome {
    display: none;
  }
}

@media (max-width: 860px) {
  .top-info-left {
    display: none;
  }
  .top-info-container {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .top-info-bar {
    padding: 0.35rem 0;
    font-size: 0.75rem;
  }
  .top-info-group {
    gap: 0.9rem;
  }
  .top-social-list {
    gap: 0.35rem;
    margin-left: 0.2rem;
  }
  .top-social-link {
    width: 24px;
    height: 24px;
  }
}

/* ===================================================================
   BARRA DE NAVEGACIÓN FIJA (VIDRIO ESMERILADO ULTRA-TRANSPARENTE)
   Permanece permanentemente visible en la parte superior sin desaparecer nunca.
   =================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-spacer {
  height: var(--header-height, 134px);
  width: 100%;
  pointer-events: none;
  flex-shrink: 0;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
  pointer-events: none;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-menu-mobile-cta {
  display: none;
}

.header.scrolled {
  background: rgba(4, 21, 45, 0.92); /* Azul corporativo transparente */
  background-image: linear-gradient(180deg, rgba(56, 189, 248, 0.12) 0%, rgba(4, 21, 45, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 
    0 12px 35px -4px rgba(0, 15, 35, 0.5),
    0 4px 14px -2px rgba(2, 132, 199, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  min-height: 86px;
  padding: 0 1.5rem;
  transition: min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  gap: 1rem;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), rgba(2, 132, 199, 0.3), transparent);
  pointer-events: none;
}

.header.scrolled .navbar {
  min-height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.2rem 0;
  margin-right: clamp(0.75rem, 2vw, 2.5rem);
  flex-shrink: 0;
}

.brand-logo-img {
  height: 76px;
  width: auto;
  max-width: 285px;
  object-fit: contain;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
}

.header.scrolled .brand-logo-img {
  height: 58px;
  background: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 90px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-logo-img:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.4);
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-subtext {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
}

/* ===================================================================
   ISLA FLOTANTE DE NAVEGACIÓN (DOCK CON GLASSMORPHISM)
   =================================================================== */
.desktop-tablet-nav {
  display: flex;
  align-items: center;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  padding: 0.32rem 0.55rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 4px 18px -2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled .desktop-tablet-nav {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 
    0 8px 24px -4px rgba(0, 10, 25, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: #0284c7;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.18);
}

.nav-link.active {
  color: #0284c7;
  background: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.22);
  font-weight: 700;
}

/* Enlaces del Menú en estado Scrolled Azul */
.header.scrolled .nav-link {
  color: #f1f5f9;
  text-shadow: none;
}

.header.scrolled .nav-link:hover {
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.header.scrolled .nav-link.active {
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

/* ===================================================================
   GRUPO DE BOTONES FLOTANTES CON EFECTOS 3D Y DESTALLO
   =================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* 1. Botón Intranet Flotante (Seguridad & Privacidad) */
.nav-btn-intranet {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 9999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nav-btn-intranet .intranet-badge-icon {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.nav-btn-intranet:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(2, 132, 199, 0.16);
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 8px 20px -2px rgba(2, 132, 199, 0.3);
}

.nav-btn-intranet:hover .intranet-badge-icon {
  transform: rotate(-10deg) scale(1.15);
}

.header.scrolled .nav-btn-intranet {
  background: rgba(2, 132, 199, 0.22);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.header.scrolled .nav-btn-intranet:hover {
  background: rgba(2, 132, 199, 0.38);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
}

/* 2. Botón Diagnóstico Flotante (Efecto Cristal / Perla con Brillo) */
.nav-action-quote {
  border-radius: 9999px !important;
  padding: 0.52rem 1.25rem !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 
    0 6px 18px -2px rgba(15, 23, 42, 0.08),
    0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(8px);
}

/* Efecto de Destello / Brillo Angular al Hover */
.nav-action-quote::after,
.nav-action-contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-action-quote:hover::after,
.nav-action-contact:hover::after {
  left: 150%;
}

.nav-action-quote:hover {
  transform: translateY(-3px) scale(1.02) !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 
    0 12px 26px -4px rgba(2, 132, 199, 0.25),
    0 4px 10px -2px rgba(2, 132, 199, 0.12) !important;
}

.header.scrolled .nav-action-quote {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}

.header.scrolled .nav-action-quote:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.35) !important;
}

/* 3. Botón Contactar Flotante (Gradiente 3D con Pulso de Resplandor) */
.nav-action-contact {
  border-radius: 9999px !important;
  padding: 0.52rem 1.45rem !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    0 8px 22px -3px rgba(2, 132, 199, 0.45),
    0 3px 8px -2px rgba(2, 132, 199, 0.25) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: floatPulse 3.5s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% {
    box-shadow: 
      0 8px 22px -3px rgba(2, 132, 199, 0.45),
      0 3px 8px -2px rgba(2, 132, 199, 0.25);
  }
  50% {
    box-shadow: 
      0 12px 28px -2px rgba(2, 132, 199, 0.65),
      0 5px 12px -1px rgba(2, 132, 199, 0.35);
  }
}

.nav-action-contact:hover {
  transform: translateY(-4px) scale(1.03) !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  box-shadow: 
    0 16px 34px -4px rgba(2, 132, 199, 0.65),
    0 6px 14px -2px rgba(2, 132, 199, 0.4) !important;
}

.header.scrolled .nav-action-contact {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

.header.scrolled .nav-action-contact:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.6) !important;
}

/* 4. Botón Toggle Móvil Flotante */
.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
}

.mobile-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 8px 20px -2px rgba(2, 132, 199, 0.22);
}

.header.scrolled .mobile-toggle {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.header.scrolled .mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}

/* ===================================================================
   BARRA DE SUB-NAVEGACIÓN RÁPIDA MÓVIL (CHIPS HORIZONTALES FIJOS)
   Permite navegar al instante entre todas las secciones con 1 solo toque
   =================================================================== */
.mobile-subnav-bar {
  display: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  padding: 0.35rem 0.65rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.header.scrolled .mobile-subnav-bar {
  background: rgba(4, 21, 45, 0.96);
  border-top-color: rgba(56, 189, 248, 0.2);
  border-bottom-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 14px rgba(0, 15, 35, 0.4);
}

.mobile-subnav-scroll {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0.15rem;
}

.mobile-subnav-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-subnav-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-subnav-chip:hover,
.mobile-subnav-chip.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.header.scrolled .mobile-subnav-chip {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.18);
}

.header.scrolled .mobile-subnav-chip:hover,
.header.scrolled .mobile-subnav-chip.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* ===================================================================
   MENÚ CAJÓN LATERAL MÓVIL STANDALONE (FUERA DEL HEADER)
   =================================================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 86vw);
  height: 100dvh;
  background: #ffffff;
  z-index: 10005;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #061933;
}

.mobile-drawer-logo {
  height: 56px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  background: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: 10px;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: transparent;
}

.mobile-drawer-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  overflow-y: auto;
}

.mobile-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: #f0f9ff;
  color: #0284c7;
  font-weight: 700;
  transform: translateX(4px);
}

.mobile-drawer-link .drawer-link-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.mobile-drawer-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.mobile-drawer-contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.mobile-drawer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
}

.mobile-drawer-phone:hover {
  color: #0369a1;
  text-decoration: underline;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10004;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
  pointer-events: none;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding: 6.5rem 0 5.5rem;
  position: relative;
  scroll-margin-top: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.95rem;
  line-height: 1.16;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.highlight-icon {
  color: var(--accent-emerald);
  font-weight: bold;
}

/* Visual Mockup Dashboard - Prominente y de Gran Escala */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 72%);
  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
}

.hero-image-card {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(2, 132, 199, 0.25);
  background: #ffffff;
  box-shadow: 0 28px 65px -12px rgba(2, 132, 199, 0.22), 0 0 0 1px rgba(2, 132, 199, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.hero-image-card:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 35px 75px -15px rgba(2, 132, 199, 0.3), 0 0 0 1px rgba(2, 132, 199, 0.2);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

.floating-stat-badge {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(2, 132, 199, 0.1);
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-top-right {
  top: -18px;
  right: -18px;
}

.badge-bottom-left {
  bottom: -22px;
  left: -18px;
  animation-delay: 2s;
}

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

.stat-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-icon-circle.cyan {
  background: #e0f2fe;
  color: #0284c7;
}

.stat-icon-circle.emerald {
  background: #d1fae5;
  color: #059669;
}

/* ===================================================================
   CARRUSEL A TODO EL ANCHO (FULL-WIDTH) CON EFECTOS DEBAJO DE LA CINTA
   =================================================================== */
.hero-carousel-fullwidth {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: 76vh;
  max-height: 820px;
  overflow: hidden;
  background: #07152b;
}

/* Capa de Efectos: Radar Orbital / Constelación de Nodos */
.carousel-effects-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.radar-constellation {
  position: absolute;
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
  width: 540px;
  height: 540px;
  pointer-events: none;
  opacity: 0.92;
}

.radar-svg {
  width: 100%;
  height: 100%;
  animation: radarOrbitRotate 110s linear infinite;
  transform-origin: 270px 270px;
}

.radar-ring {
  transform-origin: 270px 270px;
}

.radar-node {
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 16px rgba(56, 189, 248, 0.85));
  animation: nodePulseGlow 3.6s ease-in-out infinite alternate;
}

.node-1 { animation-delay: 0.3s; }
.node-2 { animation-delay: 0.7s; }
.node-3 { animation-delay: 1.1s; }
.node-4 { animation-delay: 1.5s; }
.node-5 { animation-delay: 1.9s; }
.node-6 { animation-delay: 2.3s; }
.node-7 { animation-delay: 2.7s; }

.radar-glow-ambient {
  position: absolute;
  left: 0;
  top: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.24) 0%, rgba(124, 58, 237, 0.12) 40%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  animation: ambientGlowFloat 9s ease-in-out infinite alternate;
}

@keyframes radarOrbitRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes nodePulseGlow {
  0% {
    opacity: 0.65;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1.22);
  }
}

@keyframes ambientGlowFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(35px, -25px) scale(1.18);
  }
}

/* Pista y Diapositivas a Ancho Completo */
.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 640px;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.025);
  pointer-events: none;
  z-index: 1;
}

.hero-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.slide-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.08) contrast(1.06) saturate(1.15);
  transition: transform 9s ease-out;
}

.hero-carousel-slide.active .slide-bg-img {
  transform: scale(1.06);
}

/* Tinte Corporativo Translúcido Suave (Permite apreciar claramente a los consultores y oficinas) */
.slide-blue-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 45%, rgba(10, 32, 64, 0.28) 0%, rgba(6, 20, 42, 0.44) 70%, rgba(4, 14, 28, 0.60) 100%),
    linear-gradient(180deg, rgba(8, 22, 44, 0.20) 0%, rgba(10, 30, 58, 0.16) 40%, rgba(4, 12, 24, 0.50) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Contenido Central de la Diapositiva */
.slide-content-center {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 640px;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6.5rem;
}

/* Suave halo esférico translúcido que garantiza contraste perfecto sobre la imagen luminosa */
.slide-content-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 820px;
  height: 75%;
  background: radial-gradient(ellipse at center, rgba(3, 14, 30, 0.38) 0%, rgba(3, 14, 30, 0.15) 55%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  filter: blur(28px);
}

.slide-badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.slide-badge-tech .badge-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  display: inline-block;
}

.slide-badge-tech .badge-dot.cyan {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.slide-badge-tech .badge-dot.emerald {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.slide-badge-tech .badge-dot.purple {
  background: #c084fc;
  box-shadow: 0 0 10px #c084fc;
}

.slide-main-title {
  font-size: clamp(2.3rem, 4.4vw, 3.85rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 6px 32px rgba(0, 0, 0, 0.85);
  font-family: var(--font-heading);
}

.slide-title-highlight {
  background: linear-gradient(135deg, #ffffff 25%, #7dd3fc 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.slide-description {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  color: #ffffff;
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto 2.35rem;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.95),
    0 4px 22px rgba(0, 0, 0, 0.8);
}

.slide-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-slide-primary {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  padding: 0.95rem 2.25rem;
  border: none;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-slide-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(2, 132, 199, 0.85);
  color: #ffffff;
}

.btn-slide-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 0.95rem 2.25rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-slide-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.22);
}

/* Flechas Laterales en los Bordes Extremos de la Pantalla */
.carousel-arrow-edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-arrow-edge.prev {
  left: 28px;
}

.carousel-arrow-edge.next {
  right: 28px;
}

.carousel-arrow-edge:hover {
  background: rgba(2, 132, 199, 0.85);
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.65);
}

/* Controles Inferiores (Paginación 01 02 03 y Barra de Progreso) */
.hero-carousel-pagination-bar {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  pointer-events: none;
}

.carousel-numbers-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  pointer-events: auto;
}

.carousel-num-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.25s ease;
}

.carousel-num-btn .num-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.carousel-num-btn:hover {
  color: #38bdf8;
}

.carousel-num-btn.active {
  color: #ffffff;
}

.carousel-num-btn.active .num-bullet {
  width: 24px;
  border-radius: 12px;
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}

.hero-progress-line {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.05s linear;
}

/* Sección Plataforma Overview (debajo del carrusel) */
.platform-overview-section {
  padding: 5rem 0 4.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.platform-overview-section .container {
  max-width: 1440px;
  padding: 0 2rem;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eff6ff;
  color: #0284c7;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 1rem;
}

/* ===================================================================
   CINTA TICKER MARQUEE CONTINUA (ESTILO NEO-AGENCY / LIGHTER)
   =================================================================== */
.marquee-ticker-container {
  background: rgba(0, 41, 75, 0.88);
  background-image: linear-gradient(90deg, rgba(0, 30, 58, 0.92) 0%, rgba(0, 41, 75, 0.85) 50%, rgba(0, 30, 58, 0.92) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(56, 189, 248, 0.28);
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px -4px rgba(0, 20, 45, 0.35);
  overflow: hidden;
  padding: 0.95rem 0;
  position: relative;
  user-select: none;
  z-index: 5;
}

.marquee-ticker-container::before,
.marquee-ticker-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.marquee-ticker-container::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 30, 58, 0.95) 0%, rgba(0, 41, 75, 0) 100%);
}

.marquee-ticker-container::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0, 30, 58, 0.95) 0%, rgba(0, 41, 75, 0) 100%);
}

.marquee-ticker-track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}

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

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ticker-dot {
  color: #38bdf8;
  font-size: 0.95rem;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
}

/* ===================================================================
   MÉTRICAS Y RESULTADOS (RETÍCULA CONECTADA TECH - ESTILO LIGHTER)
   =================================================================== */
.metrics-section {
  padding: 3.5rem 0;
  background: #f8fafc;
  position: relative;
}

.metrics-grid-lighter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.metrics-grid-lighter .metric-item {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  transition: var(--transition);
  text-align: left;
}

.metrics-grid-lighter .metric-item:last-child {
  border-right: none;
}

.metrics-grid-lighter .metric-item:hover {
  background: #fcfdfd;
}

.metric-tech-tag {
  font-family: monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
  font-size: 0.725rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  display: block;
}

.metrics-grid-lighter .metric-value {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.45rem;
  letter-spacing: -0.03em;
}

.metrics-grid-lighter .metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

/* ===================================================================
   SECCIONES GENERALES (ENCABEZADOS)
   =================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ===================================================================
   BARRA DE ALIANZAS Y CERTIFICACIONES TÉCNICAS (CINTA AZUL CLARO CON CARRUSEL INFINITO)
   =================================================================== */
.partners-trust-bar {
  padding: 1.35rem 0;
  background: #0787D9;
  background: linear-gradient(90deg, #057ac4 0%, #0787d9 50%, #057ac4 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(2, 60, 98, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px -4px rgba(7, 135, 217, 0.35);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  user-select: none;
  z-index: 5;
}

.partners-trust-bar::before,
.partners-trust-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.partners-trust-bar::before {
  left: 0;
  background: linear-gradient(90deg, #057ac4 0%, rgba(5, 122, 196, 0) 100%);
}

.partners-trust-bar::after {
  right: 0;
  background: linear-gradient(270deg, #057ac4 0%, rgba(5, 122, 196, 0) 100%);
}

.partners-trust-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: trustMarqueeScroll 30s linear infinite;
}

.partners-trust-track:hover {
  animation-play-state: paused;
}

@keyframes trustMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.96;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(0, 30, 60, 0.25);
}

.partner-badge-item:hover {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-2px);
}

.partner-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 25, 55, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.partner-badge-item:hover .partner-badge-icon {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 20, 50, 0.28);
}

/* ===================================================================
   ÁREAS DE PRÁCTICA / 6 ICON BOXES (ESTILO LIGHTER RETICULAR)
   =================================================================== */
.practice-areas-section {
  padding: 5.5rem 0 3.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.practice-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--radius-md);
  padding: 2rem 1.45rem;
  transition: border-color 0.4s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  cursor: pointer;
}

/* Efecto Deslizante Lateral Liso: Se despliega suavemente de izquierda a derecha */
.practice-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fondo completamente liso en degradado azul corporativo */
  background: linear-gradient(135deg, #091e3a 0%, #0369a1 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

/* Al pasar el mouse, el color se desliza lateralmente cubriendo el 100% del recuadro */
.practice-card:hover::after {
  transform: scaleX(1);
}

.practice-card:hover {
  border-color: #38bdf8;
  transform: translateY(-6px);
  box-shadow: 0 20px 38px -8px rgba(2, 132, 199, 0.38);
}

/* El contenido del recuadro se mantiene en primer plano sobre la persiana */
.practice-card > div,
.practice-card > .practice-icon-box {
  position: relative;
  z-index: 2;
}

.practice-card:hover .practice-title {
  color: #ffffff;
}

.practice-card:hover .practice-desc {
  color: #cbd5e1;
}

.practice-card:hover .practice-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.practice-card:hover .practice-link:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

/* Eliminación total de los números del 1 al 6 (watermark e índice) */
.watermark-number,
.practice-tech-index {
  display: none !important;
}

/* ===================================================================
   EFECTO LIGHTER: ANCLAS CÚBICAS DE RETÍCULA (CORNER GRID ANCHORS)
   =================================================================== */
.grid-corner-anchor {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #0284c7;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 5px rgba(2, 132, 199, 0.45);
  z-index: 4;
}

.anchor-top-left { top: -6px; left: -6px; }
.anchor-top-right { top: -6px; right: -6px; }
.anchor-bottom-left { bottom: -6px; left: -6px; }
.anchor-bottom-right { bottom: -6px; right: -6px; }

/* ===================================================================
   EFECTO LIGHTER: AURAS DE LUZ DIFUSA EN EL FONDO (AMBIENT GLOW BLUR)
   =================================================================== */
.ambient-glow-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.glow-sky {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #0284c7 0%, #38bdf8 70%, transparent 100%);
  top: -100px;
  right: -80px;
}

.glow-indigo {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #6366f1 0%, #a855f7 70%, transparent 100%);
  top: 15%;
  left: -80px;
}

/* ===================================================================
   EFECTO LIGHTER: REVELACIÓN SUAVE AL SCROLL (SCROLL REVEAL & BLUR)
   =================================================================== */
.lighter-reveal {
  opacity: 0;
  transform: translateY(35px);
  filter: blur(5px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.lighter-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

.practice-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0284c7;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.practice-card:hover .practice-icon-box {
  background: #ffffff;
  color: #0284c7;
  border-color: #ffffff;
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.practice-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.practice-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  transition: color 0.3s ease;
}

/* Botón Flotante Transparente: Más Información */
.practice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  padding: 0.52rem 1.25rem;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.05);
  border: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.45rem;
}

.practice-link:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: #0284c7;
  color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.18);
}

/* ===================================================================
   CATÁLOGO DE SERVICIOS INTERACTIVO
   =================================================================== */
.services-section {
  padding: 2.25rem 0 3.75rem;
  scroll-margin-top: 85px;
}

.services-section .section-header {
  margin: 0 auto 1.35rem;
  max-width: 720px;
}

.services-section .badge-floating {
  margin-bottom: 0.45rem;
  padding: 0.38rem 1.15rem;
  font-size: 0.78rem;
  transform: translateY(-4px);
}

.services-section .section-title {
  font-size: 2.15rem;
  margin-top: 0.3rem;
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

.services-section .section-desc {
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Tabs de navegación de servicios: Botones Flotantes Sin Sombras */
.services-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.tab-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  padding: 0.58rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.92;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              opacity 0.35s ease,
              background 0.35s ease;
  z-index: 1;
}

/* Efecto Deslizante Lateral Transparente al pasar el mouse (cambio de color suave) */
.tab-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Velo transparente luminoso que hace cambiar de color el azul de manera translúcida */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(56, 189, 248, 0.38) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.tab-btn > svg,
.tab-btn > span {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.tab-btn > svg {
  flex-shrink: 0;
  stroke: #ffffff !important;
}

/* Estado Hover: Flotación limpia sin sombra + cambio de tonalidad transparente */
.tab-btn:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: #ffffff;
  box-shadow: none !important;
}

.tab-btn:hover::after {
  transform: scaleX(1);
}

.tab-btn:hover svg {
  transform: scale(1.12);
}

/* Estado Activo: Pestaña seleccionada en azul vibrante con borde destacado y sin sombras */
.tab-btn.active {
  opacity: 1;
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  border: 2px solid #38bdf8;
  box-shadow: none !important;
  transform: translateY(-2px);
}

.tab-btn.active::after {
  transform: scaleX(1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(56, 189, 248, 0.26) 100%);
}

.tab-btn.active:hover {
  transform: translateY(-5px);
  box-shadow: none !important;
  border-color: #ffffff;
}

/* Contenido de Tabs */
.tab-pane {
  display: none;
  animation: fadeInTab 0.35s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-card-deep {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2.25rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.service-card-deep:hover {
  border-color: var(--border-highlight);
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.15rem 0 1.25rem;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.feature-check-icon {
  color: var(--accent-emerald);
  margin-top: 2px;
  flex-shrink: 0;
  font-weight: bold;
}

.service-feature-item strong {
  color: var(--text-primary);
}

/* Caja de Beneficios Clave dentro de la tarjeta */
.service-benefits-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.benefits-title {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.benefit-card-mini {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.benefit-card-mini:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.benefit-card-mini h4 {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 0.15rem;
}

.benefit-card-mini p {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-secondary);
  margin: 0;
}

/* ===================================================================
   BARRA EXPRESS 'REQUEST A CALLBACK' (ESTILO CONSULTING CN02)
   =================================================================== */
.callback-strip-section {
  background: linear-gradient(135deg, #090821 0%, #172554 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  position: relative;
  overflow: visible !important;
  border-top: 3px solid #c79d63;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.callback-strip-section .container {
  overflow: visible !important;
  position: relative;
  z-index: 50;
}

.callback-strip-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.callback-strip-title {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.callback-strip-desc {
  color: #94a3b8;
  font-size: 0.95rem;
}

.callback-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr auto;
  gap: 1rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 60;
  overflow: visible !important;
}

.callback-input, .callback-select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.callback-input:focus, .callback-select:focus {
  border-color: #c79d63;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(199, 157, 99, 0.35);
}

.callback-select option {
  background: #0f172a;
  color: #ffffff;
}

.callback-status-msg {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

.callback-status-msg.success {
  display: block;
  color: #86efac;
}

/* ===================================================================
   SELECTOR DESPLEGABLE AL PASAR EL MOUSE (HOVER DROPDOWN)
   =================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.callback-dropdown {
  position: relative;
  width: 100%;
  z-index: 70;
}

.callback-dropdown-toggle {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.callback-dropdown-toggle span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.callback-dropdown-toggle .dropdown-chevron {
  color: #c79d63;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* Efecto de desplegar al pasar el mouse */
.callback-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: min(360px, 100%);
  max-width: calc(100vw - 2rem);
  background: #090f1d;
  border: 1px solid #c79d63;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 20px rgba(199, 157, 99, 0.25);
  padding: 0.4rem 0;
  margin-top: 4px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

/* Puente invisible que evita que se pierda el hover entre el botón y el menú */
.callback-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* Al pasar el mouse por el contenedor, se despliegan las opciones */
.callback-dropdown:hover .callback-dropdown-menu,
.callback-dropdown.is-open .callback-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.callback-dropdown:hover .dropdown-chevron,
.callback-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

.callback-dropdown:hover .callback-dropdown-toggle,
.callback-dropdown.is-open .callback-dropdown-toggle {
  border-color: #c79d63;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 16px rgba(199, 157, 99, 0.45);
}

.callback-dropdown-item {
  padding: 0.75rem 1.25rem;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.callback-dropdown-item:last-child {
  border-bottom: none;
}

.callback-dropdown-item:hover {
  background: rgba(199, 157, 99, 0.22);
  color: #ffffff;
  padding-left: 1.45rem;
}

.callback-dropdown-item.active {
  background: rgba(2, 132, 199, 0.2);
  border-left: 3px solid #38bdf8;
  color: #38bdf8;
  font-weight: 600;
}

/* ===================================================================
   CALCULADORA INTERACTIVA DE PRESUPUESTO Y DIAGNÓSTICO
   =================================================================== */
.calculator-section {
  padding: 6rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calculator-wrapper {
  background: #f8fafc;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.calc-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Módulos en Checkbox tipo Tarjeta */
.calc-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.calc-module-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.calc-module-card:hover {
  background: #ffffff;
  border-color: var(--accent-cyan);
}

.calc-module-card input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.calc-module-card.selected {
  background: #eff6ff;
  border-color: #38bdf8;
}

.calc-module-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

/* Control Deslizante de Usuarios */
.calc-slider-box {
  margin-bottom: 2rem;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.users-count-display {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #bae6fd;
}

input[type="range"].calc-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"].calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

input[type="range"].calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Modalidad de Soporte (Radio Cards) */
.calc-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.support-radio-card {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.support-radio-card input {
  display: none;
}

.support-radio-card.active {
  background: #ecfdf5;
  border-color: #059669;
}

.support-radio-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.support-radio-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Panel Resumen de la Calculadora */
.calc-summary-panel {
  background: #ffffff;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.calc-summary-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.calc-plan-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.calc-breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.calc-breakdown-item span:last-child {
  color: var(--text-primary);
  font-weight: 700;
}

.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ===================================================================
   TESTIMONIOS Y CONFIANZA
   =================================================================== */
.testimonials-section {
  padding: 6rem 0;
  background: #f8fafc;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.author-info h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================================================
   PREGUNTAS FRECUENTES (FAQ)
   =================================================================== */
.faq-section {
  padding: 6rem 0;
  background: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--accent-cyan);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.25rem;
  transition: var(--transition);
  color: var(--accent-cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===================================================================
   FORMULARIO DE CONTACTO Y CORREO
   =================================================================== */
.contact-section {
  padding: 6rem 0;
  position: relative;
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-info-value {
  font-size: 0.975rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Formulario */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status-alert {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status-alert.success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.form-status-alert.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ===================================================================
   BOTÓN FLOTANTE AZUL CUADRADO PARA NAVEGAR ENTRE PÁGINAS / SECCIONES
   =================================================================== */
.floating-page-nav-btn {
  position: fixed;
  bottom: 102px;
  right: 34px;
  width: 44px;
  height: 44px;
  background: #0284c7; /* Azul corporativo idéntico a la imagen */
  border: none;
  border-radius: 4px; /* Cuadrado con esquinas casi rectas como la imagen */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  z-index: 9990;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.floating-page-nav-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-page-nav-btn:hover {
  background: #0369a1;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.55);
}

.floating-page-nav-btn:active {
  transform: translateY(-1px);
}

.floating-page-nav-btn .nav-chevron-icon {
  display: block;
  transition: transform 0.25s ease;
}

@media (max-width: 768px) {
  .floating-page-nav-btn {
    bottom: 96px;
    right: 34px;
    width: 42px;
    height: 42px;
  }
}

/* ===================================================================
   WIDGET FLOTANTE DE WHATSAPP CON CHAT INTERACTIVO
   =================================================================== */
.whatsapp-floating-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Botón flotante */
.whatsapp-trigger-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
}

.whatsapp-trigger-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Ventana emergente del chat */
.whatsapp-chat-popup {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 340px;
  background: #ffffff;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-chat-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-popup-header {
  background: #075e54;
  padding: 1rem 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.wa-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wa-agent-info h4 {
  font-size: 0.95rem;
  margin: 0;
  color: #ffffff;
}

.wa-agent-info span {
  font-size: 0.75rem;
  color: #a7f3d0;
  display: block;
}

.wa-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
}

.wa-popup-body {
  padding: 1.25rem;
  background: #efeae2;
}

.wa-speech-bubble {
  background: #ffffff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 1rem;
  border-left: 3px solid #25d366;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wa-quick-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wa-option-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #0f172a;
  padding: 0.65rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.wa-option-btn:hover {
  background: #f0fdf4;
  border-color: #25d366;
  color: #047857;
}

/* ===================================================================
   FOOTER (PIE DE PÁGINA) - AZUL CORPORATIVO #00294B
   =================================================================== */
.footer {
  background: #00294B; /* Azul corporativo seleccionado idéntico a la imagen */
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4.5rem 0 2.25rem;
  color: #e2e8f0;
  position: relative;
  box-shadow: 0 -8px 30px rgba(0, 41, 75, 0.3);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), rgba(2, 132, 199, 0.6), transparent);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: #38bdf8;
  margin-top: 6px;
  border-radius: 2px;
}

.footer-col p, .footer-desc {
  font-size: 0.875rem;
  color: #cbd5e1 !important;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  font-weight: 500;
  display: inline-block;
}

.footer-link:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom strong {
  color: #ffffff;
}

.footer-bottom .footer-link {
  color: #38bdf8;
}

.footer-bottom .footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===================================================================
   RESPONSIVIDAD Y BREAKPOINTS (ADAPTACIÓN FLUIDA SIN CORTES)
   =================================================================== */

/* ===================================================================
   RESPONSIVIDAD Y BREAKPOINTS DE LA NAVEGACIÓN Y BOTONES FLOTANTES
   =================================================================== */

/* Pantallas medianas y portátiles (1025px a 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .navbar {
    padding: 0 1.25rem;
    max-width: 100%;
    gap: 0.75rem;
  }
  .brand-logo {
    margin-right: 0.85rem;
  }
  .brand-logo-img {
    height: 64px;
    max-width: 240px;
  }
  .desktop-tablet-nav {
    padding: 0.25rem 0.45rem;
  }
  .nav-menu {
    gap: 0.15rem;
  }
  .nav-link {
    font-size: 0.81rem;
    padding: 0.38rem 0.55rem;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .nav-btn-intranet {
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
  }
  .nav-action-quote {
    padding: 0.45rem 0.95rem !important;
    font-size: 0.8rem !important;
  }
  .nav-action-contact {
    padding: 0.45rem 1.05rem !important;
    font-size: 0.82rem !important;
  }
}

/* Tablets, iPad y Pantallas Medianas (769px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --header-height: 112px;
  }

  html {
    scroll-padding-top: var(--header-height, 112px);
  }

  section[id], .hero-section {
    scroll-margin-top: calc(var(--header-height, 112px) + 16px);
  }

  .header-spacer {
    height: var(--header-height, 112px);
  }

  /* Cabecera Flotante Limpia en Tablets */
  .navbar {
    padding: 0 1.25rem;
    min-height: 68px;
    width: 100%;
    max-width: 100%;
    gap: 0.75rem;
    justify-content: space-between;
  }

  .header.scrolled .navbar {
    min-height: 60px;
  }

  .brand-logo-img {
    height: 58px;
    max-width: 220px;
  }

  .header.scrolled .brand-logo-img {
    height: 48px;
  }

  /* En tablets el menú principal se navega holgadamente mediante la barra de sub-navegación y el drawer */
  .desktop-tablet-nav {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  /* Barra de Pills Flotantes Deslizable Visible en Tablets */
  .mobile-subnav-bar {
    display: block !important;
    padding: 0.45rem 1.25rem 0.55rem;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex-shrink: 0;
  }

  .nav-btn-intranet {
    display: inline-flex !important;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .nav-action-quote {
    display: none !important; /* Oculta Diagnóstico en tablet para dar máxima holgura */
  }

  .nav-action-contact {
    display: inline-flex !important;
    padding: 0.48rem 1.15rem !important;
    font-size: 0.82rem !important;
  }

  /* Carrusel a ancho completo sin desbordes */
  .hero-carousel-fullwidth, .hero-carousel-track {
    min-height: 560px;
    height: auto;
    width: 100%;
    max-width: 100%;
  }

  .slide-content-center {
    padding: 3rem 1.5rem 5rem;
    min-height: 560px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .slide-main-title {
    font-size: clamp(2rem, 3.8vw, 2.75rem);
  }

  .radar-constellation {
    width: 380px;
    height: 380px;
    left: -80px;
    opacity: 0.45;
  }

  /* Secciones y Grillas en 1024px */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    max-width: 100%;
    width: 100%;
    margin: 1.5rem auto 0;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-image-card {
    max-width: 100%;
    width: 100%;
  }

  .floating-stat-badge {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    animation: none !important;
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 0.9rem 1.25rem;
  }

  .metrics-grid-lighter {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid-lighter .metric-item:nth-child(2) {
    border-right: none;
  }

  .metrics-grid-lighter .metric-item:nth-child(1),
  .metrics-grid-lighter .metric-item:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .partners-trust-bar::before,
  .partners-trust-bar::after {
    width: 50px;
  }

  .partners-trust-track {
    gap: 2.75rem;
    animation-duration: 28s;
  }

  .partner-badge-item {
    font-size: 0.88rem;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .services-tabs-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .tab-btn {
    font-size: 0.84rem;
    padding: 0.75rem 0.65rem;
    gap: 0.45rem;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .service-card-deep {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .service-benefits-box .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .callback-form {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .calc-modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .calc-support-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .testimonials-grid .testimonial-card:nth-child(3) {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ===================================================================
   RESPONSIVIDAD MÓVIL PROFESIONAL (HASTA 768px)
   Asegura legibilidad total, imágenes 100% visibles y cero desbordes.
   =================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 100px;
  }

  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
  }

  html {
    scroll-padding-top: var(--header-height, 100px);
  }

  section[id], .hero-section {
    scroll-margin-top: calc(var(--header-height, 100px) + 12px);
  }

  .header-spacer {
    height: var(--header-height, 100px);
  }

  .container {
    padding: 0 1.15rem;
  }

  .section-header {
    margin: 0 auto 2.25rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 5.2vw, 2.15rem);
    line-height: 1.25;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .section-desc {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Cinta Superior y Barra de Navegación */
  .top-info-left {
    display: none;
  }

  .top-info-container {
    justify-content: center;
    padding: 0 0.75rem;
  }

  .navbar {
    min-height: 64px;
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .brand-logo-img {
    height: 54px;
    max-width: 200px;
  }

  .header.scrolled .navbar {
    min-height: 58px;
  }

  .header.scrolled .brand-logo-img {
    height: 46px;
  }

  /* En móviles el menú inline se oculta y se activa el toggle y la barra de sub-navegación */
  .desktop-tablet-nav {
    display: none !important;
  }

  .nav-btn-intranet {
    display: none !important;
  }

  .nav-action-quote {
    display: none !important;
  }

  .nav-action-contact {
    display: inline-flex !important;
    padding: 0.42rem 0.95rem !important;
    font-size: 0.78rem !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .mobile-subnav-bar {
    display: block !important;
  }

  /* Carrusel Principal a Pantalla Móvil Completa e Imágenes Nítidas */
  .hero-carousel-fullwidth, .hero-carousel-track {
    min-height: 580px;
    height: auto;
    width: 100%;
    max-width: 100%;
  }

  .slide-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .slide-bg-media picture,
  .slide-bg-media .slide-bg-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 25%; /* Mantiene visibles las caras y el entorno de consultoría */
  }

  .slide-blue-overlay {
    background: 
      radial-gradient(ellipse at 50% 35%, rgba(10, 32, 64, 0.22) 0%, rgba(6, 20, 42, 0.45) 65%, rgba(4, 14, 28, 0.68) 100%),
      linear-gradient(180deg, rgba(8, 22, 44, 0.18) 0%, rgba(10, 30, 58, 0.12) 40%, rgba(4, 12, 24, 0.60) 100%);
  }

  .slide-content-center {
    padding: 2.25rem 1.15rem 4.5rem;
    min-height: 580px;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  .slide-content-center::before {
    width: 100%;
    height: 92%;
    background: radial-gradient(ellipse at center, rgba(3, 14, 30, 0.35) 0%, rgba(3, 14, 30, 0.12) 60%, transparent 80%);
  }

  .slide-badge-tech {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
    max-width: 95%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }

  .slide-main-title {
    font-size: clamp(1.65rem, 5.5vw, 2.15rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 20px rgba(0, 0, 0, 0.85);
  }

  .slide-description {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.35rem;
    max-width: 95%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  }

  .slide-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
    align-items: center;
  }

  .btn-slide-primary, .btn-slide-glass {
    padding: 0.78rem 1.25rem;
    font-size: 0.86rem;
    width: 100%;
    max-width: 290px;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .carousel-arrow-edge {
    width: 34px;
    height: 34px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .carousel-arrow-edge.prev {
    left: 4px;
  }

  .carousel-arrow-edge.next {
    right: 4px;
  }

  .radar-constellation {
    width: 240px;
    height: 240px;
    left: -110px;
    opacity: 0.22;
  }

  .hero-progress-line {
    display: none;
  }

  .hero-carousel-pagination-bar {
    bottom: 1rem;
  }

  /* Sección Plataforma Overview & Dashboard Mockup */
  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }

  .platform-overview-section .container {
    padding: 0 1.15rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-content {
    gap: 1.15rem;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
    white-space: normal;
    box-sizing: border-box;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .hero-visual {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem auto 0;
    gap: 0.85rem;
    display: flex;
    align-items: stretch;
  }

  .hero-image-card {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px -6px rgba(2, 132, 199, 0.2);
    overflow: hidden;
  }

  .hero-image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .floating-stat-badge {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    animation: none;
    padding: 0.85rem 1.15rem;
    box-shadow: var(--shadow-sm);
    justify-content: flex-start;
  }

  .badge-top-right, .badge-bottom-left {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  /* Cinta Marquee */
  .marquee-ticker-container::before,
  .marquee-ticker-container::after {
    width: 35px;
  }

  .marquee-item {
    font-size: 0.78rem;
    gap: 0.5rem;
  }

  /* Métricas y Resultados */
  .metrics-section {
    padding: 2.5rem 0;
  }

  .metrics-grid-lighter {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .metrics-grid-lighter .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.35rem 1.15rem;
  }

  .metrics-grid-lighter .metric-item:last-child {
    border-bottom: none;
  }

  .metrics-grid-lighter .metric-value {
    font-size: 2.35rem;
  }

  /* Barra de Alianzas y Sistemas - Carrusel Móvil Fluido sin Cortes */
  .partners-trust-bar {
    padding: 1.15rem 0;
  }

  .partners-trust-bar::before,
  .partners-trust-bar::after {
    width: 35px;
  }

  .partners-trust-track {
    gap: 2.25rem;
    animation-duration: 25s;
  }

  .partner-badge-item {
    font-size: 0.85rem;
    gap: 0.65rem;
  }

  .partner-badge-icon {
    width: 36px;
    height: 36px;
  }

  /* Áreas de Práctica / Especialidades */
  .practice-areas-section {
    padding: 3.5rem 0 2.5rem;
    overflow: hidden;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .practice-card {
    padding: 1.35rem 1.15rem;
    gap: 0.85rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .practice-title {
    white-space: normal;
    word-break: normal;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .practice-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Catálogo de Servicios ERP */
  .services-section {
    padding: 2.5rem 0;
  }

  .services-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem 0.75rem;
    margin-bottom: 1.25rem;
    justify-content: flex-start;
  }

  .services-tabs-nav::-webkit-scrollbar {
    height: 4px;
  }

  .services-tabs-nav::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.35);
    border-radius: 4px;
  }

  .tab-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0.65rem 1.15rem;
    gap: 0.45rem;
    border-radius: 9999px;
  }

  .tab-btn svg {
    width: 16px;
    height: 16px;
  }

  .service-card-deep {
    grid-template-columns: 1fr;
    padding: 1.35rem 1.15rem;
    gap: 1.35rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .service-card-deep h3 {
    font-size: 1.35rem !important;
    line-height: 1.25;
  }

  .service-features-list {
    gap: 0.55rem;
    margin: 1rem 0;
  }

  .service-feature-item {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .service-benefits-box {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-sm);
  }

  .service-benefits-box .benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .benefits-title {
    font-size: 0.95rem;
  }

  .benefit-card-mini {
    padding: 0.7rem 0.85rem;
  }

  .benefit-card-mini h4 {
    font-size: 0.86rem;
  }

  .benefit-card-mini p {
    font-size: 0.8rem;
  }

  /* Barra de Asesoría Express */
  .callback-strip-section {
    padding: 3rem 0;
  }

  .callback-strip-title {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  }

  .callback-strip-desc {
    font-size: 0.88rem;
  }

  .callback-form {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100%;
  }

  .callback-dropdown-menu {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }

  .callback-dropdown-item {
    white-space: normal;
    padding: 0.75rem 1rem;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .callback-dropdown-toggle {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .callback-input {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  /* Calculadora de Diagnóstico */
  .calculator-section {
    padding: 3.5rem 0;
    overflow: hidden;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
    padding: 1.25rem 0.95rem;
    gap: 1.75rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .calc-group-title {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .calc-modules-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .calc-module-card {
    padding: 0.85rem 0.95rem;
  }

  .calc-module-label {
    font-size: 0.84rem;
  }

  .calc-support-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .support-radio-card {
    padding: 0.75rem 0.85rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .calc-summary-panel {
    padding: 1.25rem 0.95rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .calc-summary-title {
    font-size: 1.15rem;
  }

  .calc-breakdown-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
  }

  .calc-breakdown-item span:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .calc-breakdown-item span:last-child {
    font-size: 0.9rem;
    color: var(--text-primary);
  }

  .calc-actions {
    gap: 0.65rem;
  }

  .calc-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.86rem;
    box-sizing: border-box;
  }

  /* Testimonios en Móvil (1 Columna Fluida sin Cortes) */
  .testimonials-section {
    padding: 3.5rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .testimonial-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .testimonial-text {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
  }

  /* Preguntas Frecuentes */
  .faq-section {
    padding: 3.5rem 0;
  }

  .faq-question {
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .faq-answer {
    padding: 0 1.15rem;
  }

  .faq-answer p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* Sección de Contacto - Atención Directa 100% Adaptable sin Cortes */
  #contacto {
    scroll-margin-top: 130px;
  }

  .contact-section {
    padding-top: 3.5rem;
    padding-bottom: 7.5rem !important; /* Espacio generoso para que los botones flotantes jamás tapen el formulario */
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .contact-info-card, .contact-form-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: var(--radius-md) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .contact-info-list {
    gap: 1.15rem;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-info-item {
    gap: 0.75rem;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .contact-info-item > div:last-child {
    min-width: 0 !important;
    flex: 1 !important;
    max-width: 100% !important;
  }

  .contact-info-value {
    font-size: 0.9rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .contact-urgency-box,
  .contact-urgency-box .btn,
  .contact-wa-direct-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.35 !important;
    padding: 0.85rem 1rem !important;
    min-height: 48px !important;
    height: auto !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    font-size: 0.88rem !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .form-input, .form-select, .form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
  }

  select.form-select {
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .contact-actions-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
  }

  .contact-actions-group .btn {
    white-space: normal !important;
    word-break: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
    padding: 0.85rem 1rem !important;
    min-height: 48px !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
  }

  /* Pie de Página */
  .footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-logo-img {
    height: 70px;
    max-width: 220px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }

  /* Botones e Interactividad Flotante */
  .whatsapp-floating-container {
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-trigger-btn {
    width: 56px;
    height: 56px;
  }

  .whatsapp-chat-popup {
    bottom: 72px;
    right: 0;
    width: min(340px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .floating-page-nav-btn {
    bottom: 84px;
    right: 25px;
    width: 40px;
    height: 40px;
  }

  .ambient-glow-aura {
    display: none;
  }
}

/* ===================================================================
   PANTALLAS ULTRA-COMPACTAS (HASTA 480px: iPhone SE, Galaxy Compact)
   =================================================================== */
@media (max-width: 480px) {
  :root {
    --header-height: 98px;
  }

  html {
    scroll-padding-top: var(--header-height, 98px);
  }

  section[id], .hero-section {
    scroll-margin-top: calc(var(--header-height, 98px) + 8px);
  }

  #contacto {
    scroll-margin-top: 120px;
  }

  .header-spacer {
    height: var(--header-height, 98px);
  }

  .top-info-bar {
    padding: 0.28rem 0;
    font-size: 0.72rem;
  }

  .navbar {
    min-height: 58px;
    padding: 0 0.75rem;
  }

  .brand-logo-img {
    height: 48px;
    max-width: 175px;
  }

  .header.scrolled .brand-logo-img {
    height: 40px;
  }

  .mobile-subnav-bar {
    padding: 0.3rem 0.45rem;
  }

  .mobile-subnav-chip {
    padding: 0.28rem 0.65rem;
    font-size: 0.74rem;
  }

  .partners-trust-bar {
    padding: 0.95rem 0;
  }

  .partners-trust-track {
    gap: 1.75rem;
    animation-duration: 22s;
  }

  .partner-badge-item {
    font-size: 0.8rem;
    gap: 0.55rem;
  }

  .partner-badge-icon {
    width: 32px;
    height: 32px;
  }

  .partner-badge-icon svg {
    width: 17px;
    height: 17px;
  }

  .carousel-arrow-edge {
    display: none; /* En pantallas muy pequeñas se ocultan las flechas para dejar 100% libre el contenido; el deslizamiento táctil funciona perfectamente */
  }

  .slide-content-center {
    padding: 1.65rem 0.85rem 3.6rem;
    min-height: 520px;
  }

  .slide-main-title {
    font-size: 1.5rem;
  }

  .btn-slide-primary, .btn-slide-glass {
    max-width: 100%;
    min-height: 46px;
    padding: 0.72rem 1rem;
  }

  .hero-carousel-pagination-bar {
    bottom: 0.85rem;
  }

  .carousel-num-btn {
    padding: 0.25rem 0.45rem;
  }

  .num-digit {
    font-size: 0.72rem;
  }

  .contact-section {
    padding-top: 3rem;
    padding-bottom: 8.5rem !important;
  }

  .contact-info-card, .contact-form-card {
    padding: 1.15rem 0.85rem !important;
  }

  .contact-urgency-box .btn,
  .contact-actions-group .btn {
    font-size: 0.82rem !important;
    padding: 0.8rem 0.75rem !important;
  }
}



/* ===================================================================
   PANEL DE ANALÍTICA, REGISTRO DE UBICACIÓN Y ESTADÍSTICAS
   =================================================================== */

/* Botón Flotante Público Oculto para Proteger la Privacidad de la Intranet */
.floating-analytics-trigger {
  display: none !important;
}

/* Modal Backdrop */
.analytics-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.analytics-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Contenedor del Modal */
.analytics-modal-container {
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.analytics-modal-backdrop.active .analytics-modal-container {
  transform: translateY(0) scale(1);
}

/* Encabezado del Modal */
.analytics-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.analytics-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.analytics-header-icon {
  width: 44px;
  height: 44px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.analytics-title-group h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.analytics-title-group p {
  font-size: 0.825rem;
  color: #64748b;
  margin: 0;
}

.analytics-auto-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.analytics-close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.analytics-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Barra de Filtros y Acciones */
.analytics-controls-bar {
  padding: 0.85rem 1.75rem;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.analytics-filter-pills {
  display: flex;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 10px;
}

.analytics-pill {
  border: none;
  background: transparent;
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.analytics-pill.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.analytics-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Alertas de Notificación */
.analytics-alert {
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.analytics-alert.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.analytics-alert.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Cuerpo con Scroll */
.analytics-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #f8fafc;
}

/* Grid de KPIs */
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.analytics-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s;
}

.analytics-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.kpi-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.kpi-icon-box.blue {
  background: #e0f2fe;
}

.kpi-icon-box.emerald {
  background: #d1fae5;
}

.kpi-icon-box.purple {
  background: #ede9fe;
}

.kpi-icon-box.amber {
  background: #fef3c7;
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-title {
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
}

.kpi-info h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.1rem 0;
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* Gráficas */
.analytics-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.analytics-chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.analytics-chart-card.wide {
  grid-column: 1 / 2;
}

.chart-card-header {
  margin-bottom: 0.85rem;
}

.chart-card-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.chart-card-header p {
  font-size: 0.775rem;
  color: #64748b;
  margin: 0;
}

.chart-canvas-wrapper {
  position: relative;
  width: 100%;
}

/* Tabla de Datos de Accesos */
.analytics-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-card-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.table-card-header p {
  font-size: 0.775rem;
  color: #64748b;
  margin: 0;
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
}

.analytics-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.analytics-data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.analytics-data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.analytics-data-table tr:hover td {
  background: #f8fafc;
}

.analytics-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.analytics-map-link:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Responsividad para móviles y tablets */
@media (max-width: 992px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-charts-grid {
    grid-template-columns: 1fr;
  }
  .analytics-chart-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .floating-analytics-trigger {
    bottom: 84px;
    left: 16px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
  .analytics-btn-label {
    display: none;
  }
  .analytics-kpi-grid {
    grid-template-columns: 1fr;
  }
  .analytics-modal-container {
    max-height: 95vh;
  }
  .analytics-modal-header {
    padding: 1rem;
  }
  .analytics-modal-body {
    padding: 1rem;
  }
}

/* ===================================================================
   ESTILOS DE LA SECCIÓN PRIVADA DE INTRANET & LOGIN SEGURO
   =================================================================== */

.intranet-login-backdrop {
  z-index: 10001;
}

.intranet-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  border: 1px solid #cbd5e1;
  padding: 2.25rem 2rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.analytics-modal-backdrop.active .intranet-login-card {
  transform: translateY(0) scale(1);
}

.intranet-login-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.intranet-shield-icon {
  width: 110px;
  height: 110px;
  background: #ffffff;
  background-image: radial-gradient(circle at center, #ffffff 40%, #eff6ff 100%);
  color: #0284c7;
  border: 1.5px solid #bfdbfe;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.intranet-shield-icon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px -4px rgba(2, 132, 199, 0.24);
}

.intranet-shield-icon img,
.intranet-shield-logo {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
}

.intranet-login-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
}

.intranet-login-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.intranet-card-close {
  position: absolute;
  top: -10px;
  right: -8px;
}

.intranet-alert-box {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.825rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.intranet-alert-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.intranet-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group-intranet {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-intranet label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.intranet-input {
  width: 100%;
  padding: 0.75rem 2.8rem 0.75rem 2.8rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s;
  font-family: inherit;
}

.intranet-input:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-toggle-pass {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  color: #64748b;
  transition: opacity 0.2s;
}

.btn-toggle-pass:hover {
  opacity: 0.8;
}

.intranet-submit-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.intranet-login-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ===================================================================
   PESTAÑAS DE INTRANET: ANALÍTICA WEB VS REPORTE SQL DE VENTAS
   =================================================================== */
.intranet-subnav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.intranet-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.intranet-tab-btn:hover {
  color: #0f172a;
}

.intranet-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-badge-new {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Visor de Código SQL en Intranet */
.sql-viewer-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  border: 1px solid #334155;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35);
  margin-top: 1.5rem;
}

.sql-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sql-viewer-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #38bdf8;
}

.sql-code-block {
  padding: 1.25rem;
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  max-height: 380px;
  overflow-y: auto;
  white-space: pre;
  color: #94a3b8;
  background: #0b1329;
}

/* Badges de Estado de Cobro */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.badge-status.cobrada {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-status.pendiente {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-status.parcial {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.btn-sql-copy {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-sql-copy:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.btn-sql-copy.copied {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* ===================================================================
   RESPONSIVE Y ACCESIBILIDAD MÓVIL AVANZADA (GOOGLE MOBILE-FIRST)
   =================================================================== */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Scroll táctil fluido y ergonómico en dispositivos móviles */
.table-responsive-wrapper,
.mobile-subnav-bar,
.partners-trust-wrapper {
  -webkit-overflow-scrolling: touch;
}

/* Área táctil mínima recomendada para SEO y usabilidad móvil (Google PageSpeed) */
.btn,
.mobile-subnav-chip,
.mobile-toggle,
.mobile-drawer-link,
.contact-btn-submit {
  min-height: 44px;
}

/* Dispositivos ultracompactos (320px - 360px) */
@media (max-width: 360px) {
  :root {
    --header-height: 92px;
  }

  .container {
    padding: 0 0.75rem;
  }

  .navbar {
    min-height: 54px;
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 38px;
    max-width: 135px;
  }

  .header.scrolled .brand-logo-img {
    height: 34px;
  }

  .nav-action-contact {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.7rem !important;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .calculator-card {
    padding: 1.25rem 0.75rem;
  }
}
