/* =========================================================
   01. RESET GLOBAL
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   02. MODELO DE SCROLL GLOBAL (DEFINITIVO)
   ========================================================= */

html {
  height: 100%;
  overflow-y: auto;        /* ✅ SCROLL REAL */
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #F7F6F2;
}

body {
  min-height: 100%;
  overflow: hidden;        /* ❌ body NO scrollea */
  font-family: 'Roboto', sans-serif;
  color: #232C2D;
  line-height: 1.6;
  background:
    radial-gradient(1000px 800px at 10% 10%, rgba(170,138,98,0.06), transparent 60%),
    radial-gradient(900px 700px at 90% 30%, rgba(35,44,45,0.05), transparent 60%),
    #F7F6F2;
}

/* =========================================================
   03. SCROLLBAR GLOBAL (HTML)
   ========================================================= */

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: #f7f6f2;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b9975b, #d4b57d);
  border-radius: 10px;
  border: 2px solid #f7f6f2;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #b9975b #f7f6f2;
}

/* =========================================================
   04. UTILIDADES
   ========================================================= */

.section {
  padding: 80px 7%;
}

.glass {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(170,138,98,0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* =========================================================
   05. PRELOADER (SOLO ESTRUCTURA)
   ========================================================= */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   🧼 FIX: scrollbar negra durante loading
   ========================================= */

.section { padding: 80px 7%; }
.glass {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(170,138,98,0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* =========================================================
   ✨ SCROLLBAR UNIVERSAL — SynData Solutions AJ (cross-browser)
   ========================================================= */

/* 🌟 Extra: animación de brillo dorado sutil */
@keyframes scrollGlow {
  0% { box-shadow: 0 0 0 rgba(185,151,91,0.2); }
  50% { box-shadow: 0 0 6px rgba(185,151,91,0.4); }
  100% { box-shadow: 0 0 0 rgba(185,151,91,0.2); }
}

::-webkit-scrollbar-thumb:hover {
  animation: scrollGlow 1.6s ease-in-out infinite;
}

/* =========================================================
   02. HEADER Y NAVEGACIÓN
   ========================================================= */

header {
  z-index: 50;
  display: flex; 
  align-items: center; 
  gap: 24px;
  padding: 10px 50px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(170,138,98,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.logo { 
    height: 35px; 
    width: auto;
 }

.main-nav { 
    display: flex; 
    gap: 18px; 
    flex: 1; 
}

.main-nav a { 
    text-decoration: none; 
    color: #232C2D; 
    font-weight: 600; 
}

.main-nav a:hover { 
    color: #AA8A62; 
}

.auth { 
  display: flex; 
  gap: 10px; 
}

.btn {
  background: #AA8A62; 
  color: #fff;
  padding: 10px 16px; 
  border-radius: 10px;
  text-decoration: none; 
  font-weight: 600;
  transition: 0.25s transform, 0.25s background;
}

.btn:hover { 
  background: #8a6c4e; 
  transform: translateY(-1px); 
}

.btn-outline {
  background: transparent; 
  color: #232C2D; 
  border: 1px solid #AA8A62;
}

.btn-outline:hover { 
  background: rgba(170,138,98,0.1); 
}

/* Burger móvil */
.burger { 
  display: none; 
  background: transparent; 
  border: none; 
  font-size: 24px; 
}

.mobile-drawer {
  position: fixed; 
  inset: 0 auto 0 -260px; 
  width: 240px; 
  padding: 24px; 
  z-index: 60;
  background: rgba(255,255,255,0.96); 
  backdrop-filter: blur(8px);
  box-shadow: 8px 0 24px rgba(0,0,0,0.12);
  display: flex; 
  flex-direction: column; 
  gap: 12px;
  transition: 0.3s transform;
}

.mobile-drawer.open { 
  transform: translateX(260px); 
}

/* =========================================================
   💫 SYNCDATA SOLUTIONS — MEJORAS VISUALES ULTRA PREMIUM
   ========================================================= */

/* 🧭 HEADER FIJO — con transparencia dinámica */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(185, 151, 91, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 10px 50px;
}


/* =========================================================
   03. PRELOADER — versión estructural sin parpadeo
   ========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #000; /* Fondo sólido inicial para evitar el flash */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999999;
  overflow: hidden;
}

/* 💫 Canvas de fondo energético (partículas doradas) */
.visionCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 💫 Canvas ajustado estructuralmente */
#dataCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('/recursos/img/banner.jpg') center/cover no-repeat #000;
  animation: zoomIn 5s ease-in-out forwards;
  filter: brightness(0.4);
}

@keyframes zoomIn {
  from { transform: scale(1);}
  to { transform: scale(1.5);}
}

/* Contenido del loader (texto y barra) */
.loader-content {
  z-index: 2;
  text-align: center;
  color: #AA8A62;
  position: relative;
}

/* Barra de progreso */
.progress-bar {
  width: 250px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #AA8A62, #f5d7a3, #AA8A62);
  animation: progressLoad 2.5s ease-out forwards;
}

/* Desvanecimiento suave del preloader */
.fadeOut {
  animation: fadeOut 1s ease forwards;
}
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ✅ Mientras el preloader está activo, bloqueamos scroll y contenido */
body.loading {
  background: #000;
}

body.ready {
  background: transparent;
}

/* =========================================================
   🚀 CORRECCIÓN DE BARRA DE PROGRESO DEL PRELOADER
   ========================================================= */
.progress {
  animation: none; /* eliminamos animación fija */
  width: 0%;
  transition: width 0.3s ease;
}

/* =========================================================
   04. BANNER PRINCIPAL
   ========================================================= */
.banner {
  position: relative; text-align: center; color: #ECECEC;
  padding: 120px 45px;
  background: url('/recursos/img/banner.jpg') center/cover no-repeat;
  border-radius: 0 0 20px 20px; overflow: hidden;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(20,20,20,0.7); z-index: 1;
}
.banner h1, .banner p, .banner .btn { position: relative; z-index: 2; text-align: center; }
.banner h1 { font-family: 'Archivo Black', sans-serif; font-size: 3rem; color: #F7F6F2; margin-bottom: 20px; }
.banner h1 span { color: #AA8A62; }
.banner p { font-size: 1.2rem; color: #e0e0e0; margin-bottom: 30px; }

/* =========================================================
  LANZAMIENTO
   ========================================================= */

.modules-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.carousel-arrow {
  background: linear-gradient(90deg, #b9975b, #e1c9a3);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(185, 151, 91, 0.35);
  transition: all 0.25s ease;
  z-index: 5;
}

.carousel-arrow:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 26px rgba(185, 151, 91, 0.45);
}

.carousel-arrow.left {
  margin-right: 15px;
}

.carousel-arrow.right {
  margin-left: 15px;
}

.modules-carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px;
}

.modules-carousel::-webkit-scrollbar {
  display: none; /* Chrome */
}

.module-card {
  min-width: 260px;
  max-width: 260px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(185, 151, 91, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: stretch;
}

/* Hover consistente para todas */
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(185, 151, 91, 0.35);
}

.module-card-body {
  padding: 26px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;        /* centra horizontal */
  justify-content: center;    /* centra vertical */
  text-align: center;         /* texto centrado */
  gap: 14px;                  /* espaciado uniforme */
  height: 100%;
}

.module-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: #1b1b1b;
  min-height: 3em;          /* 🔥 clave: reserva espacio */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.module-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

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

  .modules-carousel-wrapper {
    padding: 0 10px;
  }

  .module-card {
    min-width: 230px;
    max-width: 230px;
  }
}

/* ✅ FIX FINAL: los brillos o capas no bloquean clics */

#dataCanvas,
#preloader,
.lacolmenaCanvas,
.visionCanvas {
  pointer-events: none !important;
}



/* =========================================================
   🏢 CLIENTES — CARRUSEL TIPO BANDERAS
   ========================================================= */

#clientes {
  position: relative;
  background: transparent;
  padding: 40px 7%;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

/* ✨ Luz dorada */
#clientes::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(185,151,91,0.15), transparent 70%);
  filter: blur(80px);
  z-index: 0;
}

/* 🏷 Título */
#clientes h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.4rem;
  color: #1b1b1b;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(185,151,91,0.3);
  position: relative;
}

#clientes h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #b9975b, #e1c9a3, #b9975b);
  margin: 14px auto 0;
  border-radius: 3px;
}

/* 📄 Texto intro */
#clientes .intro {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.7);
  display: inline-block;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid rgba(185,151,91,0.2);
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  margin-bottom: 60px;
}

/* 🌟 Contenedor del carrusel */
.carrusel-clientes {
  width: 100%;
  max-width: 1150px;
  height: 270px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,0.4);
  border: 1.6px solid rgba(185,151,91,0.25);
  box-shadow: inset 0 0 20px rgba(185,151,91,0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#carrusel-clientes {
  display: flex;
  gap: 20px;
  width: max-content;
  position: relative;
  left: 0;
  top: 0;
  will-change: transform;
  align-items: center;
}

/* 💠 Tarjetas */
.cliente-card {
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.85);
  border: 2px solid rgba(185,151,91,0.35);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; /*tamaño del logo*/
  box-shadow: 0 10px 10px rgba(0,0,0,0.08);
  transition: all 0.20s ease;
  flex: 0 0 217px;
  margin-right: 0.5px;
}


