/* ==========================================
   SECCIÓN HERO / SLIDER (INDEX) - DEFINITIVO
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a2540 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Efecto de fondo brillante / Glow sutil */
.hero-slider::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 4;
}

/* Capa oscura general (Overlay) para legibilidad del texto */
.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 41, 0.70);
    z-index: 2;
}

/* Ocultamos por defecto todas las diapositivas y las forzamos a ocupar todo el contenedor */
.hero-slider .hero-slide {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    align-items: center;
    padding: 0 5%;
    z-index: 1;
}

/* Diapositiva Activa: Se muestra y abarca el 100% del fondo azul */
.hero-slider .hero-slide.active {
    display: flex !important;
    opacity: 1 !important;
    z-index: 3 !important;
}

/* Imágenes de fondo individuales para cada slide */
.hero-slide.slide-1 {
    background-image: url('/img/fondo.jpeg');
}

.hero-slide.slide-2 {
    background-image: url('/img/2.png');
}

.hero-slide.slide-3 {
    background-image: url('/img/3.png');
}

/* Contenido de texto dentro de cada slide */
.hero-content {
    position: relative;
    max-width: 650px;
    z-index: 5;
}

.tagline {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-lg, 20px);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-light, #ffffff);
}

.hero-content h1 span {
    color: var(--accent-green);
}

.hero-content p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Botón CTA Verde Destacado */
.btn-primary {
    background: var(--accent-green);
    color: #000000;
    padding: 12px 26px;
    border-radius: var(--radius-sm, 8px);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #00c853;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

/* Flechas Navegación Slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light, #ffffff);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 6;
}

.slider-arrow:hover {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Indicadores / Puntos inferiores */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-green);
    width: 24px;
    border-radius: 10px;
}

/* ==========================================
   SECCIÓN DE CARACTERÍSTICAS / SERVICIOS
   ========================================== */
.features-section {
    padding: 60px 5%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card, #ffffff);
    padding: 30px 25px;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 136, 255, 0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    color: var(--primary-blue, #0284c7);
    border-radius: var(--radius-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-blue, #0284c7);
    color: var(--text-light, #ffffff);
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark, #0b1329);
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted, #475569);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Imágenes de fondo individuales para cada slide */
.hero-slide.slide-1 {
    background-image: url('../img/fondo.jpeg') !important;
}

.hero-slide.slide-2 {
    background-image: url('../img/2.png') !important;
}

.hero-slide.slide-3 {
    background-image: url('../img/3.png') !important;
}

/* Contenedor principal del slider */
.hero-slider {
    position: relative;
    position: relative;
    overflow: hidden;
    /* Ajusta la altura de tu banner según necesites */
    height: 550px; 
}

/* Cada diapositiva con su imagen de fondo adaptada */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Diapositiva activa visible */
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Capa oscura semitransparente sobre la imagen (Aquí controlas qué tan oscuro se ve) */
.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* El valor '0.65' oscurece el fondo. Si lo quieres más oscuro sube a 0.75, si lo quieres más claro bájalo a 0.5 */
    background: rgba(10, 15, 25, 0.75); 
    z-index: 3;
}

/* Asegurarnos de que el contenido del texto esté por encima de la capa oscura */
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 650px;
    padding-left: 60px;
    color: #fff;
}

/* ==========================================
   SECCIÓN HERO / SLIDER (INDEX) - MODO OSCURO
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    background: #060b14; /* Fondo base completamente oscuro por seguridad */
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Diapositivas individuales */
.hero-slider .hero-slide {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    align-items: center;
    padding: 0 5%;
    z-index: 1;
}

.hero-slider .hero-slide.active {
    display: flex !important;
    opacity: 1 !important;
    z-index: 3 !important;
}

/* CAPA OSCURA PROFUNDA (Aquí está el cambio clave) */
.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Un color azul/negro casi sólido (0.90 de opacidad) para que la imagen quede muy tenue */
    background: rgba(6, 11, 20, 0.90) !important; 
    z-index: 2;
}

/* Contenido de texto completamente destacado al frente */
.hero-content {
    position: relative;
    max-width: 700px;
    z-index: 5;
}

/* Contenedor principal del carrusel */
.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    background-color: #0b1320;
    overflow: hidden;
}

/* Cada diapositiva contiene su propia imagen y su propia capa de degradado */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Diapositiva activa */
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* LA CLAVE: Un degradado horizontal (oscuro a la izquierda, semitransparente a la derecha) */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado: 85% de oscuridad pura a la izquierda para el texto, y se aclara hacia la derecha para ver la foto */
    background: linear-gradient(90deg, rgba(11, 19, 32, 0.95) 0%, rgba(11, 19, 32, 0.80) 50%, rgba(11, 19, 32, 0.40) 100%);
    z-index: 1;
}

/* Contenido del texto al frente */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    padding-left: 60px;
    color: #ffffff;
}

@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900');

/* Contenedor principal que aísla los estilos para que no afecten al resto del index */
.categorias-wrapper {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    width: 100%;
}

.categorias-wrapper *,
.categorias-wrapper *::before,
.categorias-wrapper *::after {
    box-sizing: border-box;
}

.categorias-wrapper .section-fluid-main {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
    padding: 0;
}

.categorias-wrapper .section-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 15px;
}

.categorias-wrapper .section-row:hover .section-col {
    opacity: 0.1;
}

.categorias-wrapper .section-col {
    width: 100%;
    height: 400px;
    transition: opacity 250ms linear;
    cursor: pointer;
}

.categorias-wrapper .section-row .section-col:hover {
    opacity: 1;
}

.categorias-wrapper .section {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    padding: 15px;
}

