/* ========== RESETEO GENERAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo base del cuerpo (fondo, tipografía, color general) */
body {
  background-color: #1e1e1e;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  /*padding: 30px;*/
}

/* ========== CARRUSEL DE PRODUCTOS (tipo vitrina principal) ========== */

/* Contenedor del carrusel (envuelve todo el contenido del carrusel) */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: auto;
  margin-bottom: 50px;
  padding: 30px; /* 👈 Añadido: espacio horizontal */
  box-sizing: border-box; /* 👈 Asegura que el padding no afecte el ancho total */
}

/* Pista del carrusel (contenedor que se desliza horizontalmente) */
.carousel-track {
  display: flex;
  gap: 20px;
  padding: 10px;
  overflow: hidden;
  scroll-behavior: smooth;
}

/* Estilo de las imágenes del carrusel */
.carousel-track img {
  width: 100%;
  max-width: 240px;
  height: auto;
  flex-shrink: 0;
  border-radius: 20px;
  object-fit: contain;
  background-color: #1e1e1e;
  transition: transform 0.3s ease;
}

/* Responsividad del carrusel para pantallas pequeñas */
@media (max-width: 768px) {
  .carousel-track img {
    max-width: 180px;
  }
}

/* Efecto zoom suave al pasar el mouse */
.carousel-track img:hover {
  transform: scale(1.05);
}

/* Botones de navegación del carrusel (izquierda y derecha) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* Posición específica de cada botón */
.carousel-btn.left { left: 40px; }
.carousel-btn.right { right: 40px; }
/* ========== MISIÓN Y VISIÓN (sección informativa con efecto fade) ========== */

/* Contenedor general de misión/visión */
.info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  /*margin-bottom: 30px;*/
}

/* Tarjeta base con color y bordes para misión o visión (antes de agregar fondo de imagen) */
.info-card {
  background-color: #1e1e1e;
  border-radius: 20px;
  padding: 25px;
  max-width: 500px;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

/* Título dentro de la tarjeta */
.info-card h2 {
  margin-bottom: 15px;
  color: #00c4ff;
}

/* Estilo de tarjeta con fondo imagen + efecto fade (agregado recientemente) */
.fade-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
}

/* Efecto sutil de escala al pasar el mouse */
.fade-card:hover {
  transform: scale(1.02);
}

/* Contenedor del texto oculto sobre la imagen */
.fade-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: rgba(18, 18, 18, 0.85); /* Fondo oscuro translúcido */
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Mostrar texto cuando se pasa el mouse */
.fade-card:hover .overlay {
  opacity: 1;
}

/* Título dentro del texto superpuesto */
.fade-card .overlay h2 {
  color: #00c4ff;
  margin-bottom: 10px;
}
/* ========== PROMOCIONES DESTACADAS ========== */

/* Título de la sección */
.promo-section {
  text-align: center;
}

