@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #1d1e1f;
    font-family: 'Poppins', sans-serif;
}

.product-card {
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-in-out;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card .card-img-top {
    transition: transform 0.3s;
}

.product-card:hover .card-img-top {
    transform: scale(1.02);
}

.no-products-message {
    text-align: center;
    color: #888;
    margin-top: 20px;
}


@media (max-width: 991.98px) {
    .product-image-container {
        height: 150px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-image-container .card-img-top {
        height: 100%;
        width: auto;
        object-fit: cover;
    }

    .hero {
        height: auto; /* Adjust height for mobile */
    }

    .hero-bg {
        display: none; /* Hide blurred background on mobile */
    }
    
    /* Contenido encima */
    .hero-content {
        padding: 1px;
    }

    .hero-content .logo {
        max-width: 300px; /* Full width logo on mobile */
        margin-bottom: 0px;
    }

    .product-modal-buttons .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        gap: 0.25rem; /* reduce el espacio entre ícono y texto */
    }

}

@media (max-width: 576px) {
    .nav-tabs .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }
}

.sticky-controls {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    background-color: #1d1e1f; /* Same as body background */
    z-index: 1020; /* To appear above other content */
    padding-top: 5px;
    padding-bottom: 1px;
}


.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
  height: 200px; /* Default height for web */
}

/* Imagen de fondo difuminada */
.hero-bg {
  background-image: url('../img/logo_hero.png'); /* Use the same image as logo */
  background-size: cover;
  background-position: center;
  width: 100%;      /* Ocupa todo el ancho */
  height: 100%;     /* Ocupa todo el alto del hero */
  filter: blur(8px) brightness(0.4); /* Difumina y oscurece */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Contenido encima */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 1px 5px;
  height: 100%; /* Ensure content takes full height to center vertically */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content .logo {
  max-width: 388px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.nav-link.active.bg-pink {
    background-color: #e83e8c; /* A standard pink color */
    color: white !important; /* Ensure text is readable */
}

/*/////////////////////////////*/
/* ESPACIO FIJO ICONO DE FILTRO*/
.fixed-icon-width {
    width: 40px; /* O el tamaño que necesites, 40px es un buen estándar */
    text-align: center; /* Opcional: Centra el icono dentro del espacio fijo */
}

/*-----------------------------------------------------------------------------*/
/* Clase CSS para el estilo moderno "Recién Llegado" */
/*-----------------------------------------------------------------------------*/

/* CLASE CSS PARA EFECTO: Amarillo/Naranja (Energético) */
.new-arrival-pop-badge {
    /* Gradiente Amarillo/Naranja/Rojo */
    background: linear-gradient(145deg, #fcb045 0%, #fd1d1d 100%) !important;
    color: white; 
    font-weight: 700;
    border-radius: 0.5rem;
    text-transform: uppercase;
    
    /* Estado inicial */
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4); 
    
    /* Aplica la animación */
    animation: pulse-new-arrival-orange 2s infinite ease-in-out; /* Usamos la nueva animación */
}
/* CLASE CSS PARA EFECTO: Azul/Verde (Moderno) */
.new-arrival-pop-badge-2 {
    /* Gradiente Azul/Cian-Verde */
    background: linear-gradient(145deg, #1d976c 0%, #93f9b9 100%) !important;
    color: white; 
    font-weight: 700;
    border-radius: 0.5rem;
    text-transform: uppercase;
    
    /* Estado inicial */
    box-shadow: 0 4px 10px rgba(29, 151, 108, 0.4); 
    
    /* Aplica la animación */
    animation: pulse-new-arrival-blue 2s infinite ease-in-out; /* Usamos la nueva animación */
}

/* 1. Definición de la secuencia de animación */
@keyframes pulse-new-arrival-orange {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4); /* Sombra inicial naranja */
    }
    50% {
        transform: scale(1.05); 
        box-shadow: 0 8px 15px rgba(255, 165, 0, 0.7); /* Sombra intensa naranja (el pulso) */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4);
    }
}

@keyframes pulse-new-arrival-blue {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(29, 151, 108, 0.4); /* Sombra inicial azul/verde */
    }
    50% {
        transform: scale(1.05); 
        box-shadow: 0 8px 15px rgba(29, 151, 108, 0.7); /* Sombra intensa azul/verde (el pulso) */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(29, 151, 108, 0.4);
    }
}

/*-----------------------------------------------------------------------------*/
/* Clase CSS para Usuarios Online */
/*-----------------------------------------------------------------------------*/

/* --- FOOTER FIJO PARA PERSONAS EN LÍNEA --- */
.fixed-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #1d1e1f; /* Color de fondo oscuro */
    color: white;
    padding: 5px 0;
    text-align: center;
    font-size: 0.9em;
    z-index: 1030; /* Asegura que esté por encima de otros elementos */
}

/* Estilo del punto verde pulsante */
.pulsating-dot {
    height: 10px;
    width: 10px;
    /* Usando el color verde que ya usas para WhatsApp */
    background-color: #25D366; 
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

/* Animación de pulso */
@keyframes pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); 
    }
    70% { 
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); 
    }
}



/* 1. ESTILO PARA EL CONTENEDOR DE LA NIEVE (para que cubra el hero) */
#snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* Al ser hijo de .hero, 1 es suficiente para quedar entre 1 y 2 */
}

/* 2. ESTILO DEL COPO DE NIEVE (igual que antes, pero su caída se limitará por el .hero-content) */
.snowflake {
    color: #fff; 
    font-size: 1em; 
    text-shadow: 0 0 1px #333; 
    position: absolute; /* Sigue siendo 'absolute' para que se mueva libremente */
    top: -10px; 
    z-index: 9999; 
    animation: fall linear infinite; 
}

/* Define la animación de caída (debe caer 100% de la altura de su contenedor padre, que es #snow-container) */
@keyframes fall {
    to {
        /* CAMBIO: Usamos 100vh (altura de la ventana) en lugar de 100% (altura del contenedor) */
        transform: translateY(100vh); 
    }
}
