/**
 * DEVISA Country Modal — Fullpage Overlay
 * Modal fullscreen idéntico al diseño de referencia:
 * fondo imagen fullpage, logo centrado, tagline, banderas.
 *
 * @package BXC_Base
 */

.devisa-country-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.devisa-country-modal.is-active {
    opacity: 1;
    visibility: visible;
}

/* Fondo fullscreen — imagen con overlay teal oscuro */
.devisa-country-modal__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 45, 65, 0.9) 100%),
        url('../assets/devisa/hero_home.png') center center no-repeat;
    background-size: cover;
}

/* Contenido centrado */
.devisa-country-modal__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Logo: cuadrado teal + texto */
.devisa-country-modal__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.devisa-country-modal__logo-square {
    width: 44px;
    height: 44px;
    background: var(--devisa-teal, #0d9488);
    border-radius: 4px;
}

.devisa-country-modal__logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 4vw, 42px);
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: lowercase;
    line-height: 1;
}

/* Tagline */
.devisa-country-modal__tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 18px);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 30px 0;
    letter-spacing: 0.5px;
}

/* Separador */
.devisa-country-modal__divider {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 28px;
}

/* Banderas */
.devisa-country-modal__flags {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 32px;
    width: 100%;
}

.devisa-country-modal__flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.devisa-country-modal__flag:hover {
    transform: translateY(-6px);
}

.devisa-country-modal__flag img {
    width: 40px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: block;
}

.devisa-country-modal__flag-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0;
    transition: all 0.4s;
}


.devisa-country-modal__flag:hover .devisa-country-modal__flag-label {
    opacity: 1;

}
/* Botón cerrar (X) */
.devisa-country-modal__close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    padding: 0;
    line-height: 1;
    z-index: 3;
}

.devisa-country-modal__close:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 480px) {
    .devisa-country-modal__logo {
        gap: 10px;
    }

    .devisa-country-modal__logo-square {
        width: 34px;
        height: 34px;
    }

    .devisa-country-modal__tagline {
        margin-bottom: 22px;
    }

    .devisa-country-modal__flags {
        gap: 24px;
    }

    .devisa-country-modal__flag img {
        width: 50px;
    }

    .devisa-country-modal__flag-label {
        font-size: 11px;
    }
}