.cliente-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(185,151,91,0.25);
}

.cliente-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 8px;
}

/*=================================
  PAÍSES DONDE OPERAMOS
   ========================================================= */
#paises {
  position: relative;
  background: transparent;
  padding: 40px 7%;
  text-align: center;
  color: #1b1b1b;
  overflow: hidden;
}

/* ✨ Luz dorada de fondo */
#paises::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(185, 151, 91, 0.12), transparent 70%);
  transform: translateX(-50%);
  filter: blur(80px);
  z-index: 0;
}

/* 🏷️ Título */
#paises h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 25px;
  color: #1b1b1b;
  text-shadow: 0 0 8px rgba(185, 151, 91, 0.3);
  position: relative;
  z-index: 2;
}
#paises h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #b9975b, #e1c9a3, #b9975b);
  margin: 18px auto 0;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(185, 151, 91, 0.3);
}

/* 📄 Texto principal */
.country-intro-card {
  max-width: 800px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(185, 151, 91, 0.25);
  border-radius: 16px;
  padding: 25px 35px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* 🇨🇴 Contenedor general */
.paises-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
  max-width: 1150px;
  margin: 0 auto;
}

.flag-card.carousel {
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(185, 151, 91, 0.3);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;  /* 🔑 centra contenido */
  align-items: center;
  transition: all 0.3s ease;
}

