/* =========================================
   MODAL DE DESCARGA (ESTILO BUBBLE CARD)
   ========================================= */

/* 1. Fondo oscurecido con desenfoque */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7); /* Slate 900 con opacidad */
    backdrop-filter: blur(10px); /* Desenfoque de fondo */
    display: none; /* Se activa con la clase .active via JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* 2. La Tarjeta (Bubble Card) */
.modal-card {
    background-color: var(--white, #ffffff);
    width: 100%;
    max-width: 440px;
    padding: 3.5rem 2.5rem;
    border-radius: 40px; /* Bordes extra redondeados para el look "bubble" */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    
    /* Animación de entrada */
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 3. Botón cerrar (X) */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* 4. Cabecera del Modal */
.modal-header {
    margin-bottom: 2.5rem;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.modal-title span {
    color: var(--primary-color, #2D5A27);
}

.modal-header p {
    color: #64748b;
    margin-top: 0.75rem;
    font-size: 1.1rem;
}

/* 5. Contenedor de Botones */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 6. Botones de Descarga Estilo Store */
.btn-download {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

/* Google Play (Activo) */
.btn-download.playstore {
    background-color: #0f172a; /* Fondo oscuro premium */
    color: #ffffff;
}

.btn-download.playstore:hover {
    transform: translateY(-3px);
    background-color: #000000;
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.3);
}

/* App Store (Deshabilitado) */
.btn-download.disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    border: 2px dashed #e2e8f0;
}

/* Iconos de los botones */
.btn-download-icon {
    width: 32px;
    height: 32px;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

/* Textos dentro del botón */
.btn-download-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.btn-title {
    font-size: 1.3rem;
    font-weight: 800;
}

/* Badge de BETA */
.btn-tag {
    position: absolute;
    right: 1.5rem;
    background-color: var(--primary-color, #2D5A27);
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(45, 90, 39, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .modal-card {
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }
    .modal-title { font-size: 1.8rem; }
}