.promo-section h2 {
  font-size: 40px;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Diseño de cuadrícula para las promociones */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 14px/*20px*/;
  justify-items: center;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Estilo individual de cada promoción */
.promo-card {
  background-color: #1e1e1e;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 0 15px rgba(0,255,255,0.05);
  transition: transform 0.3s ease;
}

/* Efecto zoom al pasar el mouse */
.promo-card:hover {
  transform: scale(1.05);
}

/* Imagen dentro de cada tarjeta de promoción */
.promo-card img {
  width: 100%;
  height: auto/*250*/;
  object-fit:cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.promo-card h3 {
  color: #26fada;
}

/* Estilo para la nueva tarjeta con doble imagen */
.hover-card {
  position: relative;
  width: 100%;
  height: 300px;
  background-image: var(--img1);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  transition: background-image 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hover-card:hover {
  background-image: var(--img2);
}

/* Contenido interno */
.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
}

.title-static {
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
}

/* Texto que aparece solo al hacer hover */
.hover-text {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hover-card:hover .hover-text {
  opacity: 1;
}

/* ----------------------------------------
   Sección: Estilos para Misión y Visión con transiciones
   ---------------------------------------- */
.info-card {
  position: relative;
  width: 100%;
  height: 300px;
  background-image: var(--img1);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  transition: background-image 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /*margin-bottom: 100px; 👈 AÑADIDO espacio vertical entre mision/vision*/
}

.info-card .title {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
  z-index: 2;
}

.info-card .info-text {
  opacity: 0;
  color: white;
  font-size: 18px;
  max-width: 80%;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* Hover effect */
.info-card:hover {
  background-image: var(--img2);
}

.info-card:hover .info-text,
.info-card:hover::before {
  opacity: 1;
}

/* Clase especial para animación automática */
.auto-slide.active {
  background-image: var(--img2);
}

.auto-slide.active .info-text,
.auto-slide.active::before {
  opacity: 1;
}

/* ========== MEJORAS VISUALES: Transición más suave en Misión/Visión ========== */

/* Animación sutil de zoom y fade entre imágenes */
.info-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out, transform 1.5s ease;
  will-change: transform, opacity;
}

/* Animación de zoom lento (siempre activo) */
.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1);
  transition: transform 10s ease;
  opacity: 0.25;
  pointer-events: none;
}

.info-card:hover::after,
.auto-slide.active::after {
  transform: scale(1.1);
}

/* Hacemos el overlay más atractivo */
.info-card .info-text {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}

.info-card:hover .info-text,
.auto-slide.active .info-text {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   Estilos del Encabezado Principal
   ============================== */

.main-header {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 20px 0;
  margin-bottom: 30px; /* Espacio con carrusel */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  
}

.logo img {
  height: 50px;
  border-radius: 5px;
}

.brand-name {
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 22px/*1.1em*/;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-menu ul li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff/*00d4ff*/;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ==============================
   Responsive Header y Menú Hamburguesa
   ============================== */

/* Estilo del botón hamburguesa */
.hamburger {
  display: none;
  font-size: 32px;          /* ✅ Tamaño grande */
  cursor: pointer;
  color: #ffffff;           /* Blanco o el color que prefieras */
  z-index: 1001;
  position: relative;
  transition: transform 0.2s ease;
}

/*.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}*/

.hamburger:hover {
  transform: scale(1.1);    /* Efecto sutil al pasar el mouse */
}

/*.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}*/

/* Menú oculto en móviles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;/*100% para que el menú aparezca debajo del header*/
    left: 0;
    width: 100%;
    background-color: #203a43;
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu ul li a {
    font-size: 1.2em;
  }

  .nav-menu.active {
    display: flex;
  }

  .main-header .container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* Desplazamiento suave para navegación con anclas */
html {
  scroll-behavior: smooth;
}

/* 🌙 Estilos del Footer 
.site-footer {
  background-color: #222;
  color: #ddd;
  padding: 40px 20px 20px;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 250px;
  margin: 10px;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 18px;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.footer-column a {
  color: #00ccff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  color: #888;
}*/

/* 🌙 Estilos del Footer */
/* Canvas en el fondo del footer */
#footerCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* Detrás del footer */
}

.site-footer {
  /*añadimos position y desactivamos background*/
  position: relative;
  overflow: hidden;
  /*background-color: #1e1e1e;*/
  color: #ccc;
  padding: 20px 20px 20px; /* 👈 antes: 40px 20px 20px */
  font-size: 16px;         /* 👈 opcionalmente reducido un poco */
  line-height: 1.5;        /* 👈 más compacto que 1.6 */
  margin-top: 10px;
  /*border-top: 2px solid #444;*/
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 250px;
  margin: 5px 10px; /* 👈 antes: 10px */
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 8px;  /* 👈 antes: 10px */
  font-size: 16px;     /* 👈 antes: 18px */
  border-bottom: 1px solid #444;
  padding-bottom: 4px; /* 👈 antes: 5px */
}

.footer-column a {
  color: #ffffff/*00ccff*/;
  text-decoration: none;
  font-size: 16px;     /* 👈 para hacerlo más compacto aún */
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;    /* 👈 antes: 30px */
  border-top: 1px solid #444;
  padding-top: 20px;   /* 👈 antes: 15px */
  color: #888;
  font-size: 14px;     /* 👈 opcionalmente reducido */
}

.footer-column img { /*iconos alineados verticalmente con el texto*/
  width: 20px;
  height: auto;
  vertical-align: -4px;
  /*margin-right: 8px;*/
}

/* 🎯 Sección de Productos */
.productos-section {
  padding: 60px 20px;
  background-color: #1e1e1e;
  text-align: center;
}

.productos-titulo {
  font-size: 38px;
  color: #00ccff;
  margin-bottom: 10px;
}

.productos-subtitulo {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 40px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.producto-card {
  background-color: #242424;
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0,204,255,0.4);
}

.producto-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.producto-card h3 {
  margin: 10px 0;
  font-size: 20px;
  color: #00ccff;
}

.producto-card p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.precio {
  display: block;
  font-weight: bold;
  color: #4cd964;
  margin-bottom: 15px;
}

.boton-producto {
  display: inline-block;
  background-color: #00ccff;
  color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.boton-producto:hover {
  background-color: #009ec3;
}

/* ===== Noticias y Tendencias ===== */
/* Reducir ancho de las noticias en pantallas grandes */
#noticias {
  max-width: 1000px; /* ancho máximo */
  margin: 0 auto;   /* centrar en la pantalla */
}

.news-section {
  padding: 40px 20px;
  background-color: #1e1e1e; /* Fondo suave para diferenciar de promociones */
  text-align: center;
}

.news-section h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
}

.news-card {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin: 15px;
}

.news-card p {
  font-size: 0.95rem;
  color: #fff;
  margin: 0 15px 15px;
}

.news-btn {
  display: inline-block;
  width: auto;
  /*margin: 0 15px 15px;*/
  padding: 10px 20px/*8px 15px*/;
  background-color: #009639; /* Verde Kaspersky adaptado */
  color: white;
  border-radius: 25px;
  /*font-size: 0.9rem;*/
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.news-btn:hover {
  background-color: #007a2e; /* Verde más oscuro al pasar */
}
