
:root{
  --bg1:#0f1724; --bg2:#0b1220; --accent:#06b6d4; --accent2:#7c3aed;
  --glass: rgba(255,255,255,0.06);
  --card: rgba(255,255,255,0.04);
  --text:#e6eef6;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;}
.container{max-width:1100px;margin:0 auto;padding:0 20px;}
.bg-anim{position:fixed;inset:0;z-index:-2; background: radial-gradient(circle at 10% 20%, rgba(6,182,212,0.08), transparent 10%), radial-gradient(circle at 90% 80%, rgba(124,58,237,0.06), transparent 12%), linear-gradient(180deg,var(--bg1),var(--bg2));}
.topbar{position:fixed;top:0;left:0;right:0;z-index:40;background:rgba(4,6,12,0.5);backdrop-filter:blur(6px);border-bottom:1px solid rgba(255,255,255,0.03);}
.topbar .container{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;}
.brand{color:var(--accent);font-weight:700}
.nav a{color:rgba(230,238,246,0.8);margin-left:18px;text-decoration:none}
.hero{height:100vh;display:flex;align-items:center;justify-content:center; text-align:center;padding:0 20px}
.hero-inner{backdrop-filter:blur(6px);background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:40px;border-radius:16px;border:1px solid rgba(255,255,255,0.04);}
.hero h1{font-size:clamp(1.8rem, 6vw, 3rem);color:var(--accent);margin:0 0 12px}
.hero p{font-size:clamp(1rem, 3vw, 1.25rem);color:var(--text);max-width:820px;margin:0 auto 18px}
.btn{display:inline-block;background:linear-gradient(90deg,var(--accent),var(--accent2));color:#011021;padding:12px 20px;border-radius:10px;text-decoration:none;font-weight:700;box-shadow:0 8px 30px rgba(7,89,101,0.12)}
.panel{padding:56px 0}
.split{display:flex;gap:28px;align-items:center}
.split .text{flex:1}
.split .media{flex:1;display:flex;justify-content:center}
.split img{max-width:360px;border-radius:14px;border:1px solid rgba(255,255,255,0.06);box-shadow:0 10px 40px rgba(6,182,212,0.06)}
h2{color:var(--accent)}
.lead{color: #cfeaf2}
.controls{display:flex;gap:12px;margin:18px 0 28px}
.controls input, .controls select{padding:10px 12px;border-radius:10px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.04);color:var(--text)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.card{background:var(--card);padding:14px;border-radius:12px;border:1px solid rgba(255,255,255,0.03);backdrop-filter:blur(6px)}
.card img{width:100%;height:150px;object-fit:cover;border-radius:8px;margin-bottom:10px}
.card h4{margin:0 0 6px;color:var(--accent)}
.card p{margin:0 0 8px;color:var(--text)}
.list-disc{color:#bcdde7}
.form{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.form input,.form textarea{padding:12px;border-radius:10px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.04);color:var(--text);resize:vertical}
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent2));color:#011021;border:none;padding:12px 18px;border-radius:10px;font-weight:700}
.footer{padding:28px 0;color:rgba(230,238,246,0.6);text-align:center; position: relative;}

/* Responsive */
@media(max-width:768px){
  .split{flex-direction:column}
  .split img {max-width: 100%;
    margin: 0 auto;}
  .split .text {text-align: center;}
  .hero h1{font-size:32px}
  .topbar .container{
    flex-direction: column;
    align-items: flex-start;
  }
}

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


/* Mejoras de legibilidad */
body {
  color: #f1f5f9;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

p, li {
  color: #e5e7eb;
}

.hero-text, .section-title {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}


/* Fondo dinámico canvas */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  background: #0a0a1a;
}

/* Efecto futurista de neón animado */
.neon-title {
  color: #0ff;
  text-shadow:
    0 0 5px #0ff,
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 40px cyan;
  animation: neonGlow 2s infinite alternate;
}

@keyframes neonGlow {
  from {
    text-shadow:
      0 0 5px #0ff,
      0 0 10px #0ff,
      0 0 20px #0ff,
      0 0 40px cyan;
  }
  to {
    text-shadow:
      0 0 10px #0ff,
      0 0 20px #0ff,
      0 0 40px #00faff,
      0 0 80px cyan;
  }
}

.nav a {
  display: inline-block;        /* necesario para transform */
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.nav a:hover {
  transform: scale(1.1);        /* agranda 10% */
  color: #06b6d4;               /* cambia a cyan */
}

.section-divider svg {
  opacity: 0.2; /* 20% de visibilidad */
}


/* === Imagen de EMPRESA: no cambiamos el HTML === */
.split .media {
  position: relative;
  display: inline-block;
  overflow: hidden;     /* mantiene el efecto dentro de la imagen */
  border-radius: 12px;  /* mismo radio que la imagen */
}

.split .media img {
  display: block;
  max-width: 350px;     /* ajusta si la quieres más grande/pequeña */
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin: 0 auto;
}

/* === Scanner algorítmico (solo CSS, sin data-URI) === */
.split .media::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;           /* empieza fuera de la imagen */
  width: 60%;           /* ancho del “haz” */
  height: 100%;
  pointer-events: none; /* no bloquea el hover/click */

  /* 1) Sheen de escaneo  2) líneas horizontales  3–5) puntos/nodos */
  background:
    linear-gradient(115deg, transparent 0%, rgba(14,165,233,0.20) 50%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(14,165,233,0.18) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 12% 20%, rgba(14,165,233,0.35) 2px, transparent 3px),
    radial-gradient(circle at 38% 60%, rgba(14,165,233,0.25) 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(14,165,233,0.25) 2px, transparent 3px);

  /* tamaños/posiciones de cada capa */
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;

  animation: scan 3s linear infinite, gridMove 8s linear infinite;
  opacity: 0.28;        /* más/menos transparente (0.15–0.35) */
}

/* barrido del escáner */
@keyframes scan {
  0%   { left: -60%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

/* ligero movimiento de las líneas para sensación “viva” */
@keyframes gridMove {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 40px, 0 0, 0 0, 0 0; }
}

/* Modal oculto */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55); /* fondo oscuro transparente */
  align-items: center;
  justify-content: center;
}

/* Caja interna */
.modal-content {
  background: rgba(17,25,40,0.95);
  color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(14,165,233,0.4);
  box-shadow: 0 0 20px rgba(14,165,233,0.5);
  animation: fadeIn 0.3s ease;
  position: relative;
}

/* Botón cerrar */
.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0ea5e9;
  font-weight: bold;
}