.categorias-wrapper .section-in {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.categorias-wrapper .section-in img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.categorias-wrapper .section-col:hover .section-in img {
    transform: scale(1.1) rotate(-3deg);
}

.categorias-wrapper .hover-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 100;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.categorias-wrapper .hover-text h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 8vw;
    line-height: 1;
    background: linear-gradient(to right, #00d2ff, #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 250ms linear, opacity 250ms ease;
    margin: 0;
}

.categorias-wrapper .section-col:hover + .hover-text h2 {
    opacity: 1;
    transform: scale(1);
}

.categorias-wrapper .section-title-custom {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.categorias-wrapper .divider-custom {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #00d2ff, #00ff88);
    margin: 0 auto;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .categorias-wrapper .section-row {
        grid-template-columns: 1fr;
    }
    .categorias-wrapper .section-col {
        height: 300px;
    }
    .categorias-wrapper .hover-text h2 {
        font-size: 11vw;
    }
}

/* ==========================================================
   ESTILOS PARA LAS TARJETAS DE PRODUCTOS MÁS VENDIDOS
   ========================================================== */

.productos-mas-vendidos-section .el-wrapper {
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: all 0.4s ease;
  margin: 10px auto;
  width: 100%;
  max-width: 280px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.productos-mas-vendidos-section .el-wrapper:hover .box-down {
  background: linear-gradient(90deg, #00d2ff, #00ff88);
}

.productos-mas-vendidos-section .el-wrapper:hover .price {
  left: 20px;
  transform: translateX(0);
  color: #fff;
}

.productos-mas-vendidos-section .el-wrapper:hover .add-to-cart {
  opacity: 1;
}

.productos-mas-vendidos-section .el-wrapper:hover .img {
  filter: blur(4px);
  opacity: 0.3;
}

.productos-mas-vendidos-section .el-wrapper:hover .info-inner {
  bottom: 155px;
}

.productos-mas-vendidos-section .el-wrapper:hover .a-size {
  transition-delay: 300ms;
  bottom: 35px;
  opacity: 1;
}

.productos-mas-vendidos-section .box-down {
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  transition: background 0.4s ease;
  margin-top: auto;
}

.productos-mas-vendidos-section .box-up {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.productos-mas-vendidos-section .img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 10px;
  transition: all 800ms cubic-bezier(0, 0, 0.18, 1);
}

.productos-mas-vendidos-section .info-inner {
  transition: all 400ms cubic-bezier(0, 0, 0.18, 1);
  position: absolute;
  width: 100%;
  bottom: 25px;
  text-align: center;
  padding: 0 10px;
}

.productos-mas-vendidos-section .info-inner .p-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(to right, #00d2ff, #0088ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.productos-mas-vendidos-section .info-inner .p-company {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  color: #8c8c8c;
  margin-top: 3px;
  letter-spacing: 0.5px;
}

.productos-mas-vendidos-section .a-size {
  transition: all 300ms cubic-bezier(0, 0, 0.18, 1);
  position: absolute;
  width: 100%;
  bottom: -20px;
  font-family: 'Poppins', sans-serif;
  color: #828282;
  opacity: 0;
  padding: 0 15px;
  box-sizing: border-box;
}

.productos-mas-vendidos-section .a-size .size {
  color: #252525;
  font-size: 0.8rem;
  font-weight: 600;
}

.productos-mas-vendidos-section .cart {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  text-decoration: none !important;
  box-sizing: border-box;
}

.productos-mas-vendidos-section .cart .price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #0088ff;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}

.productos-mas-vendidos-section .cart .add-to-cart {
  opacity: 0;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  margin-left: auto;
}

.productos-mas-vendidos-section .cart .add-to-cart .txt {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================
   ESTILOS PARA LA SECCIÓN HERO CON VIDEO
   ========================================================== */

.showcase-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Llena toda la pantalla sin deformar el video */
  z-index: 0;
}

/* Capa oscura translúcida para que los textos resalten sobre el video */
.showcase-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Ajusta si quieres más o menos oscuridad */
  z-index: 0;
}

/* Contenido centrado (Textos y Botón) */
.content-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 900px;
}

.content-overlay h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.content-overlay h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.content-overlay h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  font-weight: 400;
}

/* Botón con tus colores combinados */
.btn-catalogo {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(90deg, #00d2ff, #00ff88);
  color: #0f172a; /* Texto oscuro para que contraste duramente y se lea excelente */
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-catalogo span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-catalogo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
  color: #0f172a;
}

.btn-catalogo:hover span {
  transform: translateX(5px); /* Pequeña animación en la flecha al pasar el ratón */
}

/* Diseño Responsivo para Celulares */
@media (max-width: 750px) {
  #background-video { 
    display: none; /* Oculta el video en móviles para ahorrar datos y evitar bloqueos de autoplay */
  } 
  .showcase-container { 
    background: url('img/fondo.jpeg') center/cover no-repeat; /* Fondo de respaldo estático */
  } 
  .content-overlay h1 { 
    font-size: 1.8rem; 
  }
  .content-overlay h2 { 
    font-size: 1.1rem; 
  }
  .content-overlay h3 {
    font-size: 0.95rem;
  }
}

/* ==========================================================
   ESTILOS PARA LA SECCIÓN DE RESEÑAS
   ========================================================== */

.reviews-section {
  padding: 60px 5%;
  background-color: #f8fafc;
  text-align: center;
}

.reviews-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 320px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.review-card:hover { 
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.user-avatar {
  background: #f1f5f9;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #0088ff;
  border: 2px solid #e2e8f0;
}

.stars { 
  color: #fbbf24; /* Tono dorado moderno */
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin: 10px 0 15px 0; 
}