/* =========================================
   1. LAYOUT PRINCIPAL DE PRODUCTOS
========================================= */
.seccion-productos {
    padding: 50px 0;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid #1b71b8;
    background: white;
    color: #1b71b8;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
    border-radius: 20px;
}

.tab-btn.active, 
.tab-btn:hover {
    background: #1b71b8;
    color: white;
}

/* =========================================
   2. GRILLA Y TARJETAS DE PRODUCTOS (CARDS)
========================================= */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.card-producto {
    position: relative;
    background: #fff;
    cursor: pointer;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-producto:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.card-producto img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s;
    border: none !important;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(27, 113, 184, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    color: white;
    padding: 20px;
    text-align: center;
    min-height: 100%;
}

.card-producto:hover .card-overlay { 
    opacity: 1; 
}

/* =========================================
   3. PANEL DE DETALLE DEL PRODUCTO
========================================= */
.hidden { 
    display: none !important; 
}

.contenedor-img-detalle {
    position: relative;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    overflow: hidden;
    min-height: 280px;
    margin-bottom: 30px !important; 
}

.img-atras {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contenedor-img-detalle:hover .img-atras {
    opacity: 1;
}

/* Tipografía de Detalles */
#det-titulo {
    font-size: 2.1em;
    line-height: 1.1;
    margin: 0 0 12px 0;
    color: #be1421 !important; 
}

#det-precio {
    font-size: 1.1em;
    font-weight: 600;
}

.precio-tag {
    color: #be1421;
    font-size: 1.8em;
    font-weight: bold;
    margin: 15px 0;
}

.separador-rojo {
    display: none !important;
}

.btn-volver {
    background: none;
    border: none;
    color: #1b71b8;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* =========================================
   4. ESTRUCTURA DEL SLIDER SWIPER (HERO)
========================================= */
.banner-slider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: transparent !important;
}

.mySwiper {
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent !important;
}

.swiper-slide {
    background: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-main-content {
    width: 100%;
    height: 100%;
}

.slide-main-content img {
    display: block !important;
    width: calc(100% + 2px) !important;
    height: calc(100% + 2px) !important;
    margin: -1px;
    object-fit: cover !important;
    object-position: center !important;
    animation: bounceFloat 6s ease-in-out infinite;
}

.swiper-button-next, 
.swiper-button-prev, 
.swiper-pagination {
    display: none !important;
}

/* =========================================
   5. MEDIA QUERIES (RESPONSIVE DESIGN)
========================================= */
@media screen and (min-width: 1024px) {
    .seccion-productos .container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (max-width: 768px) {
    /* Ajustes Slider Móvil */
    .banner-slider { 
        height: 340px !important; 
    }
    
    .slide-main-content img {
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0; /* Resetea el margen en versión contain */
    }

    /* Layout Móvil */
    .detalle-flex { 
        flex-direction: column; 
    }
    
    .column--50 { 
        width: 100%; 
    }
    
    /* Espaciados Móvil */
    .seccion-productos .container,
    .grid-productos,
    #panel-detalle .detalle-flex {
        padding-left: 20px;
        padding-right: 20px;
    }
}

