/* ==========================================
   MODAL DE SELECCIÓN DE PAÍS - DHARCK STORE
   ========================================== */

.modal-pais {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-pais-content {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 4rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(30, 64, 175, 0.1), 0 10px 10px -5px rgba(30, 64, 175, 0.04);
    border: 3px solid #FF6B35;
    position: relative;
}

.modal-pais-header {
    text-align: center;
    margin-bottom: 4rem;
}

.modal-pais-header h2 {
    color: #FF6B35;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 107, 53, 0.3);
}

.modal-pais-header p {
    color: #475569;
    font-size: 1.1rem;
    margin: 0;
}

.paises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pais-card {
    background: #EFF6FF;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pais-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #FF7F50);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pais-card:hover {
    transform: translateY(-5px);
    border-color: #FF6B35;
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.1), 0 4px 6px -2px rgba(30, 64, 175, 0.05);
    background: #FFFFFF;
}

.pais-card:hover::before {
    opacity: 1;
}

.pais-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.pais-card h3 {
    color: #1E293B;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pais-card p {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-pais-content {
        padding: var(--spacing-xl);
        margin: var(--spacing-md);
    }
    
    .modal-pais-header h2 {
        font-size: 1.5rem;
    }
    
    .paises-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .pais-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .modal-pais-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
    
    .pais-flag {
        font-size: 2rem;
    }
    
    .pais-card h3 {
        font-size: 1.1rem;
    }
}