/* Estilos para la ventana modal */
.modal-close {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
}

.modal-open {
    display: flex; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; 
    transition: opacity 0.5s ease-in-out;
}

.modal-open .modal-content-fraccion {
    transform: translateY(0); 
}

/* Estilos para el contenido del modal */
.modal-content-fraccion {
    background-color: #f9f9f9; 
    padding: 40px;
    border: 1px solid #888;
    border-radius: 5px;
    width: auto; 
    max-width: 1100px;
    min-width: 600px; 
    max-height: 80%; 
    overflow-y: auto; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    transform: translateY(-20px); 
    transition: transform 0.5s ease-in-out;
}
.modal-body{
    width: auto; 
}
.nicos-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nicos-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.pais-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tratado-header {
    display: flex;
    justify-content: left;
    padding: 10px 0;
    gap: 10px;
    align-items: center;
}

.tratado-pais{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    align-items: center;
}

.tratado-item { 
    font-size: 0.7rem;
    border: 1px solid #ccc; 
    padding: 10px; 
    margin-bottom: 10px; 
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
} 
.tratado-item p { 
    margin: 5px 0; 
}
.tratado-item.vigente { 
    background-color: rgba(51, 90, 78, 0.2);
    padding: 10px; 
    border-radius: 5px; 
}
.tratado-item.vigente h3{ 
    max-width: 93%;
}

.etiqueta-vigente { 
    color: white; 
    background-color: #19312C; 
    padding: 5px 10px; 
    border-radius: 5px; 
    font-size: 0.8em; 
    font-weight: bold; 
    display: inline-block; 
    position: absolute; 
    top: 10px; 
    right: 10px; 
}

/* Estilos para el botón de cierre */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .modal-content-fraccion {
        max-width: 100%;
        min-width: 100%;
    }
    .tratado-header{
        flex-direction: column;
    }
    .tratado-item.vigente h3{ 
        max-width: 80%;
    }
    
}
