.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px 0px;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
    overflow-y: auto;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: white;
    max-width: 98%;
    min-width: 98%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.modal.active .modal-content {
    transform: scale(1);
}
.modal-header {
    background-color: white;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
}
.close-btn {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;
    z-index: 1;
    background-color: white;
    padding: 5px 10px;
    border-radius: 50%;
    
}
.close-btn:hover {
    color: black;
}

/* Personaliza la scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* CONTENIDO MODAL GENERAL */
.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mod-head {
    width: 80vw;
}
.mod-tit {
    text-align: center;
    padding: 30px 0;
    margin: 10px 0;
    width: 100%;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.02);
}
.mod-tit-cad {
    box-shadow: none;
}
.mod-head img {
    width: 100%;
    max-width: 1800px;
    min-width: 100px;
}
.mod1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 100px 0;
}
.mod1 img {
    width: 32%;
}
.mod2{
    display: flex;
    justify-content: center;
}
.mod2 img {
    margin: auto;
    width: 80%;    
}
/* MODAL CADENA */
.mod1cad {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 50px 0;
}
.mod1cad img {
    width: 45%;
}
