/**
 * Estilos para el modal de geolocalización MIVI
 * Heredando clases del tema en lugar de redefinir
 */

/* ============================================
   OVERLAY - Fondo oscuro
   ============================================ */
.mivi-geomodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.mivi-geomodal-overlay.mivi-show {
    opacity: 1;
}

/* ============================================
   CONTAINER - Heredando .center
   ============================================ */
.mivi-geomodal-container {
    position: relative;
    background: #003B4D; /* Color del tema */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1em;
}

.mivi-geomodal-overlay.mivi-show .mivi-geomodal-container {
    transform: scale(1);
}

/* ============================================
   BOTÓN DE CERRAR
   ============================================ */
.mivi-geomodal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(140, 226, 216, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #8CE2D8;
}

.mivi-geomodal-close:hover {
    background: rgba(140, 226, 216, 0.3);
    transform: rotate(90deg);
}

.mivi-geomodal-close svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   CONTENIDO - Heredando .center__content
   ============================================ */
.mivi-geomodal-content {
    padding: 40px 56px 32px;
    height: 100%;
}

/* Las clases del tema se aplicarán automáticamente:
   - .center__state para provincias
   - .title.title--small para títulos
   - .info para información de contacto
   - .center__buttons para botones
*/

/* Solo ajustes mínimos de layout */
.mivi-geomodal-content > .info {
    margin-top: 20px;
}

.mivi-geomodal-content > .center__buttons {
    margin-top: 32px;
}

.mivi-geomodal-content .title.title--small {
    margin: 0.5em 0;
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 768px) {
    .mivi-geomodal-container {
        max-width: 95%;
        width: 95%;
    }
    
    .mivi-geomodal-content {
        padding: 32px 40px;
    }
    
    .mivi-geomodal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   PREVENIR SCROLL
   ============================================ */
body.mivi-geomodal-open {
    overflow: hidden;
}

/* ============================================
   ANIMACIÓN DE ENTRADA
   ============================================ */
@keyframes miviModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mivi-geomodal-overlay.mivi-show .mivi-geomodal-container {
    animation: miviModalSlideIn 0.4s ease-out;
}

