  #heroSlider.hero-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 24px;
    overflow: hidden;
    background: #0b0f18;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  }

  #heroSlider .carousel-inner {
    border-radius: 24px;
    overflow: hidden;
  }

  #heroSlider .carousel-item,
  #heroSlider .hero-slide {
    position: relative;
    background: #0b0f18;
    overflow: hidden;
  }

  #heroSlider .hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
  }

  #heroSlider .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(5, 10, 18, 0.03) 0%,
      rgba(5, 10, 18, 0.015) 45%,
      rgba(5, 10, 18, 0.005) 100%
    );
  }

  #heroSlider .hero-button-container {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    z-index: 20;
  }

  #heroSlider .hero-btn,
  #heroSlider .hero-btn:link,
  #heroSlider .hero-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    padding: 14px 26px;
    border-radius: 14px;
    border: 0;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: #07110b !important;
    background: linear-gradient(135deg, #27ff9f, #11d977);
    box-shadow: 0 12px 28px rgba(39, 255, 159, 0.35);
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  }

  #heroSlider .hero-btn:hover,
  #heroSlider .hero-btn:focus,
  #heroSlider .hero-btn:active {
    color: #07110b !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(39, 255, 159, 0.36);
  }

  #heroSlider .hero-btn i,
  #heroSlider .hero-btn span {
    line-height: 1;
  }

  #heroSlider .hero-indicators,
  #heroSlider .carousel-indicators {
    margin-bottom: 18px;
    z-index: 11;
  }

  #heroSlider .hero-indicators [data-bs-target],
  #heroSlider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 999px;
    border: 0;
    opacity: 1;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
  }

  #heroSlider .hero-indicators .active,
  #heroSlider .carousel-indicators .active {
    width: 34px;
    background: #24ff97;
    box-shadow: 0 0 16px rgba(36, 255, 151, 0.4);
  }

  #heroSlider .hero-control,
  #heroSlider .carousel-control-prev,
  #heroSlider .carousel-control-next {
    width: 7%;
    z-index: 15;
  }

  #heroSlider .carousel-control-prev-icon,
  #heroSlider .carousel-control-next-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: 58% 58%;
    background-color: rgba(8, 12, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
  }

  #heroSlider .carousel-control-prev:hover .carousel-control-prev-icon,
  #heroSlider .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(20, 30, 40, 0.72);
  }

  @media (max-width: 768px) {
    #heroSlider.hero-carousel,
    #heroSlider .carousel-inner {
      border-radius: 18px;
    }

    #heroSlider .hero-image {
      max-height: 360px;
    }

    #heroSlider .hero-button-container {
      bottom: 14px;
    }

    #heroSlider .hero-btn,
    #heroSlider .hero-btn:link,
    #heroSlider .hero-btn:visited {
      min-width: 190px;
      padding: 10px 18px;
      font-size: 0.92rem;
      border-radius: 12px;
    }

    #heroSlider .hero-control,
    #heroSlider .carousel-control-prev,
    #heroSlider .carousel-control-next {
      display: none;
    }

    #heroSlider .hero-indicators,
    #heroSlider .carousel-indicators {
      margin-bottom: 10px;
    }
  }

  @media (max-width: 576px) {
    #heroSlider .hero-image {
      max-height: 220px;
    }

    #heroSlider .hero-button-container {
      bottom: 8px;
    }

    #heroSlider .hero-btn,
    #heroSlider .hero-btn:link,
    #heroSlider .hero-btn:visited {
      min-width: 160px;
      padding: 8px 12px;
      font-size: 0.82rem;
      border-radius: 12px;
    }

    #heroSlider .hero-indicators [data-bs-target],
    #heroSlider .carousel-indicators [data-bs-target] {
      width: 10px;
      height: 10px;
      margin: 0 4px;
    }

    #heroSlider .hero-indicators .active,
    #heroSlider .carousel-indicators .active {
      width: 24px;
    }
  }

/* Transici贸n suave entre slides */
#heroSlider.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transition-duration: 1.8s;
  transition-timing-function: ease-in-out;
}

#heroSlider.carousel-fade .carousel-item.active,
#heroSlider.carousel-fade .carousel-item-next.carousel-item-start,
#heroSlider.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

#heroSlider.carousel-fade .active.carousel-item-start,
#heroSlider.carousel-fade .active.carousel-item-end {
  opacity: 0;
}

#heroSlider.carousel-fade .carousel-item {
  transform: none !important;
}

#heroSlider .hero-image {
  transition: opacity 1.2s ease-in-out, filter 1.2s ease-in-out;
}

