/* ===== RESET ===== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, sans-serif;
    background:#f5f5f5;
    color:#222;
}

/* ===== HEADER ===== */

header{
    width:100%;
    background:white;
    padding:15px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:2000;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.menu-btn{
    font-size:28px;
    cursor:pointer;
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:70px;
    width:auto;
    object-fit:contain;
    display:block;
}

/* ===== ESTRUCTURA DEL CARRUSEL ===== */
/* Contenedor principal: define lo que el usuario ve */
.banner-container {
    width: 100%;
    aspect-ratio: 1920 / 700; /* Mantiene tu proporción fija */
    overflow: hidden; /* Esconde el segundo banner que está a la derecha */
    position: relative;
}

/* La "tira" que contiene los dos banners */
.banner-slider {
    display: flex;
    width: 300%; /* 200% porque son 2 banners del 100% cada uno */
    height: 100%;
    transition: transform 0.9s ease-in-out; /* Suavidad del movimiento */
}

/* Cada banner individual */
.banner-item {
    width: 50%; /* 50% de la tira (que es el 100% de la pantalla) */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-text {
    color: white;
    font-size: 42px;
    font-weight: bold;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    text-align: center;
    padding: 0 20px;
}

/* Versión Móvil */
@media(max-width: 768px) {
    .desktop-banner {
        display: none; /* Ocultamos el de PC */
    }

    .mobile-banner {
        display: flex; /* Mostramos el de móvil */
        aspect-ratio: 400 / 500; /* Proporción más vertical para celular */
        height: 350px; /* Altura cómoda para el dedo */
    }

    .banner-text {
        font-size: 22px;
    }
}

/* ===== CATEGORIAS ===== */

.categorias{
    background:white;
    padding:20px 10px;
    overflow-x:auto;
    display:flex;
    gap:20px;
    justify-content:center;
    border-bottom:1px solid #ddd;
}

.categoria{
    min-width:90px;
    text-align:center;
    cursor:pointer;
    transition:0.3s;
}

.categoria:hover{
    transform:translateY(-5px);
}

.categoria img{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #1b5e20;
}

.categoria p{
    margin-top:8px;
    font-weight:bold;
}

/* ===== TITULO ===== */

.section-title{
    text-align:center;
    margin:40px 0 20px;
    font-size:34px;
    color:#1b5e20;
}

/* ===== CONTENEDOR ===== */

.productos-wrapper{
    width:95%;
    margin:auto;
    position:relative;
}

/* ===== ETIQUETA P1 ===== */

.etiqueta-pagina{
    position:sticky;
    top:90px;
    margin-left:auto;
    width:max-content;
    background:#1b5e20;
    color:white;
    padding:10px 18px;
    border-radius:30px;
    font-weight:bold;
    z-index:1500;
    margin-bottom:20px;
}

/* ===== PRODUCTOS ===== */

.productos{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    padding-bottom:40px;
}

.producto{
    background:white;
    border-radius:15px;
    overflow:hidden;
    transition:0.3s;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.producto:hover{
    transform:translateY(-6px);
}

.producto img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.producto-info{
    padding:15px;
}

.producto h3{
    font-size:18px;
    margin-bottom:10px;
}

.precio{
    color:#1b5e20;
    font-size:24px;
    font-weight:bold;
    margin-bottom:15px;
}

/* ===== BOTONES ===== */

.botones{
    display:flex;
    gap:10px;
}

.btn{
    flex:1;
    padding:12px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    transition:0.3s;
}

.btn-whatsapp{
    background:#25D366;
    color:white;
}

.btn-guardar{
    background:#ececec;
}

.btn:hover{
    opacity:0.85;
}

/* ===== PAGINACION ===== */

.paginacion{
    width:95%;
    margin:40px auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.pagina-btn{
    background:#1b5e20;
    color:white;
    border:none;
    padding:14px 22px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;
    transition:0.3s;
}

.pagina-btn:hover{
    opacity:0.85;
}

/* ===== RESPONSIVE ===== */

/* Busca tu bloque @media(max-width:768px) y actualízalo así: */
@media(max-width:768px){
    header {
        padding: 10px 15px;
    }

    .logo img {
        height: 45px;
        max-width: 180px;
    }

    .menu-btn {
        font-size: 24px;
    }
    
    .banner-container {
        /* Mantenemos el aspect-ratio para que la imagen dicte el espacio */
        aspect-ratio: 1920 / 700; 
        height: auto; 
        background-color: #ffffff; /* Fondo blanco */
    }

    .banner-text {
        /* Si el texto es blanco y el fondo ahora es blanco, 
           podrías necesitar cambiar el color del texto o 
           asegurarte de que la sombra sea fuerte */
        color: white; 
        font-size: 18px;
    }

    .categorias {
        justify-content: flex-start;
        padding: 15px 5px;
        gap: 10px;
    }

    .categoria img {
        width: 50px;
        height: 50px;
    }
    
    .productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .producto img {
        height: 150px; /* Ajustado para que no se vea gigante */
    }

    .section-title {
        font-size: 26px;
    }

    .etiqueta-pagina {
        top: 70px;
        font-size: 12px;
    }
}

/* ===== ESTILO DEFINITIVO BOTONES GÉNERO (FUERA DEL MEDIA QUERY) ===== */
.gender-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    width: 90%;
    max-width: 400px;
}

.gender-btn {
    flex: 1;
    height: 45px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    color: white !important; /* Fuerza el color de la letra */
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-hombre {
    background-color: #1a237e !important; /* Azul Rey */
}

.btn-mujer {
    background-color: #f06292 !important; /* Rosa / Coral */
}

.gender-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

.gender-btn:active {
    transform: scale(0.95);
}
/* Contenedor relativo para la lupa */
.contenedor-img {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Icono de lupa en la esquina de la foto */
.icon-zoom {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 16px;
    transition: 0.3s;
}

.icon-zoom:hover {
    transform: scale(1.2);
    background: #fff;
}

/* Botón Consultar Stock Estilizado */
.btn-consultar {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); /* Colores WhatsApp */
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    animation: latido 2.5s infinite; /* Animación de acercar/alejar */
}

/* Animación de latido */
@keyframes latido {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.btn-consultar:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.sku-detalle {
    font-size: 11px;
    color: #888;
    margin-top: 10px;
}
/* Botones de navegación del banner */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    scale: 1.1;
}

.banner-nav.prev {
    left: 20px; /* Posición izquierda */
}

.banner-nav.next {
    right: 20px; /* Posición derecha */
}
/* ===== NUEVAS SUBCATEGORÍAS (ZAPATILLAS) ===== */
.sub-categorias {
    width: 95%;
    margin: 15px auto 5px auto;
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda */
    padding: 0 5px;
}

.sub-categoria {
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.sub-categoria img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1b5e20; /* Borde verde característico */
    padding: 3px;
    background: white;
}

.sub-categoria p {
    margin-top: 5px;
    font-size: 13px;
    font-weight: bold;
    color: #222;
}

/* ===== CONTENEDOR Y ESTILO DEL SELECT ===== */
.filter-container {
    width: 95%;
    margin: 10px auto 20px auto;
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda */
    padding: 0 5px;
}

#gender-select {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 140px; /* Ancho ideal para pantallas móviles */
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#gender-select:focus {
    border-color: #1b5e20; /* Resalta en verde al abrirse */
}