.flag-card.carousel:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 30px rgba(185, 151, 91, 0.35);
}

.flag-card.carousel img {
  width: 60px;
  margin-bottom: 10px;
}

.flag-card.carousel h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1b1b1b;
}

.flag-card.fixed {
  width: 260px;
  height: 260px;
  flex: 0 0 260px;
  background: linear-gradient(180deg,rgba(255, 255, 255, 0.95),rgba(249, 246, 239, 0.95));
  border: 2px solid #b9975b;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(185, 151, 91, 0.25);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transform: scale(1.05);
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.flag-card.fixed:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 40px rgba(185, 151, 91, 0.3);
}
.flag-card.fixed img {
  width: 60px;
  margin-bottom: 4px;
}
.flag-card.fixed h4 {
  font-size: 1.1rem;
  color: #1b1b1b;
  margin: 0;
}
.flag-card.fixed p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* 🌎 Marco del carrusel países */
.carrusel-paises {
  width: 700px;
  height: 260px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1.6px solid rgba(185, 151, 91, 0.25);
  box-shadow: inset 0 0 20px rgba(185, 151, 91, 0.15);
  overflow: hidden;
  position: relative;
}

/* 🌍 Carrusel interno países */
#carrusel-paises.paises-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  white-space: nowrap;
}

/* 💠 Tarjetas de países */
.pais-card {
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(185, 151, 91, 0.3);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.pais-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(185, 151, 91, 0.35);
}

.pais-card img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.pais-card .pais-nombre {
  font-size: 16px;
  font-weight: 600;
  color: #1b1b1b;
}

/* 🌍 Carrusel interno */

.flags-carousel {
  display: flex;
  align-items: center;
  gap: 3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
}


/* 💠 Tarjetas de países — CUADRADAS */
.flag-card {
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(185, 151, 91, 0.3);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.flag-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 30px rgba(185, 151, 91, 0.35);
}
.flag-card img {
  width: 60px;
  margin-bottom: 10px;
}
.flag-card h4 {
  color: #1b1b1b;
  font-weight: 700;
  font-size: 1rem;
}

/* ✅ El movimiento lo controla JS, no CSS */
#flagsCarousel.flags-carousel{
  animation: none !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: auto !important;
  transform: translateY(-50%) !important;
  will-change: transform;
  overflow: visible !important;
}

/* 📱 Responsivo */
@media (max-width: 900px) {
  .paises-container {
    flex-direction: column;
    gap: 40px;
  }

  .carrusel-wrapper {
    width: 100%;
    height: auto;
  }

  .flags-carousel {
    position: static;
    transform: none;
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .flag-card {
    scroll-snap-align: center;
  }

  .flags-carousel::-webkit-scrollbar {
    display: none;
  }
}

/* VISITANTE CONTADOR */
.visitantes-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
}
.visitantes-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1b1b1b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
#visitanteContador {
  font-size: 2.2rem;
  font-weight: 800;
  color: #AA8A62;
  font-family: 'Archivo Black', sans-serif;
  text-shadow: 0 0 20px rgba(170,138,98,0.2);
  line-height: 1;
  overflow-wrap: break-word;
  word-break: break-all;
  max-width: 100%;
}
#clientes h5 {
  font-size: 1rem;
  color: #1b1b1b;
  font-weight: 600;
  margin: 30px 0 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* =========================================================
   PAÍSES DONDE OPERAMOS
   ========================================================= */
#paises {
  position: relative;
  background: transparent;
  padding: 80px 7%;
  text-align: center;
  color: #1b1b1b;
  overflow: hidden;
}

/* Texto */
.dark .section-sub {
  grid-column: 1;
  text-align: center;
  max-width: 750px;
  justify-self: end;
  color: #e6e6e6;
  z-index: 2;
}

/* Canvas de fondo (holograma dinámico) */
.dark .lacolmenaCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

/* Contenido */
.dark h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.4rem;
  color: #f5d7a3;
  position: relative;
  text-shadow: 0 0 10px rgba(255, 215, 130, 0.5);
  z-index: 2;
}

