/**
 * Estilos Principales - Soluciones Compunek Colombia
 * Réplica de alta fidelidad basada exactamente en el diseño de referencia
 * Todos los comentarios y documentación en español
 */

@import url('./variables.css');

/* ----------------------------------------------------
   1. RESET Y ESTILOS BASE
---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark-primary);
  background-color: var(--color-bg-dark);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------
   2. CONTENEDORES Y TIPOGRAFÍA
---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-cyan {
  color: var(--color-cyan) !important;
}

.text-blue {
  color: var(--color-blue-primary) !important;
}

/* ----------------------------------------------------
   3. BARRA DE NAVEGACIÓN SUPERIOR (HEADER)
---------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(8, 24, 47, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  padding: 0.65rem 0;
  background: rgba(8, 24, 47, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo con isotipo y texto oficial */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 184, 217, 0.2);
  border: 1.5px solid rgba(0, 184, 217, 0.4);
  flex-shrink: 0;
}

.brand-name-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Navegación de escritorio */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links-box {
  display: flex;
  align-items: center;
  background: transparent;
  gap: 0.35rem;
}

.nav-pill-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-pill-item.active {
  background: var(--color-blue-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(8, 120, 249, 0.35);
}

.nav-pill-item:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Grupo de acciones del header (WhatsApp y Hamburguesa) */
.header-action-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Botón WhatsApp del Header */
.btn-header-wsp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-whatsapp);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-header-wsp:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Botón menú móvil (hamburguesa accesible y táctil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.4);
}

.menu-toggle span {
  height: 2.5px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
  transform-origin: center;
}

/* ----------------------------------------------------
   4. HERO PRINCIPAL
---------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 5.75rem;
  background: var(--color-bg-dark);
  overflow: hidden;
}

/* ====================================================
   FONDO DINÁMICO TECNOLÓGICO DEL HERO CON VIDEO
==================================================== */
.hero-dynamic-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Video cinematográfico de fondo en bucle */
.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.70;
  filter: contrast(1.05) saturate(1.15) brightness(0.95);
  transition: opacity 0.8s ease-in-out;
  will-change: transform;
  z-index: 0;
}

/* Superposición cinematográfica degradada para máximo contraste y legibilidad */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(8, 24, 47, 0.45) 0%, rgba(8, 24, 47, 0.72) 70%, rgba(4, 14, 33, 0.90) 100%),
    linear-gradient(180deg, rgba(8, 24, 47, 0.60) 0%, rgba(8, 24, 47, 0.25) 50%, rgba(8, 24, 47, 0.88) 100%);
  z-index: 1;
}

/* Cuadrícula cibernética con desvanecimiento radial de perspectiva */
.hero-cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 184, 217, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 184, 217, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.95) 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.95) 10%, transparent 75%);
  opacity: 0.75;
}

/* Orbes de luz de gradiente ambiental que flotan suavemente */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  will-change: transform, opacity;
  pointer-events: none;
}

.hero-glow-cyan {
  top: 8%;
  right: 12%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 184, 217, 0.18) 0%, rgba(0, 184, 217, 0.04) 55%, transparent 70%);
  animation: floatOrbCyan 18s ease-in-out infinite alternate;
}

.hero-glow-blue {
  bottom: 0%;
  left: 4%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(8, 120, 249, 0.22) 0%, rgba(8, 120, 249, 0.05) 55%, transparent 70%);
  animation: floatOrbBlue 22s ease-in-out infinite alternate;
}

.hero-glow-center {
  top: 38%;
  left: 45%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 184, 217, 0.12) 0%, transparent 65%);
  animation: floatOrbCenter 15s ease-in-out infinite alternate;
}

@keyframes floatOrbCyan {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 30px) scale(1.08); }
  100% { transform: translate(25px, -20px) scale(0.94); }
}

@keyframes floatOrbBlue {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -35px) scale(1.1); }
  100% { transform: translate(-30px, 25px) scale(0.92); }
}

@keyframes floatOrbCenter {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
  50% { transform: translate(-45%, -55%) scale(1.15); opacity: 0.65; }
  100% { transform: translate(-55%, -48%) scale(0.95); opacity: 0.45; }
}

/* Canvas interactivo de nodos y conexiones tecnológicas */
.hero-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
}