/* Animación entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9);}
  to { opacity: 1; transform: scale(1);}
}

/* Botón "Detalles" */
.btn-detalles {
  margin-top: 1rem;
  background: rgba(14,165,233,0.2);
  border: 1px solid rgba(14,165,233,0.5);
  color: #0ea5e9;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;          /* ocupa solo lo necesario */
  max-width: 45%;              /* nunca supera el 45% del ancho */
  align-self: flex-start;      /* lo mantiene alineado a la izquierda */
}
.btn-detalles:hover {
  background: rgba(14,165,233,0.35);
  transform: scale(1.05);
}

/* Contenedor de cada tarjeta */
.solucion-card {
  display: flex;
  flex-direction: column;   /* elementos en columna */
  justify-content: space-between; /* deja el botón abajo */
  height: 100%;             /* todas las tarjetas ocupan la misma altura */

  background: rgba(255, 255, 255, 0.15); /* fondo oscuro translúcido */
  backdrop-filter: blur(10px);         /* efecto de vidrio */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: all 0.3s ease;

  padding: 0.6rem;   /* espacio interno extra */
  margin-bottom: 0.1rem; /* separación entre tarjetas y texto */
}

.solucion-card:hover {
  box-shadow: 0 0 25px rgba(14,165,233,0.5); /* cian futurista */
  transform: translateY(-4px);
}