.dark h2::after {
  content: "";
  display: block;
  width: 100%; /*linea dorada*/
  height: 3px;
  background: #aa8a62;
  margin: 14px auto 0;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 215, 130, 0.3);
}

/* Caja */
.dark .cards {
  grid-column: 2;
  justify-self: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 215, 130, 0.3);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 12px 28px rgba(255, 215, 130, 0.1);
  width: 380px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.dark .cards:hover {
  border-color: rgba(255, 215, 130, 0.6);
  box-shadow: 0 0 25px rgba(255, 215, 130, 0.25);
  transform: translateY(-5px) scale(1.03);
  transition: all 0.3s ease;
}

/* Ítems */
.dark .card h3 {
  margin: 6px 0;
  font-weight: 700;
  color: #f5d7a3;
  text-shadow: 0 0 8px rgba(255, 215, 130, 0.2);
}

/* Línea divisoria */
.dark::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 45%;
  background: rgba(255, 215, 130, 0.15);
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Responsivo */
@media (max-width: 980px) {
  .dark {
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: center;
  }

  .dark::before {
    display: none;
  }

  .dark .section-sub {
    margin: 0 auto;
    text-align: center;
    justify-self: center;
  }

  .dark .cards {
    width: 90%;
    margin: 0 auto;
  }
}

.dark .colmena-text-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(185, 151, 91, 0.4);
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 4px 20px rgba(185, 151, 91, 0.1);
  color: #fff;
  line-height: 1.7;
  text-align: justify;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  max-width: 900px;
}

.dark .colmena-text-box:hover {
  box-shadow: 0 8px 30px rgba(185, 151, 91, 0.25);
}

/* =========================================================
   🐝 EXCEPCIÓN — sección dark centrada
   ========================================================= */

/* Si una sección tiene dark Y centrada */
.dark.centrada {
  grid-template-columns: 1fr; /* una sola columna */
  justify-items: center;      /* centra el contenido */
}

/* Centrar la caja de texto */
.dark.centrada .colmena-text-box {
  margin-left: auto;
  margin-right: auto;
}



/* =========================================================
   FOOTER, CONTACTO Y LEGALES — SyncData Solutions AJ
   ========================================================= */

.contact-section {
  position: relative;
  background: transparent;
  color: #fff;
  padding: 40px 7%;
  filter: blur(0.3px) saturate(0.8);
  opacity: 0.92;
  transition: all 0.4s ease;
  z-index: 1;
}

.contact-section:hover {
  filter: none;
  opacity: 1;
}

/* =========================
   GRID PRINCIPAL (3 COLUMNAS)
   Col 1: Brand
   Col 2: Info + Redes
   Col 3: Legal
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1px 1.2fr 1px 0.8fr;/* Izq | Centro | Der */
  gap: 60px;/* Separación horizontal */
  align-items: stretch; /* 🔴 CLAVE para que las líneas midan lo mismo */
}

/* =========================
   COLUMNA 1 — BRAND
   Logo + descripción
   ========================= */

.contact-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-logo {
  width: 200px;                    /* Tamaño del logo */
  margin-bottom: 35px;             /* Espacio logo-texto */
}

.contact-brand-text {
  max-width: 200px;                /* Control del ancho de lectura */
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e0e0e0;
}

/* =========================
   DIVISOR VERTICAL
   Elemento visual entre columnas
   ========================= */

.contact-divider-vertical {
  width: 1px;
  background: rgba(255,255,255,0.12);
}


/* =========================
   COLUMNA 2 — INFO + REDES
   ========================= */

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Espacio entre bloques */
}

.contact-content h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

/* Información de contacto */
.contact-info p {
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: #cfcfcf;
}

.contact-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-link:hover {
  color: #b9975b;
}

/* Redes sociales */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-links a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 5px;
  transition: color 0.25s ease;
}

.social-links a:hover {
  color: #b9975b;
}

/* =========================
   COLUMNA 3 — LEGALES
   ========================= */

.contact-legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-legal h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-legal a {
  font-size: 0.85rem;
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-legal a:hover {
  color: #b9975b;
}

/* =========================
   FOOTER FINAL
   ========================= */

.contact-footer {
  margin-top: 70px;
  padding-top: 35px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.contact-footer p {
  font-size: 0.8rem;
  color: #8e8e8e;
}

/* Flecha subir */
.to-top {
  position: absolute;             /* La llevas a esquina */
  right: 5%;
  bottom: 25px;
  font-size: 1.3rem;
  color: #b9975b;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.to-top:hover {
  transform: translateY(-4px);
}

/* =========================================================
   SECCIONES CORPORATIVAS — SyncData Solutions
   ========================================================= */

#quienes-somos,
#nacen-productos,
#por-que-elegirnos,
#filosofia,
#mision,
#vision,
#principios {
  padding: 40px 7%;
  text-align: center;
  background: transparent;
}

.text-card {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(185,151,91,0.2);
  border-radius: 16px;
  padding: 30px 35px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.text-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(185,151,91,0.2);
}

.text-card p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  margin: 0;
  text-align: justify;
}

