body {
    font-family: 'Inter', sans-serif;
    background-color: #ecece4 ;;
}
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.flag-grid-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.flag-grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
body.no-scroll {
    overflow: hidden;
}
#main-logo {
  max-width: 150px;
  height: auto;
}
.bg-verde-custom {
    background-color: #BFD8B8;
}
/* Estilo para los popups personalizados */
.custom-popup .leaflet-popup-content-wrapper {
    background: #FFFFFF;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
}
.custom-popup .leaflet-popup-content {
    margin: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}
.custom-popup .leaflet-popup-tip {
    background: #FFFFFF;
}
/* Estilo para los botones de Zoom (+/-) */
.leaflet-bar a, .leaflet-bar a:hover {
    background-color: #FFFFFF !important;
    color: #16A34A !important; /* Verde de tu tema */
    border-radius: 8px !important;
    border: 1px solid #E5E7EB !important;
}
.leaflet-control-zoom {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
#map-container {
    width: 100%;
    min-height: 350px;
    height: 350px;
    max-height: 500px;
    border-radius: 16px;
    margin: 0 auto;
    background: #e5e7eb;
    overflow: hidden;
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}
.modal-custom-bg {
    background-color: #ecece4 !important;
}
@keyframes spin-animation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 2. Estilo para el loader grande (usado en modales y carga inicial) */
.loader {
    border: 8px solid #e5e7eb; /* gris claro */
    border-top: 8px solid #22c55e; /* verde */
    border-radius: 50%;
    width: 96px;
    height: 96px;
    margin: 4rem auto; /* Centrado con margen */
    /* ¡LA LÍNEA QUE FALTABA! */
    animation: spin-animation 0.75s linear infinite;
}
/* 3. Estilo para el spinner pequeño de botón (cuando está visible) */
.button-spinner:not(.hidden) {
    display: inline-block;
    animation: spin-animation 0.75s linear infinite;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}
.delivery-link-btn,
.delivery-link-btn:link,
.delivery-link-btn:visited {
    display: inline-block; /* ¡CLAVE! Para que se comporte como un botón y acepte espaciado */
    background-color: #16a34a; /* Verde de tu marca */
    color: #ffffff !important;   /* Texto blanco (forzado para anular otros estilos) */
    font-size: 0.75rem;      /* Tamaño de texto pequeño */
    font-weight: 700;        /* Negrita */
    padding: 0.25rem 0.75rem; /* Espaciado interno (py-1 px-3) */
    border-radius: 9999px;   /* Totalmente redondeado */
    text-decoration: none !important;   /* Sin subrayado (forzado) */
    line-height: normal;     /* Altura de línea normal */
    cursor: pointer;         /* Muestra el cursor de mano */
    transition: background-color 0.2s ease-in-out;
}
.delivery-link-btn:hover {
    background-color: #15803d; /* Verde más oscuro al pasar el mouse */
    color: #ffffff !important; /* Mantiene el texto blanco */
}