/* ====================================================
   HERO ENFOCADO Y DE MÁXIMA JERARQUÍA TIPOGRÁFICA
==================================================== */
.hero-container-focused {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-content-center {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Insignia superior interactiva */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 184, 217, 0.08);
  border: 1px solid rgba(0, 184, 217, 0.25);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  animation: pulseLiveDot 2s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.badge-text {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Título monumental con acento en gradiente cian */
.hero-title-main {
  font-family: var(--font-heading);
  font-size: clamp(2.45rem, 4.6vw, 4.25rem);
  font-weight: 850;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 1.35rem;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00b8d9 0%, #38bdf8 50%, #0878f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 12px rgba(0, 184, 217, 0.25));
}

/* Párrafo descriptivo con tipografía amplia y legible */
.hero-description-main {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  max-width: 820px;
  line-height: 1.65;
}

.hero-description-main strong {
  color: #ffffff;
  font-weight: 600;
}

/* Fila de botones de llamada a la acción */
.hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-bottom: 3.25rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-blue-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(8, 120, 249, 0.35);
  transition: all var(--transition-normal);
}

.btn-hero-primary:hover {
  background: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 120, 249, 0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* 4 Pilares de confianza en tarjetas corporativas de superficie oscura */
.hero-features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.hero-feature-pill {
  background: var(--color-bg-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-normal);
}

.hero-feature-pill:hover {
  background: #163a6a;
  border-color: rgba(0, 184, 217, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pill-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 184, 217, 0.12);
  border: 1px solid rgba(0, 184, 217, 0.25);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-texts {
  display: flex;
  flex-direction: column;
}

.pill-texts strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.pill-texts span {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  line-height: 1.3;
}

/* Onda decorativa suave que conecta el Hero con la sección de Servicios */
.hero-bottom-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
  transform: translateY(1px); /* Evita rendijas de renderizado por subpíxeles */
}

.hero-bottom-wave svg {
  position: relative;
  display: block;
  width: 100%;
  height: 64px;
}

.hero-bottom-wave path {
  fill: var(--color-bg-light);
}

@media (max-width: 992px) {
  .hero-bottom-wave svg {
    height: 48px;
  }
}

@media (max-width: 768px) {
  .hero-bottom-wave svg {
    height: 36px;
  }
}

/* ----------------------------------------------------
   5. SECCIÓN: NUESTROS SERVICIOS (FONDO CLARO)
---------------------------------------------------- */
.services-section-ref {
  background-color: var(--color-bg-light);
  padding: var(--section-padding-y) 0;
}

.section-title-line {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-bg-dark);
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.section-subtitle-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--text-dark-secondary);
  margin-bottom: 2.75rem;
  font-weight: 500;
}

.section-subtitle-line::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  background-color: var(--color-blue-primary);
  border-radius: 2px;
}

/* 6 Tarjetas en fila horizontal */
.services-row-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.service-card-ref {
  background: var(--color-bg-light-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.service-card-ref:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-blue-primary);
}

.service-img-thumb {
  height: 115px;
  width: 100%;
  overflow: hidden;
  background-color: #0b1c38;
}

.service-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card-ref:hover .service-img-thumb img {
  transform: scale(1.06);
}