#heroSlider .carousel-item.active .hero-image {
  filter: brightness(1.03) contrast(1.05) saturate(1.04);
}



/* ==========================================================
   DISEÑO PREMIUM FINAL: LUZ CON RASTRO Y LATIDO IMPENETRABLE
   ========================================================== */

/* EL MOTOR DE ROTACIÓN MODERNO (Gira el color sin usar cajas gigantes) */
@property --angulo {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* 1. EL FONDO ANIMADO GALAXY */
body {
    background: linear-gradient(135deg, #020617, #082f1f, #0d1527, #020617) !important;
    background-size: 300% 300% !important;
    animation: fondo-cyber 12s ease infinite !important;
}

[data-bs-theme="light"] body {
    background: linear-gradient(135deg, #f8fafc, #d1fae5, #e2e8f0, #f8fafc) !important;
    background-size: 300% 300% !important;
    animation: fondo-cyber 12s ease infinite !important;
}

@keyframes fondo-cyber {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. LA TARJETA PRINCIPAL (Transparente por fuera, latido automático) */
.card-producto {
    position: relative;
    background: transparent !important; /* Hacemos la base transparente */
    border-radius: 16px !important;
    border: none !important;
    margin-bottom: 25px;
    z-index: 1;
    overflow: visible !important; /* Permite que salga la sombrita externa */
    animation: latido-suave 1.5s infinite alternate ease-in-out;
}

/* 3. CAPA 1: EL NÚCLEO DE LA LUZ (Grueso, asomando 4px hacia afuera) */
.card-producto::after {
    content: "";
    position: absolute;
    inset: -4px; /* GROSOR DEL MARCO: 4px */
    border-radius: 20px; /* Sigue la curva de la tarjeta */
    
    /* El Rayo de Luz con cola giratoria */
    background: conic-gradient(
        from var(--angulo),
        transparent 30%,
        rgba(0, 210, 106, 0.5) 60%,
        #00ff88 90%,
        transparent 100%
    );
    z-index: -1; 
    animation: rotar-luz 2.5s linear infinite;
}

/* 4. CAPA 2: LA SOMBRITA ESPONJOSA (Halo exterior) */
.card-producto::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: conic-gradient(
        from var(--angulo),
        transparent 30%,
        rgba(0, 210, 106, 0.4) 60%,
        #00ff88 90%,
        transparent 100%
    );
    z-index: -2;
    filter: blur(14px); /* Esta es la sombra tipo Zodiak */
    animation: rotar-luz 2.5s linear infinite;
}

/* 5. EL "MURO DE CONTENCIÓN" (Las cajas internas oscuras y opacas) */
.card-producto .img-wrapper {
    background: #0d1117 !important; /* Fondo opaco oscuro */
    position: relative;
    z-index: 2; /* Sobre la luz */
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid rgba(0, 210, 106, 0.2);
    overflow: hidden;
    display: block;
    margin: 0 !important;
}

.card-producto .card-body {
    background: #0d1117 !important; /* Fondo opaco oscuro */
    position: relative;
    z-index: 2; /* Sobre la luz */
    border-radius: 0 0 16px 16px !important;
    margin: 0 !important;
}

/* 6. ANIMACIONES CLAVE */
@keyframes rotar-luz {
    0% { --angulo: 0deg; }
    100% { --angulo: 360deg; }
}

@keyframes latido-suave {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* 7. REACCIÓN AL PASAR EL MOUSE (Latido acelerado y luz blanca) */
.card-producto:hover {
    animation: latido-hover 0.5s infinite alternate ease-in-out;
}
.card-producto:hover::after,
.card-producto:hover::before {
    background: conic-gradient(
        from var(--angulo),
        transparent 40%,
        rgba(0, 255, 136, 0.6) 70%,
        #ffffff 95%, /* Punta blanca */
        transparent 100%
    );
    animation: rotar-luz 0.8s linear infinite; /* Acelera */
}

@keyframes latido-hover {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.04); }
}

/* 8. ADAPTACIÓN MODO CLARO Y TEXTOS */
[data-bs-theme="light"] .card-producto .img-wrapper,
[data-bs-theme="light"] .card-producto .card-body { 
    background: #ffffff !important; 
}
[data-bs-theme="light"] .card-producto .text-white { color: #111 !important; font-weight: bold; }
[data-bs-theme="light"] .card-producto .text-secondary { color: #555 !important; }

/* Ajuste del botón de menú hamburguesa para el modo claro */
[data-bs-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-bs-theme="light"] .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* 9. EL BOTÓN COMPRAR */
.btn-cyber-comprar {
    background: #00d26a !important;
    color: #000 !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    transition: transform 0.2s;
    position: relative;
    z-index: 3;
}
.btn-cyber-comprar:hover {
    transform: scale(1.05);
    background: #00ff88 !important;
    box-shadow: 0 0 15px #00ff88;
}



/* =========================================
   ADAPTACIÓN PARA CELULARES (2 COLUMNAS)
   ========================================= */
@media (max-width: 767px) {
    /* Obliga a las tarjetas a ocupar el 50% de la pantalla */
    .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
    }
    
    /* Achicamos un poco los márgenes y textos para que no se vea apretado */
    .card-producto {
        margin-bottom: 12px !important;
    }
    
    .card-producto .card-title, 
    .card-producto h5 {
        font-size: 0.9rem !important; 
        white-space: normal !important; 
        line-height: 1.2rem !important; /* Altura exacta y fija por renglón */
        height: 2.4rem !important; /* Exactamente el doble de la línea (2 renglones) */
        max-height: 2.4rem !important; /* Bloqueo estricto para evitar recortes a medias */
        overflow: hidden !important; 
        display: block !important;
        word-break: break-word !important; /* Hace que las palabras largas bajen bien antes de cortarse */
        margin-bottom: 10px !important; /* Da un respiro entre el título y las etiquetas de abajo */
    }
    
    .btn-cyber-comprar {
        font-size: 0.8rem !important;
        padding: 6px !important;
    }
    
    /* Ajustamos los precios para celular */
    .card-producto h4.text-success {
        font-size: 1.1rem !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}


/* ==========================================================
   AJUSTES DE CONTRASTE Y ESPACIOS EN TARJETAS (INFO PRODUCTO)
   ========================================================== */

/* 1. Oscurecer el texto y bordes de las etiquetas (Perfil y Entrega) en modo claro */
[data-bs-theme="light"] .card-producto .border.rounded-pill,
[data-bs-theme="light"] .card-producto .badge {
    color: #111111 !important; /* Texto oscuro */
    border-color: #a0a0a0 !important; /* Borde gris más visible */
    font-weight: 600;
}

/* 2. Oscurecer el color celeste (text-info) para que resalte en fondo blanco */
[data-bs-theme="light"] .card-producto .text-info {
    color: #0056b3 !important; /* Azul oscuro y elegante */
    font-weight: 700;
}

/* Corrección de altura y alineación */
.card-producto .card-body {
    padding: 10px !important; /* Reduce espacio interno */
}

/* Eliminar borde transparente feo */
.card-producto .img-wrapper {
    border-bottom: none !important; 
}

/* Eliminamos el borde divisorio superior del precio y alineamos a la base */
.card-producto .precio-renovable-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end !important; /* CLAVE: Alinea los elementos a la parte inferior */
    margin-top: auto;
    padding-top: 2px;
    border-top: none !important; 
}

.text-renovable {
    font-size: 0.72rem;
    color: #00d26a;
    line-height: 1; /* Ajusta la altura de la línea a la fuente */
    margin-bottom: 2px; /* Pequeño empuje para igualar la base del precio */
}

.text-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.precio-final {
    font-size: 1.05rem;
    font-weight: 800;
    color: #00d26a;
    margin: 0;
    line-height: 1;
}

/* Ocultar el fondo oscuro por defecto */
#fondo-oscuro-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040; /* Queda justo debajo del menú */
}

/* Reglas solo para celulares (pantallas menores a 768px) */
@media (max-width: 768px) {
    /* Esto hace que el menú lateral tenga scroll propio si es muy largo */
    /* Esto hace que el menú lateral tenga scroll propio si es muy largo */
    .sidebar {
        height: 100vh !important;
        overflow-y: auto !important; /* IMPORTANTE: esto crea el scroll */
        padding-bottom: 80px !important; /* Asegura que el botón de cerrar sesión no toque el borde */
    }

    /* Cuando el menú está abierto */
    .sidebar.activo {
        left: 0;
    }

    /* Cuando el fondo oscuro está activo */
    #fondo-oscuro-menu.activo {
        display: block;
    }
}


/* --- ESTRELLAS VERDES PERSONALIZADAS --- */
.stars-outer-green {
  display: inline-block;
  position: relative;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #343a40; /* Fondo gris oscuro */
  font-size: 0.8rem;
}
.stars-outer-green::before {
  content: "\f005 \f005 \f005 \f005 \f005";
}
.stars-inner-green {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #00d26a; /* Color verde CyberStore */
}
.stars-inner-green::before {
  content: "\f005 \f005 \f005 \f005 \f005";
}