#quienes-somos h2,
#nacen-productos h2,
#productos h2,
#por-que-elegirnos h2,
#filosofia h2,
#mision h2,
#vision h2,
#principios h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.2rem;
  color: #1b1b1b;
  margin-bottom: 30px;
}

#quienes-somos h2::after,
#nacen-productos h2::after,
#productos h2::after,
#por-que-elegirnos h2::after,
#filosofia h2::after,
#mision h2::after,
#vision h2::after,
#principios h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #b9975b, #e1c9a3, #b9975b);
  margin: 16px auto 0;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(185,151,91,0.35);
}

/* SERVICES — 4-column grid (Quiénes Somos) */

.services-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto 0;
}

.services-4col article {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(185,151,91,0.2);
  border-radius: 16px;
  padding: 26px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-align: center;
}

.services-4col article:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(185,151,91,0.25);
}

.services-4col article h3 {
  font-size: 1.05rem;
  color: #1b1b1b;
  margin-bottom: 10px;
  font-weight: 700;
}

.services-4col article p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  text-align: center;
}

/* =========================================================
   PRODUCTOS — Nueva vitrina
   ========================================================= */

#productos {
  padding: 40px 7%;
  background: transparent;
  text-align: center;
}

/* Top area: 2-column layout */
.productos-top-unico {
  max-width: 1200px;
  margin: 0 auto 50px;
}

/* Card única — Próximo lanzamiento + Sync-Monitoreo */
.lanzamiento-unico {
  display: flex;
  flex-direction: row;
  background: linear-gradient(135deg, #1b1b2f, #0f3460);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  overflow: hidden;
}

.lanzamiento-unico-col {
  flex: 1;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ECECEC;
}

.lanzamiento-unico-div {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.15);
}

.lanzamiento-titulo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-rings {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.counter-ring {
  text-align: center;
}

.ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-wrap svg {
  position: absolute;
  top: 0;
  left: 0;
}

.ring-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #AA8A62;
  z-index: 1;
}

.ring-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 6px;
  letter-spacing: 1px;
}

.lanzamiento-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.lanzamiento-unico-col h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.monitoreo-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 16px;
}

.monitoreo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(170,138,98,0.2);
  border: 1px solid rgba(170,138,98,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: #AA8A62;
  margin-bottom: 14px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.monitoreo-placeholder {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}

/* =========================================================
   Carrusel de productos
   ========================================================= */

.productos-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.productos-carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px;
  flex: 1;
}

.productos-carousel::-webkit-scrollbar {
  display: none;
}

.producto-card {
  min-width: 280px;
  max-width: 280px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(185,151,91,0.25);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(185,151,91,0.35);
}

.producto-card-body {
  padding: 26px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.producto-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: #1b1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.producto-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

.producto-badge {
  background: #AA8A62;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 4px;
}

/* Próximamente — card default con degradado */
.producto-proximamente {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border-color: rgba(200, 180, 255, 0.2);
  cursor: default;
}

.producto-proximamente:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(100, 80, 200, 0.25);
}

.producto-proximamente .producto-card-body {
  padding: 32px 20px;
  gap: 8px;
}

.producto-proximamente .proximamente-titulo {
  font-family: 'Russo One', sans-serif;
  font-size: 1.8rem;
  color: #ECECEC;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(200, 180, 255, 0.3);
  margin: 0;
}

.producto-proximamente .proximamente-subtitulo {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #ECECEC;
  text-align: center;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.75;
  margin: 0;
}

.producto-card-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 6px;
}

/* Dots canvas for product cards */
.dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* =========================================================
   MODAL SYNC BACKUPS
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-container {
  display: grid;
  grid-template-columns: 35% 45% 20%;
  grid-template-rows: minmax(0, 1fr);
  max-width: 1100px;
  width: 90%;
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Panel izquierdo — azul marino con estrellitas */
.modal-panel-left {
  background: #2a3245;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

.modal-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.modal-left-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-logo {
  max-width: 200px;
  height: auto;
}

#modal-logo-img {
  width: 100%;
  max-width: 200px;
  height: 120px;
}

/* Panel central — fondo #ECECEC, texto azul marino */
.modal-panel-center {
  background: #ECECEC;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.modal-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-precio p {
  font-size: 1.6rem;
  font-weight: 900;
  color: #AA8A62;
  margin: 4px 0 8px;
}

.modal-section p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #0a1628;
  margin: 0;
}

