/* Reset y colores Boca Juniors */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

:root {
    --azul-boca: #003d9c;
    --amarillo-boca: #fff200;
    --blanco: #ffffff;
    --gris-suave: #f5f5f5;
}

/* Header */
header {
    background-color: var(--azul-boca);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    color: var(--amarillo-boca);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    position: relative;
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: var(--amarillo-boca);
    color: var(--azul-boca);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--azul-boca);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 100;
}

.submenu li a {
    display: block;
    padding: 0.8rem 1rem;
    color: white;
}

.submenu li a:hover {
    background-color: var(--amarillo-boca);
    color: var(--azul-boca);
}

nav ul li:hover .submenu {
    display: block;
}

/* Secciones */
.seccion {
    padding: 3rem 5%;
    background-color: var(--blanco);
}

.seccion-titulo {
    text-align: center;
    color: var(--azul-boca);
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
}
.seccion-titulo::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--amarillo-boca);
    margin: 10px auto;
}

/* Grid de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-weight: bold;
    color: var(--azul-boca);
    margin-bottom: 0.5rem;
}

.precio-normal {
    color: red;
    text-decoration: line-through;
    font-size: 1rem;
}

.precio-descuento {
    color: black;
    font-weight: bold;
    font-style: italic;
    font-size: 1.3rem;
    margin-top: 0.3rem;
}

.btn-cupon {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--amarillo-boca);
    color: var(--azul-boca);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}

.btn-cupon:hover {
    background-color: #e6e000;
}

/* Galería de imágenes */
.gallery-container {
    margin-top: 1rem;
}

.main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--amarillo-boca);
}

/* Modal de imagen grande */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
}

/* Sección de sucursales (tu código mejorado) */
.sucursales-section {
    padding: 4rem 0;
    background-color: var(--gris-suave);
}

.card-sucursal {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
}

.btn-whatsapp i {
    margin-right: 0.5rem;
}

.address-info {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
}

.address-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.location-icon {
    color: var(--azul-boca);
    margin-right: 0.5rem;
}

/* Footer (tu WhatsApp fijo) */
footer {
    background-color: var(--azul-boca);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer .footer-contact {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

footer .footer-whatsapp {
    font-weight: bold;
    color: var(--amarillo-boca);
    text-decoration: none;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }
    nav ul li {
        margin: 0 0.8rem;
    }
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Resto del CSS igual... (colores, header, etc) */

/* Galería de imágenes - foto principal con tamaño natural */
.main-image {
    width: 100%;
    height: auto; /* ✅ Cambiado: ahora respeta el tamaño real */
    max-height: 500px;
    object-fit: contain; /* ✅ Muestra toda la imagen sin recortar */
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 0.5rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--amarillo-boca);
}

/* Footer fijo con botón WhatsApp (estilo inicial) */
.footer-contacto {
    background-color: var(--azul-boca);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-contacto h3 {
    font-size: 1.5rem;
    color: var(--amarillo-boca);
    margin-bottom: 1rem;
}

.btn-whatsapp-footer {
    display: inline-block;
    background-color: var(--amarillo-boca);
    color: var(--azul-boca);
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-whatsapp-footer:hover {
    background-color: #e6e000;
    transform: translateY(-2px);
}

/* Responsive para el footer */
@media (max-width: 768px) {
    .btn-whatsapp-footer {
        width: 90%;
        max-width: 300px;
    }
}