/* Estilos para modales de información de países */

.modal-pais {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-pais.modal-active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-custom {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.modal-header-custom h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body-custom {
    padding: 30px;
}

/* Estilos para el contenido del país */
.modal-body-custom section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.modal-body-custom h2 {
    color: #667eea;
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-body-custom h3 {
    color: #764ba2;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.modal-body-custom ul {
    list-style-type: none;
    padding-left: 0;
}

.modal-body-custom ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.modal-body-custom ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.modal-body-custom .importante {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.modal-body-custom .importante h3 {
    color: #ff6b6b;
    margin-top: 0;
}

.modal-body-custom strong {
    color: #2c3e50;
    font-weight: 600;
}

.modal-body-custom p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* Botón de información en las tarjetas */
.btn-info-pais {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-info-pais:hover {
    background: rgba(118, 75, 162, 0.9);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header-custom {
        padding: 15px 20px;
    }
    
    .modal-header-custom h2 {
        font-size: 20px;
    }
    
    .modal-body-custom {
        padding: 20px;
    }
    
    .modal-body-custom h2 {
        font-size: 18px;
    }
    
    .modal-body-custom section {
        padding: 15px;
    }
}

/* Scrollbar personalizado para el modal */
.modal-dialog::-webkit-scrollbar {
    width: 8px;
}

.modal-dialog::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-dialog::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.modal-dialog::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