.modal-divider {
  border: none !important;
  height: 2px !important;
  min-height: 2px !important;
  background: #b9975b !important;
  margin: 16px 0 !important;
  display: block !important;
  width: 100% !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

/* Buttons */
.modal-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

.btn-modal {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-modal.efipay {
  background: #AA8A62;
  color: #fff;
}

.btn-modal.efipay:hover {
  background: #8a6c4e;
  transform: translateY(-2px);
}

.btn-modal.paypal {
  background: #0a1628;
  color: #fff;
}

.btn-modal.paypal:hover {
  background: #1b2a4a;
  transform: translateY(-2px);
}

/* Panel derecho — compatible + multimedia */
.modal-panel-right {
  background: #ECECEC;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid rgba(170,138,98,0.2);
  overflow-y: auto;
}

.modal-compatible h4,
.modal-multimedia h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* FOTOs grid */
.fotos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.foto-placeholder {
  aspect-ratio: 4/3;
  background: rgba(10,22,40,0.05);
  border: 1px dashed rgba(10,22,40,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.7rem;
}

.foto-item {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.foto-item:hover {
  transform: scale(1.05);
}

.foto-item img,
.foto-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-item.video-item::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
  pointer-events: none;
  background: rgba(0,0,0,0.4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}

/* Gray dots canvas — cubre todo el panel */
.modal-dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}

/* Scrollbar modal panels */
.modal-panel-center::-webkit-scrollbar,
.modal-panel-right::-webkit-scrollbar {
  width: 2px;
}
.modal-panel-center::-webkit-scrollbar-track,
.modal-panel-right::-webkit-scrollbar-track {
  background: transparent;
}
.modal-panel-center::-webkit-scrollbar-thumb,
.modal-panel-right::-webkit-scrollbar-thumb {
  background: #b9975b;
  border-radius: 3px;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.3);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.6);
}

/* PRINCIPIOS — lista dentro de #mision */

.principios-lista {
  max-width: 700px;
  margin: 12px auto 0;
  padding-left: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
}

.principios-lista li {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
  text-align: left;
  list-style: disc;
}

/* WRAPPER OSCURO — contiene lacolmena + contacto con canvas de circuitos */

.lacolmena-wrapper {
  position: relative;
}

.lacolmena-wrapper .lacolmenaCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

/* CTA LA COLMENA — dark con cortina dorada */

#lacolmena.cta-final {
  position: relative;
  text-align: center;
  padding: 40px 7%;
  background: transparent;
  color: #fff;
  z-index: 1;
}

#lacolmena.cta-final h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  z-index: 2;
}

#lacolmena.cta-final p {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

#lacolmena.cta-final a {
  display: inline-block;
  background: #fff;
  color: #b9975b;
  padding: 14px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}

#lacolmena.cta-final a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  background: #f8f4ec;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-divider-vertical {
    display: none;
  }

  .contact-brand,
  .contact-content,
  .contact-legal {
    align-items: center;
    text-align: center;
  }

  .services-4col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
  }

  .productos-top-unico .lanzamiento-unico {
    flex-direction: column;
  }

  .lanzamiento-unico-div {
    width: 100%;
    height: 1px;
  }

  .modal-container {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-panel-left {
    min-height: 200px;
  }

  .modal-panel-right {
    border-left: none;
    border-top: 1px solid rgba(170,138,98,0.2);
  }

  .principios-lista {
    grid-template-columns: 1fr;
    padding-left: 20px;
  }

  #lacolmena.cta-final h2 {
    font-size: 1.6rem;
  }

  .home-lightbox-wrap {
    width: 95%;
    max-height: 90vh;
  }

  .home-lightbox-flecha {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .home-lightbox-flecha-izq {
    left: 8px;
  }

  .home-lightbox-flecha-der {
    right: 8px;
  }

  .home-lightbox-thumb {
    width: 60px;
    height: 45px;
  }

}

/* =========================================================
   🔒 BLOQUEO DE SCROLL SOLO DURANTE PRELOADER
   ========================================================= */

html.loading {
  overflow: hidden !important;   /* 🔒 oculta scrollbar */
}

html.loading::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Firefox */
html.loading {
  scrollbar-width: none;
}

/* =========================================================
   🖼️ LIGHTBOX HOME
   ========================================================= */
.home-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
}

.home-lightbox-wrap {
  background: #ECECEC;
  border-radius: 16px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.home-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(170,138,98,0.2);
}

.home-lightbox-header h3 {
  margin: 0;
  color: #0a1628;
  font-size: 1rem;
}

.home-lightbox-cerrar {
  background: none;
  border: none;
  color: #0a1628;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
}

.home-lightbox-cerrar:hover {
  color: #AA8A62;
}

.home-lightbox-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  max-height: 70vh;
  overflow: hidden;
}

.home-lightbox-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
}

.home-lightbox-main img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}

.home-lightbox-main video {
  width: 100%;
  height: auto;
  max-height: 55vh;
  display: block;
}

.home-lightbox-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-lightbox-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.6;
}

.home-lightbox-thumb:hover,
.home-lightbox-thumb.active {
  border-color: #AA8A62;
  opacity: 1;
}

.home-lightbox-thumb img,
.home-lightbox-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-lightbox-thumb .video-thumb-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.9);
  color: #AA8A62;
  font-size: 1.5rem;
}

