/* ********************************************
1. RESET Y CONTENEDOR
******************************************** */
.smoothies-gallery, .smoothies-gallery * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.contenido {
    max-width: 1200px;
    margin: 60px auto 40px; /* separa del header */
    padding: 20px;
}

/* ********************************************
2. TITULO GALERIA
******************************************** */
.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
}

/* ********************************************
3. FILTROS (CON SELECTS)
******************************************** */
.smoothies-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    align-items: center;
}

.smoothies-filtros label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 6px;
}

.smoothies-filtros select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

.smoothies-filtros select:hover,
.smoothies-filtros select:focus {
    border-color: #27ae60;
    box-shadow: 0 0 6px rgba(39, 174, 96, 0.3);
    outline: none;
}

/* ********************************************
4. GRID
******************************************** */
.smoothies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 horizontal */
    grid-auto-rows: 300px; /* altura base */
    gap: 24px;
}

/* ********************************************
5. TARJETAS
******************************************** */
.smoothie-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    position: relative;
}

.smoothie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.smoothie-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.smoothie-card img {
    width: 100%;
    height: 160px;
    object-fit: contain; 
    background: #fafafa; /* relleno alrededor de la img */
    padding: 6px; /* pequeño espacio para que no pegue con los bordes */
    display: block;
}

.smoothie-card:hover img {
    transform: scale(1.05);
}

.smoothie-card h3 {
    font-size: 1.25rem;
    margin: 10px;
    color: #34495e;
}

.smoothie-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0 10px 10px 10px;
}

/* ********************************************
7. PAGINA DETALLE DE SMOOTHIE
******************************************** */
.smoothie-detalle {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.smoothie-detalle h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.smoothie-detalle img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 320px; /* 🔥 límite de altura para que no se dispare */
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.smoothie-detalle h2 {
    margin-top: 30px;
    color: #34495e;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.smoothie-detalle p,
.smoothie-detalle li {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}


/* ********************************************
7. RESPONSIVE MOVILES
******************************************** */
@media (max-width: 1024px) {
    .smoothies-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
}

@media (max-width: 600px) {
    .smoothies-filtros {
        flex-direction: column;
        align-items: flex-start;
    }

    .smoothies-grid {
        grid-template-columns: 1fr;
    }

    .smoothie-card img {
        height: 200px;
    }
}