.service-info-box {
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-name-ref {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.service-desc-ref {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-arrow-btn {
  align-self: flex-end;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-blue-primary);
  color: var(--color-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.service-card-ref:hover .service-arrow-btn {
  background: var(--color-blue-primary);
  color: #ffffff;
}

/* ----------------------------------------------------
   5.1 SECCIÓN: ¿POR QUÉ ELEGIRNOS? (FONDO BLANCO CORPORATIVO)
---------------------------------------------------- */
.why-us-section {
  background: #ffffff;
  padding: var(--section-padding-y) 0;
  position: relative;
  border-top: 1px solid var(--color-border-light);
}

.why-us-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.why-us-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 120, 249, 0.08);
  border: 1px solid rgba(8, 120, 249, 0.2);
  color: var(--color-blue-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.why-us-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-blue-primary);
}

.why-us-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--color-bg-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.why-us-subtitle {
  font-size: 1.05rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-us-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 2.2rem 1.6rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.why-us-card:hover {
  background: #ffffff;
  transform: translateY(-5px);
  border-color: var(--color-blue-primary);
  box-shadow: var(--shadow-card-hover);
}

.why-us-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-primary);
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 8px rgba(8, 24, 47, 0.05);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.why-us-card:hover .why-us-icon-wrapper {
  background: var(--color-blue-primary);
  color: #ffffff;
  border-color: var(--color-blue-primary);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(8, 120, 249, 0.25);
}

.why-us-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.why-us-card-desc {
  font-size: 0.925rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
  margin: 0;
}

.why-us-card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-blue-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.why-us-card:hover .why-us-card-line {
  opacity: 1;
}

/* Responsividad para ¿Por qué elegirnos? */
@media (max-width: 1024px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .why-us-section {
    padding: 3.5rem 0;
  }
  .why-us-header {
    margin-bottom: 2.25rem;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .why-us-card {
    padding: 1.65rem 1.35rem;
  }
}

/* ----------------------------------------------------
   6. SECCIÓN: NUESTROS SOFTWARE EMPRESARIALES (FONDO OSCURO)
---------------------------------------------------- */
.software-section-ref {
  background: var(--color-bg-dark);
  padding: var(--section-padding-y) 0;
  position: relative;
  background-image: radial-gradient(rgba(0, 184, 217, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.software-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.75rem;
}

.btn-header-platforms {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all var(--transition-fast);
}

.btn-header-platforms:hover {
  background: rgba(0, 184, 217, 0.15);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* 3 Tarjetas de Software */
.software-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.soft-card-box {
  background: var(--color-bg-dark-card);
  border-radius: 16px;
  padding: 2.2rem 1.6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.soft-card-box:hover {
  transform: translateY(-6px);
}

/* Tarjeta CompuFac */
.soft-card-compufac,
.soft-card-compufact {
  border-color: rgba(0, 184, 217, 0.35);
}
.soft-card-compufac:hover,
.soft-card-compufact:hover {
  border-color: #00b8d9;
  box-shadow: 0 16px 40px rgba(0, 184, 217, 0.2);
}

/* Tarjeta CompuNotas */
.soft-card-compunotas {
  border-color: rgba(16, 185, 129, 0.35);
}
.soft-card-compunotas:hover {
  border-color: #10b981;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.2);
}

/* Tarjeta CompuParking */
.soft-card-compuparking {
  border-color: rgba(245, 158, 11, 0.35);
}
.soft-card-compuparking:hover {
  border-color: #f59e0b;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.2);
}

.soft-card-left {
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.soft-logo-container {
  height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.soft-logo-img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.soft-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.soft-card-subtitle {
  font-size: 0.925rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.soft-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.soft-check-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
}

.check-round-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.soft-card-compufac .check-round-icon,
.soft-card-compufact .check-round-icon {
  background: rgba(0, 184, 217, 0.15);
  color: #00b8d9;
  border: 1px solid rgba(0, 184, 217, 0.35);
}

.soft-card-compunotas .check-round-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.soft-card-compuparking .check-round-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.btn-soft-vermas {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-blue-primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  box-shadow: 0 4px 14px rgba(8, 120, 249, 0.3);
  transition: all var(--transition-fast);
}

.btn-soft-vermas:hover {
  background: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(8, 120, 249, 0.45);
}

.soft-card-compunotas .btn-soft-vermas {
  background: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.soft-card-compunotas .btn-soft-vermas:hover {
  background: #0d946b;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.soft-card-compuparking .btn-soft-vermas {
  background: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.soft-card-compuparking .btn-soft-vermas:hover {
  background: #d97706;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* Fila de acciones de tarjeta (Botones WhatsApp y Video) */
.soft-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.btn-soft-video {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  backdrop-filter: blur(4px);
}

.btn-soft-video svg {
  color: inherit;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-soft-video:hover svg {
  transform: scale(1.15);
}

.btn-soft-video:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.soft-card-compufac .btn-soft-video:hover {
  border-color: #00b8d9;
  color: #00e5ff;
}

.soft-card-compunotas .btn-soft-video:hover {
  border-color: #10b981;
  color: #34d399;
}

.soft-card-compuparking .btn-soft-video:hover {
  border-color: #f59e0b;
  color: #fbbf24;
}

/* Columna derecha con mockup vectorial o video */
.soft-card-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-normal);
}

.soft-card-box:hover .soft-card-graphic {
  transform: scale(1.03);
}

.soft-graphic-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

/* Contenedor interactivo de video en la tarjeta */
.soft-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  background: #020b18;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.soft-card-compufac .soft-video-wrapper {
  border-color: rgba(0, 184, 217, 0.4);
}
.soft-card-compufac:hover .soft-video-wrapper {
  border-color: #00b8d9;
  box-shadow: 0 12px 30px rgba(0, 184, 217, 0.25);
}

.soft-card-compunotas .soft-video-wrapper {
  border-color: rgba(16, 185, 129, 0.4);
}
.soft-card-compunotas:hover .soft-video-wrapper {
  border-color: #10b981;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.soft-card-compuparking .soft-video-wrapper {
  border-color: rgba(245, 158, 11, 0.4);
}
.soft-card-compuparking:hover .soft-video-wrapper {
  border-color: #f59e0b;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.soft-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #051021;
}

/* Badge indicativo de video demo */
.soft-video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(3, 11, 23, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.soft-video-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  display: inline-block;
  animation: pulseVideoDot 1.8s infinite;
}

.soft-card-compunotas .soft-video-badge-dot {
  background: #10b981;
}

.soft-card-compuparking .soft-video-badge-dot {
  background: #f59e0b;
}

@keyframes pulseVideoDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Botón play flotante centrado sobre el video */
.soft-play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(8, 24, 47, 0.88);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
  z-index: 3;
  backdrop-filter: blur(4px);
}

.soft-play-overlay-btn svg {
  margin-left: 3px;
  transition: transform var(--transition-fast);
}

.soft-card-compufac .soft-play-overlay-btn {
  border-color: #00e5ff;
  color: #00e5ff;
}

.soft-card-compunotas .soft-play-overlay-btn {
  border-color: #10b981;
  color: #10b981;
}

.soft-card-compuparking .soft-play-overlay-btn {
  border-color: #f59e0b;
  color: #f59e0b;
}

.soft-play-overlay-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(8, 24, 47, 0.98);
}

.soft-video-wrapper.is-playing .soft-play-overlay-btn {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ----------------------------------------------------
   MODAL DE VIDEO DE DEMOSTRACIÓN DE SOFTWARE
---------------------------------------------------- */
.soft-modal-video-container {
  max-width: 800px;
  width: 95%;
  background: linear-gradient(180deg, #0d213a 0%, #081628 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  padding: 1.75rem 1.85rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 184, 217, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  box-sizing: border-box;
}

.soft-modal-video-container .modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 25;
}

.soft-modal-video-container .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.soft-modal-video-header {
  padding-right: 2.75rem; /* Evita colisión con el botón de cierre */
}

.soft-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #00e5ff;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.soft-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.soft-modal-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

.soft-modal-player-box {
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  background: #020710;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.soft-modal-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.soft-modal-iframe-container {
  width: 100%;
  height: 100%;
}

.soft-modal-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.soft-modal-fallback {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.soft-modal-fallback-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.3));
}

.soft-modal-fallback h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.soft-modal-fallback p {
  color: #cbd5e1;
  font-size: 0.825rem;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.4;
}

.soft-modal-footer {
  width: 100%;
  margin-top: 0.25rem;
}

.btn-soft-modal-wsp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
  color: #ffffff !important;
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  word-break: normal;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-soft-modal-wsp:hover {
  background: linear-gradient(135deg, #2ae06d 0%, #22bd5c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.btn-soft-modal-wsp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Adaptación móvil optimizada para el modal de video */
@media (max-width: 640px) {
  .soft-modal-video-container {
    width: 94%;
    max-width: 440px;
    padding: 1.25rem 1rem 1rem;
    border-radius: 16px;
    gap: 0.85rem;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
  }

  .soft-modal-video-container .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .soft-modal-video-header {
    padding-right: 2.25rem;
  }

  .soft-modal-tag {
    font-size: 0.685rem;
    margin-bottom: 0.2rem;
  }

  .soft-modal-title {
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
  }

  .soft-modal-desc {
    font-size: 0.785rem;
    line-height: 1.35;
  }

  .soft-modal-player-box {
    min-height: 180px;
  }

  .soft-modal-fallback {
    padding: 0.85rem 0.65rem;
    gap: 0.35rem;
  }

  .soft-modal-fallback-icon {
    font-size: 1.65rem;
    margin-bottom: 0.15rem;
  }

  .soft-modal-fallback h4 {
    font-size: 0.925rem;
    line-height: 1.25;
  }

  .soft-modal-fallback p {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .btn-soft-modal-wsp {
    font-size: 0.825rem;
    padding: 0.75rem 0.85rem;
    gap: 0.45rem;
    line-height: 1.3;
  }

  .btn-soft-modal-wsp svg {
    width: 17px;
    height: 17px;
  }
}

/* ----------------------------------------------------
   BLOQUE INFORMATIVO EXPLICATIVO DEL ECOSISTEMA DE SOFTWARE
---------------------------------------------------- */
.software-info-band {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.software-info-intro {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 2.5rem;
}

.software-info-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(0, 184, 217, 0.1);
  border: 1px solid rgba(0, 184, 217, 0.25);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.software-info-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.software-info-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.software-info-desc strong {
  color: #ffffff;
}

/* Cuadrícula de 4 pilares y ventajas del software */
.software-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.software-feature-box {
  background: var(--color-bg-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.software-feature-box:hover {
  background: #163a6a;
  border-color: rgba(0, 184, 217, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.software-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 184, 217, 0.12);
  border: 1px solid rgba(0, 184, 217, 0.25);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.software-feature-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.software-feature-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* Banner interactivo de solicitud de demostración guiada */
.software-demo-banner {
  background: var(--color-bg-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.software-demo-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.software-demo-sub {
  font-size: 0.925rem;
  color: #cbd5e1;
  margin: 0;
}

.software-demo-sub strong {
  color: var(--color-cyan);
}

.btn-software-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-blue-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(8, 120, 249, 0.3);
  transition: all var(--transition-fast);
}

.btn-software-demo:hover {
  background: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(8, 120, 249, 0.45);
}

/* ----------------------------------------------------
   7. SECCIÓN: PRODUCTOS DESTACADOS (FONDO GRIS CLARO)
---------------------------------------------------- */
.products-section-ref {
  background-color: var(--color-bg-light);
  padding: var(--section-padding-y) 0;
}

.products-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.75rem;
}

.btn-all-products-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--color-bg-dark);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-all-products-ref:hover {
  border-color: var(--color-blue-primary);
  color: var(--color-blue-primary);
  box-shadow: var(--shadow-card-hover);
}

.products-row-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.product-card-ref {
  background: var(--color-bg-light-surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-card-ref:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue-primary);
  box-shadow: var(--shadow-card-hover);
}

.product-img-box {
  height: 110px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.product-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-info-ref {
  padding: 1rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.product-title-ref {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  line-height: 1.3;
  margin: 0;
}

.product-arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--color-blue-primary);
  color: var(--color-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.825rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.product-card-ref:hover .product-arrow-btn {
  background: var(--color-blue-primary);
  color: #ffffff;
}

/* ----------------------------------------------------
   HILERA ROTATIVA DE MARCAS ALIADAS (TICKER CONTINUO)
---------------------------------------------------- */
.brands-carousel-section {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px dashed var(--color-border-light);
}

.brands-carousel-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brands-carousel-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-blue-primary);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.35rem;
}

.brands-carousel-subtitle {
  font-size: 0.95rem;
  color: var(--text-dark-secondary);
  margin: 0;
  font-weight: 500;
}

/* Contenedor con desvanecimiento sutil en los bordes */
.brands-ticker-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0.75rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Pista continua animada */
.brands-ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: brandsScrollHorizontal 28s linear infinite;
  will-change: transform;
}

/* Pausar rotación al pasar el cursor */
.brands-ticker-container:hover .brands-ticker-track {
  animation-play-state: paused;
}

/* Tarjeta individual de marca */
.brand-item-card {
  flex: 0 0 auto;
  width: 175px;
  height: 74px;
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
}

.brand-item-card:hover {
  border-color: var(--color-blue-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.brand-item-card img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Animación de desplazamiento infinito continuo sin saltos */
@keyframes brandsScrollHorizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Desplaza exactamente un bloque de 4 marcas (1/3 del ancho total) */
    transform: translateX(calc(-100% / 3));
  }
}

/* ----------------------------------------------------
   8. SECCIÓN: TESTIMONIOS Y OPINIONES REALES (FONDO BLANCO)
---------------------------------------------------- */
.reviews-section-ref {
  background-color: #ffffff;
  padding: var(--section-padding-y) 0;
  border-top: 1px solid var(--color-border-light);
  position: relative;
}

.reviews-header-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

/* Barra superior de métricas de confianza */
.reviews-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.25rem;
}

.reviews-rating-box {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.reviews-score-big {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--color-bg-dark);
  line-height: 1;
}

.reviews-stars-group {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.reviews-score-sub {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  margin-top: 0.25rem;
  font-weight: 500;
}

.reviews-badges-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.reviews-trust-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-bg-dark);
}

.reviews-trust-pill svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Filtros interactivos de testimonios */
.reviews-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.review-filter-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-light);
  color: var(--text-dark-secondary);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.review-filter-btn:hover {
  border-color: var(--color-blue-primary);
  color: var(--color-blue-primary);
  transform: translateY(-1px);
}

.review-filter-btn.active {
  background: var(--color-blue-primary);
  color: #ffffff;
  border-color: var(--color-blue-primary);
  box-shadow: 0 4px 14px rgba(8, 120, 249, 0.25);
}

/* Grilla de tarjetas de testimonios */
.reviews-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card-item {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.review-card-item:hover {
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-blue-primary);
}

/* Encabezado de la tarjeta */
.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.review-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eef6ff;
  color: var(--color-blue-primary);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
}

.review-time-ago {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Valoración por estrellas */
.review-stars-row {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  margin-bottom: 0.95rem;
}

/* Texto del review */
.review-body-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
}

/* Perfil del cliente */
.review-author-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.review-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-blue {
  background: linear-gradient(135deg, #0878f9 0%, #0044bb 100%);
}

.avatar-cyan {
  background: linear-gradient(135deg, #00b8d9 0%, #0878f9 100%);
}

.avatar-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.avatar-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.avatar-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.avatar-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.review-author-meta {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.review-verified-badge {
  display: inline-flex;
  align-items: center;
  color: #10b981;
  font-size: 0.75rem;
}

.review-author-role {
  font-size: 0.825rem;
  color: var(--text-dark-secondary);
  line-height: 1.35;
}

/* ----------------------------------------------------
   9. SECCIÓN: AGENDA UNA ASESORÍA TÉCNICA (FONDO OSCURO)
---------------------------------------------------- */
.booking-banner-ref {
  background: var(--color-bg-dark);
  padding: var(--section-padding-y) 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.booking-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.75rem;
  background: var(--color-bg-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3.25rem 2.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.booking-banner-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.booking-banner-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.btn-booking-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-blue-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(8, 120, 249, 0.35);
  transition: all var(--transition-fast);
}

.btn-booking-ref:hover {
  background: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 120, 249, 0.45);
}

.booking-features-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
}

.booking-feature-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.booking-feature-icon {
  color: var(--color-cyan);
}

.booking-feature-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  max-width: 110px;
  line-height: 1.35;
}

/* ----------------------------------------------------
   9. FOOTER CORPORATIVO (FONDO OSCURO)
---------------------------------------------------- */
.main-footer-ref {
  background: var(--color-bg-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.footer-ref-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-logo-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.footer-logo-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0, 184, 217, 0.35);
  box-shadow: 0 2px 8px rgba(0, 184, 217, 0.15);
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 0.25rem;
}

.footer-title-ref {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.15rem 0;
}

.footer-links-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}

.footer-links-2col a {
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.footer-links-2col a:hover {
  color: var(--color-cyan);
}

.footer-contact-item-ref {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
}

.footer-social-icons-ref {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-blue-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.footer-social-circle:hover {
  background: var(--color-cyan);
  transform: translateY(-2px);
}

.btn-footer-wsp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--color-whatsapp);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  margin-bottom: 1rem;
  width: 100%;
}

.btn-footer-wsp:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}

.footer-motto-ref {
  font-size: 0.825rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ----------------------------------------------------
   BOTÓN FLOTANTE OFICIAL DE WHATSAPP
---------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.whatsapp-fab:hover {
  background-color: #20ba5a;
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-fab-tooltip {
  position: absolute;
  right: 68px;
  background: var(--color-bg-dark);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 184, 217, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .whatsapp-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }
}

/* ----------------------------------------------------
   10. MODAL DE AGENDAMIENTO TÉCNICO INTERACTIVO
---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 28, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.modal-container {
  background: var(--color-bg-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.modal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 440px) {
  .modal-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------
   11. RESPONSIVE DESIGN (MEDIA QUERIES INTEGRALES)
---------------------------------------------------- */

/* Animación y estado activo del botón hamburguesa */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Pantallas grandes intermedias (Laptops y Pantallas medianas) */
@media (max-width: 1280px) {
  .software-cards-grid {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
  }
  .soft-card-box {
    padding: 2.2rem 2rem;
  }
}

/* Ajuste para pantallas medianas (Laptops y tablets en horizontal) */
@media (max-width: 1200px) and (min-width: 993px) {
  .nav-pill-item {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }
  .btn-header-wsp {
    padding: 0.5rem 0.95rem;
    font-size: 0.8rem;
  }
  .brand-name-text {
    font-size: 1.05rem;
  }
}

/* Tablets en orientación horizontal / Pantallas medianas */
@media (max-width: 1080px) {
  .services-row-grid,
  .products-row-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

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

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

  .hero-features-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Activación de Navegación Móvil (<= 992px: Tablets y Smartphones) */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  /* Ocultar texto largo de WhatsApp en la barra para evitar colisiones */
  .btn-header-wsp .btn-wsp-text {
    display: none;
  }

  .btn-header-wsp {
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Menú desplegable táctil tipo Drawer */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(8, 24, 47, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 184, 217, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
    padding: 1.25rem 1.15rem;
    flex-direction: column;
    z-index: 1000;
  }

  .main-nav.is-open {
    display: flex !important;
    animation: slideDownNav 0.25s ease-out forwards;
  }

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

  .nav-links-box {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 0.4rem;
  }

  .nav-pill-item {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-size: 0.975rem;
    font-weight: 600;
    border-radius: 10px;
    text-align: left;
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-pill-item:hover {
    background: rgba(0, 184, 217, 0.1);
    color: var(--color-cyan);
  }

  .nav-pill-item.active {
    background: var(--color-blue-primary);
    border-color: rgba(0, 184, 217, 0.4);
    box-shadow: 0 4px 15px rgba(8, 120, 249, 0.35);
  }
}

/* Dispositivos Móviles (<= 768px) */
@media (max-width: 768px) {
  /* Contenedor general con margen táctil seguro */
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  /* 1. Header en Smartphones */
  .main-header {
    padding: 0.75rem 0;
  }

  .brand-name-text {
    font-size: 1.05rem;
  }

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

  /* 2. Hero Principal Adaptado a Móvil */
  .hero-section {
    padding-top: 6.25rem;
    padding-bottom: 4.75rem;
    min-height: auto;
  }

  .hero-pill-badge {
    padding: 0.35rem 0.95rem;
    margin-bottom: 1.15rem;
  }

  .badge-text {
    font-size: 0.725rem;
  }

  .hero-title-main {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
    line-height: 1.16;
    margin-bottom: 1.1rem;
  }

  .hero-description-main {
    font-size: 0.975rem;
    margin-bottom: 1.75rem;
    line-height: 1.55;
  }

  .hero-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
  }

  .hero-actions-row .btn-hero-primary,
  .hero-actions-row .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-features-bar {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
  }

  .hero-feature-pill {
    padding: 0.85rem 1rem;
  }

  /* 3. Sección de Servicios */
  .services-section-ref {
    padding: 3.5rem 0;
  }

  .section-title-line {
    font-size: 1.85rem;
  }

  .section-subtitle-line {
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }

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

  .service-card-ref {
    min-height: auto;
  }

  .service-img-thumb {
    height: 120px;
  }

  .service-name-ref {
    font-size: 0.95rem;
  }

  .service-desc-ref {
    font-size: 0.775rem;
  }

  /* 4. Sección de Software Empresarial */
  .software-section-ref {
    padding: 3.5rem 0;
  }

  .software-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .btn-header-platforms {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.25rem;
  }

  .soft-card-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.65rem 1.25rem;
  }

  .soft-card-graphic {
    order: 2;
    margin-top: 0.25rem;
  }

  .soft-graphic-img {
    max-width: 220px;
    margin: 0 auto;
  }

  .soft-video-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }

  .soft-card-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .btn-soft-vermas,
  .btn-soft-video {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  /* 5. Sección de Productos */
  .products-section-ref {
    padding: 3.5rem 0;
  }

  .products-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .btn-all-products-ref {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.25rem;
  }

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

  .product-img-box {
    height: 110px;
  }

  .product-title-ref {
    font-size: 0.825rem;
  }

  /* 6. Sección de Testimonios y Filtro Táctil */
  .reviews-section-ref {
    padding: 3.5rem 0;
  }

  .reviews-summary-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .reviews-badges-list {
    flex-direction: column;
    gap: 0.65rem;
  }

  .reviews-trust-pill {
    font-size: 0.8rem;
    width: 100%;
  }

  /* Barra de filtros táctil con desplazamiento horizontal suave */
  .reviews-filter-bar {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    margin-bottom: 1.75rem;
    scrollbar-width: none;
  }

  .reviews-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .review-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    font-size: 0.825rem;
  }

  .reviews-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .review-card-item {
    padding: 1.35rem 1.15rem;
  }

  .review-body-text {
    font-size: 0.875rem;
  }

  /* 7. Sección de Agendamiento */
  .booking-banner-ref {
    padding: 3rem 0;
  }

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

  .booking-banner-info {
    text-align: center;
  }

  .booking-banner-title {
    font-size: 1.85rem;
  }

  .booking-banner-desc {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .btn-booking-ref {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
  }

  .booking-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    width: 100%;
    justify-items: center;
  }

  .booking-feature-badge {
    max-width: 100%;
  }

  .booking-feature-text {
    font-size: 0.725rem;
    max-width: 90px;
  }

  /* 8. Footer Corporativo */
  .main-footer-ref {
    padding: 3rem 0 1.75rem;
  }

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

  .btn-footer-wsp {
    width: 100%;
    justify-content: center;
  }

  /* 9. Botón Flotante de WhatsApp */
  .whatsapp-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-fab-tooltip {
    display: none; /* Evitar desbordes en móviles */
  }

  /* 10. Modal en Pantallas Móviles */
  .modal-overlay {
    padding: 0.85rem;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal-container {
    padding: 1.75rem 1.15rem;
    border-radius: 14px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    margin: auto 0;
  }

  .form-control,
  .modal-container input,
  .modal-container select,
  .modal-container textarea {
    font-size: 16px !important; /* Previene auto-zoom molesto en Safari / iOS */
  }
}

/* Teléfonos inteligentes de pantalla estándar y compacta (<= 480px) */
@media (max-width: 480px) {
  /* Cabecera optimizada para teléfonos */
  .main-header {
    padding: 0.65rem 0;
  }

  .brand-logo-img {
    height: 36px;
    width: 36px;
  }

  .brand-name-text {
    font-size: 0.95rem;
  }

  .header-action-box {
    gap: 0.5rem;
  }

  /* Botón de WhatsApp circular compacto */
  .btn-header-wsp {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .btn-header-wsp svg {
    width: 18px;
    height: 18px;
  }

  /* Botón hamburguesa táctil */
  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 8px 7px;
  }

  /* Botones del Hero apilados */
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    text-align: center;
  }

  /* Servicios en 1 columna limpia y bien dimensionada */
  .services-row-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .service-img-thumb {
    height: 140px;
  }

  /* Badges de agendamiento */
  .booking-features-row {
    gap: 0.4rem;
  }

  .booking-feature-icon svg {
    width: 22px;
    height: 22px;
  }

  .booking-feature-text {
    font-size: 0.7rem;
    max-width: 80px;
  }

  /* Resumen de valoración */
  .reviews-score-big {
    font-size: 2.75rem;
  }

  .review-score-sub {
    font-size: 0.75rem;
  }
}

/* Teléfonos compactos extra pequeños (<= 360px) */
@media (max-width: 360px) {
  .hero-indicators-row {
    grid-template-columns: 1fr;
  }

  .products-row-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }

  .booking-features-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .booking-feature-badge {
    flex-direction: row;
    gap: 0.75rem;
    text-align: left;
  }

  .booking-feature-text {
    max-width: none;
    font-size: 0.8rem;
  }
}

/* ----------------------------------------------------
   12. EFECTOS DE TRANSICIÓN Y SCROLL REVEAL DINÁMICOS
---------------------------------------------------- */
/* Clases base con aceleración por hardware */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Revelado lateral desde la izquierda */
.reveal-from-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-from-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Revelado lateral desde la derecha */
.reveal-from-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-from-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Revelado con micro-escala para tarjetas destacadas */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95) translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Retrasos escalonados para efecto en cascada (Stagger) */
.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; }

/* Micro-efecto de brillo sutil en el header al hacer scroll */
.main-header.scrolled {
  background: rgba(4, 15, 36, 0.96) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2) !important;
}

/* Soporte para preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-from-left,
  .reveal-from-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-glow-cyan,
  .hero-glow-blue,
  .hero-glow-center,
  .brands-ticker-track {
    animation: none !important;
  }

  .hero-bg-video {
    opacity: 0.55;
  }
}

/* Ajustes adaptables del carrusel de marcas en dispositivos móviles */
@media (max-width: 768px) {
  /* Ajuste de presencia del video de fondo en pantallas pequeñas */
  .hero-bg-video {
    opacity: 0.55;
  }

  .brands-carousel-section {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
  }

  .brands-carousel-header {
    margin-bottom: 1.25rem;
  }

  .brands-carousel-subtitle {
    font-size: 0.825rem;
  }

  .brands-ticker-track {
    gap: 1.25rem;
    animation-duration: 18s;
  }

  .brand-item-card {
    width: 145px;
    height: 64px;
    padding: 0.5rem 0.85rem;
  }

  .brand-item-card img {
    max-height: 36px;
  }

  /* Adaptabilidad del bloque informativo de software en móvil */
  .software-info-band {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .software-info-title {
    font-size: 1.35rem;
  }

  .software-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .software-demo-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem;
    gap: 1.15rem;
  }

  .btn-software-demo {
    width: 100%;
    justify-content: center;
  }
}

/* Pantallas intermedias (Tablets) */
@media (max-width: 1080px) and (min-width: 769px) {
  .software-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