.home-lightbox-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(170,138,98,0.8);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.home-lightbox-flecha:hover {
  background: #AA8A62;
  transform: translateY(-50%) scale(1.1);
}

.home-lightbox-flecha-izq {
  left: 30px;
}

.home-lightbox-flecha-der {
  right: 30px;
}

/* =========================================================
   MODAL DE PAGO
   ========================================================= */
.modal-pago-container {
  display: grid;
  grid-template-columns: 1fr;
  width: 90vw;
  max-width: 560px;
  max-height: 90vh;
  background: #ECECEC;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  color: #0a2342;
  margin: 0 auto;
}
.modal-pago-left {
  padding: 32px 28px;
  overflow-y: auto;
  max-height: 90vh;
  border-right: 1px solid rgba(10,35,66,0.1);
}
.modal-pago-left::-webkit-scrollbar {
  width: 2px;
}
.modal-pago-left::-webkit-scrollbar-track {
  background: transparent;
}
.modal-pago-left::-webkit-scrollbar-thumb {
  background: #b9975b;
  border-radius: 4px;
}
.modal-pago-left h3 {
  font-family: 'Archivo Black', sans-serif;
  color: #0a2342;
  font-size: 22px;
  margin-bottom: 8px;
}
.modal-pago-left p {
  font-size: 14px;
  line-height: 1.5;
  color: #0a2342;
}
.modal-pago-precios p {
  margin: 4px 0;
}
.pago-tasa, .pago-fecha {
  font-size: 12px;
  color: #666 !important;
}
.pago-nota {
  font-size: 13px;
  color: #5a4a2a !important;
  margin: 12px 0;
  padding: 8px 12px;
  background: rgba(10,35,66,0.04);
  border-radius: 8px;
  border-left: 3px solid #0a2342;
}
.pago-gen0 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.pago-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(10,35,66,0.2);
  background: #fff;
  color: #0a2342;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.pago-input:focus {
  border-color: #0a2342;
}
.pago-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #0a2342;
  color: #ECECEC;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.pago-btn:hover {
  background: #143a6b;
}
.pago-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#pago-gen0-resultado p {
  margin: 4px 0;
  font-size: 13px;
}
.pago-codigo-inputs {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.pago-codigo-digit {
  width: 40px;
  height: 48px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  border-radius: 8px;
  border: 1px solid rgba(10,35,66,0.2);
  background: #fff;
  color: #0a2342;
  outline: none;
}
.pago-codigo-digit:focus {
  border-color: #0a2342;
}
.pago-metodos {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.pago-metodos .btn-modal {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}
.pago-metodos .btn-modal:hover {
  opacity: 0.85;
}
.modal-pago-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f0;
  min-height: 400px;
  position: relative;
}
.pago-right-placeholder {
  color: #999;
  font-size: 14px;
}
.btn-pagar-unico {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #EDDAA7;
  color: #0a0a12;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-pagar-unico:hover {
  background: #d4c28a;
}

/* =========================================================
   📱 RESPONSIVE MÓVIL (max-width: 768px)
   ========================================================= */

@media (max-width: 768px) {

  /* Header: solo logo, nav oculto */
  #top {
    padding: 12px 16px;
    justify-content: center;
  }
  .logo {
    height: 60px;
    width: auto;
  }
  .main-nav {
    display: none !important;
  }
  .burger {
    display: none !important;
  }
  .mobile-drawer {
    display: none !important;
  }

  /* Hero: titulo mas pequeño */
  .banner {
    padding: 110px 20px 40px;
  }
  .banner h1 {
    font-size: 1.85rem !important;
    line-height: 1.15;
    margin-bottom: 12px;
    padding-top: 10px;
  }
  .banner p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .hero-inner .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* VisionCanvas oculto en movil (ahorro bateria/CPU) */
  .visionCanvas {
    display: none !important;
  }

  /* Secciones generales */
  section {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
  #quienes-somos h2,
  #nacen-productos h2,
  #productos h2,
  #por-que-elegirnos h2,
  #filosofia h2,
  #mision h2,
  #vision h2,
  #principios h2 {
    font-size: 1.5rem;
  }

  /* Services (Que hacemos): 1 columna */
  .services-4col {
    grid-template-columns: 1fr !important;
    gap: 14px;
    max-width: 100%;
  }
  .services-4col article {
    padding: 18px 14px;
  }
  .services-4col article p {
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    word-spacing: normal;
    line-height: 1.55;
    font-size: 0.88rem;
  }

  /* Productos: cards mas pequeñas en movil */
  #productos-grid {
    grid-template-columns: 1fr !important;
  }
  .producto-card {
    min-width: 260px;
    max-width: 260px;
    border-radius: 14px;
  }
  .producto-card-body {
    padding: 18px 16px 22px;
    gap: 10px;
  }
  .producto-card-logo {
    max-width: 140px;
  }
  .producto-card h3 {
    font-size: 1.1rem;
  }
  .producto-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Clientes / Empresas */
  #clientes {
    padding: 30px 5%;
  }
  #clientes h2 {
    font-size: 1.4rem;
  }
  .carrusel-clientes {
    gap: 16px;
  }
  .cliente-card {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    padding: 4px;
    flex: 0 0 200px;
    min-width: 200px;
    min-height: 200px;
  }
  .cliente-card img {
    width: 100%;
    height: 100%;
    min-width: 160px;
    min-height: 160px;
    object-fit: contain;
    display: block;
  }

  /* Lanzamiento: asegurar visible en movil */
  .productos-top-unico {
    max-width: 100%;
    margin: 0 auto 30px;
  }
  .lanzamiento-unico {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px;
  }
  .lanzamiento-unico-col {
    padding: 20px 16px;
  }
  .lanzamiento-unico-div {
    width: 100%;
    height: 1px;
  }
  .countdown-rings {
    gap: 6px;
    flex-wrap: wrap;
  }
  .ring-wrap {
    width: 56px;
    height: 56px;
  }
  .ring-wrap svg {
    width: 56px;
    height: 56px;
  }
  .ring-val {
    font-size: 1.1rem;
  }
  .ring-label {
    font-size: 0.65rem;
  }
  .lanzamiento-titulo {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  .lanzamiento-unico-col h3 {
    font-size: 1.15rem;
  }
  .monitoreo-desc {
    font-size: 0.85rem;
  }

  /* CTA La Colmena */
  #lacolmena.cta-final {
    padding: 30px 5%;
  }
  #lacolmena.cta-final h2 {
    font-size: 1.4rem;
  }
  #lacolmena.cta-final p {
    font-size: 0.9rem;
  }

  /* Contacto / Footer */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-divider-vertical {
    display: none;
  }

  /* Como funciona: stack */
  .como-funciona-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Modal producto */
  .modal-container {
    width: 96vw;
    max-height: 92vh;
  }

  /* Preloader */
  #preloader .loader-content {
    padding: 0 20px;
  }
  #loading-text {
    font-size: 1.1rem;
  }
}

