/* Estilos generales */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Este contenedor se encarga de ocupar todo el espacio disponible, excepto el sticky-nav */
main {
    flex: 1;
    background-color: #f0f0f0;
}

/* Aseguramos que el body tenga un margen inferior para que el footer sea visible */
body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

.producto-detalle {
    display: flex;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    align-items: flex-start; /* Importante: alinear el contenido al tope */
}

.imagen-container img {
    width: 400px;
    border-radius: 15px;
    object-fit: cover;
}

.info-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.descripcion {
    color: #777;
    margin-bottom: 1.5rem;
}

.precio-whatsapp {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.precio {
    color: #0077cc;
    font-size: 1.5rem;
    font-weight: bold;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #20ba59;
}

.link-pago-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 14px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.link-pago-btn:hover {
    background-color: #0056b3;
}

.negocio-card {
    display: flex;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.negocio-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}

.negocio-info h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.negocio-info p {
    margin: 0.5rem 0;
}

.social-links a {
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
}

.ver-mas {
    display: inline-block;
    margin-top: 1rem;
    background-color: #0077cc;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
}

.ver-mas:hover {
    background-color: #005fa3;
}

/* Este contenedor se encargará de alinear a la izquierda */
.galeria-producto {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea todo a la izquierda */
    gap: 1rem;
    max-width: 400px; /* Ajustado al tamaño de la imagen principal */
}

/* Imagen principal ocupa el 100% del ancho disponible del contenedor padre */
.imagen-principal img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Miniaturas centradas debajo de la imagen principal */
.miniaturas {
    align-self: center; /* Esto las mantiene centradas dentro de .galeria-producto */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    width: 100%;
    justify-content: center; /* Centrado horizontal */
}

.miniatura {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.miniatura:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}