/* Botón detalles siempre al final */
.solucion-card .btn-detalles {
  margin-top: auto;         /* empuja el botón hacia abajo */
}

/* Galería pequeña */
.modal-gallery {
  display: flex;
  gap: 10px;
  margin: 2.5rem 0 1.5rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-gallery img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.20);
  padding: 4px;
  transition: transform 0.3s ease;
}

.modal-gallery img:hover {
  transform: scale(1.1);
}

/* Beneficios */
.modal-benefits {
  margin-top: 1.5rem;
}

.modal-benefits h4 {
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.modal-benefits ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: #e2e8f0;
}

.product-img,
.product-img-opt {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 10px;
}

.product-img img,
.product-img-opt img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block; 
}

.product-img:hover img,
.product-img-opt:hover img {
  transform: scale(1.05);
}

/* Overlay con el nombre */
.product-img::after,
.product-img-opt::after {
  content: attr(data-name);
  position: absolute;
  inset: 0; /* ocupa toda la imagen */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px; /* espacio interno */
  background: rgba(14, 165, 233, 0.7); /* azul translúcido */
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;   /* fuerza el salto de línea */
  white-space: normal;     /* permite varias líneas */
  line-height: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-img:hover::after,
.product-img-opt:hover::after {
  opacity: 1;
}

.product-img-opt {
  border: 1px dashed rgba(255, 255, 255, 0.4); /* línea punteada */
  background: rgba(148, 163, 184, 0.05);       /* gris tenue */
}

.product-img-opt::after {
  background: rgba(100,116,139,0.75); /* gris tecnológico */
}

/* Estilo general del select */
#productos select {
  background: rgba(255, 255, 255, 0.05); /* fondo translúcido */
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc; /* texto claro */
  padding: 6px 10px;
  border-radius: 6px;
}

/* Opciones del desplegable */
#productos option {
  background: #0f172a; /* fondo oscuro para el menú */
  color: #f8fafc;      /* texto blanco */
}

/* Contenedor de cada card */
#productos .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  overflow: hidden; /* evita que la imagen se salga */
}

/* Imagen dentro de la card */
#productos .card img {
  width: 100%;
  height: 110px; /* altura fija para mantener proporción entre todas */
  object-fit: contain; /* ajusta la imagen sin recortarla */
  border-radius: 8px;
}

/* Solo centra el tagline dentro de las cards */
#productos .card p {
  text-align: center;
  font-size: 0.95rem;
  color: #ddd; /* para que resalte mejor sobre el fondo */
  margin: 8px 0 12px;
}

#contacto {
  min-height: 100vh; /* ocupa toda la pantalla */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra vertical */
}

.contact-wrapper {
  display: flex;
  justify-content: center; 
  align-items: stretch; /* hace que las columnas tengan la misma altura */
  gap: 2rem;
  width: 100%;
  max-width: 1000px; /* ancho máximo del contenido */
  flex-wrap: wrap;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
  
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente */
  align-items: flex-start; /* alineado a la izquierda */
  text-align: left;
  padding-left: 5rem; /* margen desde la izquierda */
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 350px;
}

form input, form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

form textarea {
  min-height: 120px;
}

.contact-info h3 {
  border-left: 4px solid #00e5ff;
  padding-left: 0.5rem;
  text-shadow: 0 0 10px #00e5ff;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  position: relative;
  padding-left: 2rem;
  color: #f2f0f2bc;
}

.contact-info li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #00e5ff;
  text-shadow: 0 0 8px #00e5ff;
}

.icon {
  margin-right: 0.5rem;
  color: #00e5ff;
  text-shadow: 0 0 6px #00e5ff;
}

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

@media (max-width: 768px) {
  .contact-info, .contact-form {
    padding-left: 1rem;
    align-items: center;
    text-align: center;
  }
  form {
    max-width: 100%;
  }
}

.video-wrapper.small {
  width: 400px;   /* ajusta según el tamaño de tu imagen */
  height: 300px;  /* ajusta según el tamaño de tu imagen */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}