/* =========================================================
   RESPONSIVE — PANTALLAS JUMBO / 4K (>1920px)
   ========================================================= */
@media (min-width: 1920px) {
  .section {
    padding: 100px 10%;
  }

  /* Contador de visitantes más grande y visible */
  .visitantes-wrap {
    gap: 6px;
    padding: 8px 0;
  }
  .visitantes-label {
    font-size: 1rem;
    letter-spacing: 2px;
  }
  #visitanteContador {
    font-size: 3rem;
  }

  /* Cards de productos más grandes en carrusel */
  .producto-card {
    min-width: 340px;
    max-width: 340px;
  }
  .producto-card-body {
    padding: 32px 28px 36px;
  }
  .producto-card h3 {
    font-size: 1.45rem;
  }
  .producto-card p {
    font-size: 1.05rem;
  }

  /* Carrusel clientes más grande */
  .cliente-card {
    min-width: 220px;
    height: 160px;
  }
  .cliente-card img {
    max-width: 180px;
    max-height: 100px;
  }

  /* Servicios grid más amplio */
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* Texto general más grande */
  #clientes h5 {
    font-size: 1.2rem;
  }
  .section-sub {
    font-size: 1.15rem;
    max-width: 900px;
  }
  h2 {
    font-size: 2.8rem;
  }
}

@media (min-width: 2560px) {
  .section {
    padding: 120px 12%;
  }

  .producto-card {
    min-width: 400px;
    max-width: 400px;
  }
  .producto-card-body {
    padding: 40px 32px 44px;
    gap: 18px;
  }
  .producto-card h3 {
    font-size: 1.6rem;
  }
  .producto-card p {
    font-size: 1.15rem;
  }

  .cliente-card {
    min-width: 260px;
    height: 190px;
  }
  .cliente-card img {
    max-width: 220px;
    max-height: 120px;
  }

  #visitanteContador {
    font-size: 3.6rem;
  }
  .visitantes-label {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 3.2rem;
  }
  .section-sub {
    font-size: 1.25rem;
    max-width: 1000px;
  }
}

/* =========================================================
   BADGES DE COMPATIBILIDAD (seguridad — sin rutas internas)
   ========================================================= */
.modal-logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a2332 0%, #2a3f5f 100%);
  color: #ECECEC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(10,35,66,0.25);
}

.compatible-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px 0;
}

.compat-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(10,35,66,0.08);
  border: 1px solid rgba(10,35,66,0.15);
  color: #0a2342;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.compat-badge:hover {
  background: rgba(10,35,66,0.15);
  border-color: rgba(10,35,66,0.25);
}

/* Iconos de compatibilidad — 3 por fila, pequeños */
.compatible-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 4px 0;
}

.compat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 48px;
}

.compat-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.compat-item span {
  font-size: 0.6rem;
  color: #0a2342;
  text-align: center;
  line-height: 1.2;
}
