@font-face {
    font-family: 'Aller Display';
    src: url('../fonts/Aller/AllerDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aller Regular';
    src: url('../fonts/Aller/Aller_Std_Rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.portada-etica {
    width: 100%;
    height: auto; /* Permite que crezca con el contenido */
}

.portada-etica img {
    width: 100%;
    height: auto; /* Escala naturalmente */
    object-fit: contain; /* O cover, según necesidad */
    display: block;
}

/* Contenedor principal */
.cont-prime {
    width: 100%;
    max-width: 95%;
    margin: 50px auto;

}
.cont-sec{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 0 0;
}

/* Enlaces centrados */
.c-d-e {
    width: 100%;
    background-color: RGB(25, 50, 102);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
}

.enlace-etica {
    font-size: 50px;
    color: white;
    text-decoration: none;
    font-family: 'Aller Display';
}

/* Modal que cubre toda la .cont-sec */
.modal-etica {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Contenido del modal */
/* Animaciones */
@keyframes zoomIn {
    0% { transform: scale(0.2); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.2); opacity: 0; }
}

.zoom-in {
    animation: zoomIn 0.5s ease-out forwards;
}

.zoom-out {
    animation: zoomOut 0.5s ease-in forwards;
    color: #ffffff;
}


.modal-etica-content {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
}
.bg-Den{
    background-image: url('../../webp/img/etica/CANAL DE DENUNCIA .webp');
}
.bg-Pa{
    background-image: url('../../webp/img/etica/POLÍTICA ANTICORRUPCIÓN.webp');
}
.bg-Pdh{
    background-image: url('../../webp/img/etica/POLÍTICA DE DERECHOS HUMANOS.webp');
}
.bg-Sal{
    background-image: url('../../webp/img/etica/POLÍTICA DE SALUD.webp');
}
.bg-Obs{
    background-image: url('../../webp/img/etica/POLÍTICA DE OBSEQUIOS Y REGALOS.webp');
}
.titulo{
    font-family: 'Aller Display';
}
.texto{
    font-family: 'Aller Regular';
}

.cont-phrase{
    width:auto;
    height: 100%;
    margin: 0 30px;
    font-family: 'Aller Regular';
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.cont-phrase p{
    line-height: 1.5;
    padding:12px;
    font-size: 26px;
    color: #ffffff;
}
.cont-phrase a{
    color: #ffffff;
    text-decoration: underline;
}
.Pdh ol{
    list-style-type: decimal;
    line-height: 1.5;
    padding-left: 35px;
    color: #ffffff;
    font-family: 'Aller Regular';
    font-size: 20px;
}

.Pdh li{
    padding-left: 10px;
}

.Por ol{
    list-style-type: disc;
    padding-left: 35px;
    color: #ffffff;
    font-family: 'Aller Regular';
    font-size: 20px;
}

/* Botón de cerrar */
.cerrar-modal {
    position: absolute;
    top: 10px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 15px;
    font-size: 65px;
    font-weight: bold;
    color: #6E0202;
    cursor: pointer;
}
.cerrar-modal:hover{
    color: #ffffff;
    background-color: #6E0202;
    transition: all 0.3s ease-in-out;
}
@media (max-width: 768px) and (min-width:320px){
    .cont-prime{margin: 15px auto;}
    .cont-sec{gap:30px;}
    .enlace-etica{font-size: 20px;}
    .cont-phrase{margin: 0 10px;}
    .cerrar-modal{width: 2rem; height: 2rem; font-size: 2.5rem; right: 0; top: 0;}
    .cont-phrase p{line-height: 1.4; padding: 1px; font-size: 73%; text-align: justify;}
    .Pdh li{padding-left: 10px; padding-bottom: 4px;}
    .Pdh ol{font-size: 73%;}
    .Por ol{font-size: 73%;}
}