/* Estilos generales */

@font-face {
    font-family: 'Gilam';
    src: url('fonts/GilamHeavy.otf') format('truetype');
    font-weight: 900; /* Heavy */
    font-style: normal;
}

@font-face {
    font-family: 'Gilam';
    src: url('fonts/GilamBold.otf') format('truetype');
    font-weight: bold; /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Gilam';
    src: url('fonts/GilamBook.otf') format('truetype');
    font-weight: normal; /* Book */
    font-style: normal;
}

body {
    font-family: 'Gilam', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

        .leaflet-top, .leaflet-bottom {
    position: absolute;
    z-index: 900;
    pointer-events: none;
}

/* Contenedor principal */
h1 {
    text-align: center;
    color: #333;
    margin-top: 20px;
}

.contenedor-tiendas {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Tarjeta de cada tienda */
.tarjeta-tienda {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    width: 90%;
    max-width: 800px;
}

.tarjeta-tienda img {
    width: 120px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
}

/* Información de la tienda */
.tarjeta-tienda .info {
    flex-grow: 1;
}

.tarjeta-tienda h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.tarjeta-tienda p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* Botones de acciones */
.acciones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

button {
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

/* Botones de acción */
.aceptar {
    background-color: #28a745;
    color: white;
}

.aceptar:hover {
    background-color: #218838;
}

.rechazar {
    background-color: #dc3545;
    color: white;
}

.rechazar:hover {
    background-color: #c82333;
}

.ver {
    background-color: #007bff;
    color: white;
}

.ver:hover {
    background-color: #0056b3;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.modal img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.modal h2 {
    margin: 10px 0;
    font-size: 22px;
    color: #333;
}

.modal p {
    font-size: 14px;
    color: #666;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: red;
}

/* ✅ Contenedor de los productos */
#contenedorProductos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 10px;
}

/* ✅ Tarjeta de producto más pequeña */
.producto-card {
    width: 180px; /* Antes era más grande, ahora es más compacto */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
    transition: transform 0.2s ease-in-out;
    font-size: 12px; /* Reducimos el tamaño del texto */
}

.producto-card:hover {
    transform: scale(1.03);
}

/* ✅ Imagen del producto más pequeña */
.producto-card img {
    width: 100%;
    height: 120px; /* Se reduce la altura */
    object-fit: cover;
    border-radius: 5px;
}

/* ✅ Título más compacto */
.producto-card h3 {
    font-size: 14px; /* Reducimos el tamaño del título */
    margin: 5px 0;
    font-weight: bold;
    color: #333;
}

/* ✅ Descripción más corta */
.producto-card p {
    font-size: 11px;
    color: gray;
    margin: 3px 0;
}

/* ✅ Estilos para la información extra */
.producto-card strong {
    font-size: 12px;
    color: #222;
}

/* ✅ Ajuste en móviles */
@media (max-width: 600px) {
    .producto-card {
        width: 140px; /* Más pequeño en pantallas chicas */
        padding: 8px;
    }
    
    .producto-card img {
        height: 100px;
    }
    
    .producto-card h3 {
        font-size: 12px;
    }
    
    .producto-card p {
        font-size: 10px;
    }
}


.contact-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ✅ Botones de WhatsApp y Correo */
.contact-links a {
    display: flex;
    align-items: center;
    background-color: #0077b6; /* Azul */
    color: white;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease-in-out;
    gap: 8px;
}

/* ✅ Iconos dentro de los botones */
.contact-links a img {
    width: 18px;
    height: 18px;
}

/* ✅ Efecto hover */
.contact-links a:hover {
    background-color: #005f87; /* Azul más oscuro */
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-contenido {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    width: 95%;
    max-width: 1100px;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: slideIn 0.3s ease-in-out;
}

/* Animación suave */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.cerrar:hover {
    color: #000;
}

/* Contenedor de producto */
.producto-detalle {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.producto-detalle img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    object-fit: cover;
    background-color: #f5f5f5;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Detalles del producto */
.datos-producto {
    flex: 1;
    padding: 10px;
}

.datos-producto h2 {
    margin-top: 0;
    font-size: 30px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}

.datos-producto p {
    font-size: 17px;
    margin: 8px 0;
    color: #444;
    line-height: 1.6;
}

.datos-producto p strong {
    color: #000;
}

#precioProducto {
    font-size: 24px;
    color: #007f5f;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 15px;
}


/* Estilo para los cards de tienda */
.tienda-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    padding: 20px;
    margin: 15px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.tienda-card h4 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.tienda-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

