/* =======================================================
   CSS COMPLETO Y RESPONSIVO: FROZEN DRINK
   ======================================================= */

/* --- 1. Configuración Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial Black', sans-serif;
    background-color: #f4f4f4;
    color: #1a1a1a;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- 2. Header Adaptable (Sticky) --- */
header {
    background-color: #1a1a1a;
    color: #ff9800;
    padding: 20px 10px;
    text-align: center;
    border-bottom: 6px solid #e91e63;
    position: sticky; /* Se queda fijo arriba al bajar */
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Se ajusta al tamaño de pantalla */
    text-transform: uppercase;
}

.header-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap; /* Permite que los botones se bajen en celulares */
}

#ver-carrito, .btn-whatsapp-header {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- 3. Banner y Filtros --- */
.banner {
    padding: 40px 20px;
    text-align: center;
    background: white;
    border-bottom: 4px solid #ff9800;
}

.banner h2 {
    color: #e91e63;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.filtros {
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-filtro {
    padding: 8px 15px;
    border: 2px solid #1a1a1a;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.btn-filtro.activo {
    background: #1a1a1a;
    color: #ff9800;
}

/* --- 4. Grid de Productos (RESPONSIVO) --- */
.contenedor-productos {
    display: grid;
    /* Crea columnas automáticas de mínimo 280px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.producto {
    background: white;
    padding: 15px;
    text-align: center;
    box-shadow: 8px 8px 0px #ff9800;
    border: 3px solid #1a1a1a;
    display: flex;
    flex-direction: column;
}

/* Ajuste de Imagen (Mismo tamaño siempre sin estirarse) */
.producto img {
    width: 100%;
    height: 220px; /* Altura fija para alinear todo */
    object-fit: cover; /* Recorta la imagen para llenar el espacio */
    object-position: center;
    margin-bottom: 10px;
}

.producto h3 {
    font-size: 1.2rem;
    min-height: 45px;
    text-transform: uppercase;
}

.producto p {
    font-size: 1.6rem;
    font-weight: bold;
    color: #e91e63;
    margin-bottom: 10px;
}

.producto button {
    background-color: #1a1a1a;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* --- 5. Info y Footer Adaptable --- */
.info-tienda {
    background-color: #1a1a1a;
    color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    text-align: center;
    border-top: 5px solid #ff9800;
}

footer {
    background: #000;
    color: #777;
    padding: 20px;
    text-align: center;
}

/* --- 6. Flecha de Subir (FIJA) --- */
#btn-subir {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e91e63;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2000;
    display: none; /* Se activa por JS */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- 7. Modal del Carrito --- */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.contenido-modal {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

/* --- 8. AJUSTES PARA CELULARES (MEDIA QUERIES) --- */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .header-btns {
        flex-direction: column; /* Botones uno sobre otro en móvil */
    }
    
    #ver-carrito, .btn-whatsapp-header {
        width: 100%;
        text-align: center;
    }

    .producto img {
        height: 180px; /* Imagen un poco más baja en móvil */
    }
}