/* ==========================================================================
   1. CONTENEDOR DE BANNERS (Slider)
   ========================================================================== */
.banner-container {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
}
* {
    font-family: 'Lora', serif !important;
}

.banner-gallery {
    display: grid;
    /* Esto hace que si hay 1 foto ocupe todo, si hay 2 se dividan, etc. */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    min-height: 450px; /* Usamos min-height en lugar de height fijo */
    scroll-behavior: smooth;
}

.banner-card {
    position: relative;
    height: 450px; /* Mantenemos la altura visual de Diosas */
    overflow: hidden;
}

.banner-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efecto visual al pasar el mouse */
.banner-card:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 40px 20px 20px 20px;
    display: flex;
    align-items: flex-end;
}

.banner-overlay h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'Lora', serif; /* Estilo elegante */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.divider-line-gold {
    height: 1px;
    width: 100%;
    border: none;
    margin: 20px 0;
    /* Transparente en los extremos (0% y 100%), Dorado al centro */
    background:  #d4af37;
}
/* ==========================================================================
   2. SECCIÓN DE CATEGORÍAS (Rectangular Vertical)
   ========================================================================== */
.categorias-seccion {
    padding: 30px 0;
    max-width: 1400px;
    margin: 30px auto;
    width: 95%;
}

.categorias-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-content: center;
}

.categoria-card {
    position: relative;
    overflow: hidden;
    /* Quitamos el text-decoration aquí también */
}

/* IMPORTANTE: El <a> debe ser el jefe absoluto del tamaño */
.categoria-card a {
    text-decoration: none !important;
    display: block;
    width: 100%;
    height: 100%;
    position: relative; /* Para que el título se posicione respecto al link */
}

.categoria-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5; 
    overflow: hidden;
    border-radius: 4px; 
    background-color: #f0f0f0;
}

.categoria-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

/* Título superpuesto */
.categoria-nombre {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    z-index: 3; /* Por encima del overlay */
    
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    /* CRÍTICO: permite que el clic pase a través del texto hacia el link */
    pointer-events: none; 
}

/* Overlay (Velo oscuro) */
.categoria-card a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.30); 
    transition: background 0.3s ease;
    z-index: 2;
    border-radius: 4px;
}

/* --- Efectos Hover --- */
.categoria-card:hover .categoria-img-wrapper img {
    transform: scale(1.05);
}

.categoria-card:hover a::after {
    background: rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   3. PASOS DE COMPRA (Steps)
   ========================================================================== */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.step-icon {
    font-size: 2rem;
    color: #ff1493;
    margin-bottom: 15px;
}

.gold-text {
    color: #b38b00;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.step-description {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ==========================================================================
   4. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media ((max-width: 768px) and (max-width: 1024px)) {
    /* Ocultar flechas en los banners */
    .nav-arrow {
        display: none !important;
    }

    /* Banners: Formato Vertical y Carrusel Fluido */
    .banner-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        flex-direction: row;
        flex-wrap: nowrap; /* Obliga a que estén una al lado de la otra */
        /* Altura aumentada para fotos verticales/retratos */
        height: 550px; 
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        scroll-behavior: smooth;
        background-color: #000;
    }

    .banner-gallery::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .banner-card {
        flex: 1 0 100%;
        scroll-snap-align: start;
        height: 100%;
        will-change: transform; /* Optimiza la fluidez de la animación */
    }

    .banner-image-wrapper img {
        width: 100%;
        height: 100%;
        /* Mantiene máxima calidad sin deformar */
        object-fit: cover; 
        object-position: center;
    }

   .categorias-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth; /* Para que el cambio sea fluido */
        gap: 0; /* Sin espacio entre ellas para que encajen perfecto */
        padding: 0;
        scrollbar-width: none;
    }
    
    .categorias-container::-webkit-scrollbar { display: none; }
    
    .categoria-card {
        /* Ocupa el 100% del ancho disponible para mostrarse una por una */
        flex: 0 0 100%; 
        scroll-snap-align: start;
        padding: 0 15px; /* Margen interno para que no pegue al borde de la pantalla */
        box-sizing: border-box;
    }

    .categoria-img-wrapper {
        aspect-ratio: 4 / 5; /* Mantenemos el formato vertical */
        width: 100%;
    }
    /* Steps: Grid compacto */
    .steps-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .step-item { padding: 12px 8px; }
}

@media (max-width: 480px) {
    .banner-gallery {
        /* Altura extra para pantallas muy angostas */
        height: 500px; 
    }
    .banner-overlay h2 { 
        font-size: 1.1rem; 
        letter-spacing: 1px;
    }
}

/* Animaciones de Entrada */
.fade-in-cascade {
    opacity: 0;
    animation: fadeInStep 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-card:nth-child(1) { animation-delay: 0.1s; }
.banner-card:nth-child(2) { animation-delay: 0.2s; }
.banner-card:nth-child(3) { animation-delay: 0.3s; }
.banner-card:nth-child(4) { animation-delay: 0.4s; }