/* Modal Once Per Session - Frontend Styles */

/* Overlay de fondo */
.mos-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.mos-overlay.mos-active {
    display: flex;
}

/* Contenedor del modal */
.mos-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Animaciones de entrada */
.mos-anim-fade .mos-modal {
    opacity: 0;
    transition: opacity 0.35s ease;
}
.mos-anim-fade.mos-ready .mos-modal {
    opacity: 1;
}

.mos-anim-slide .mos-modal {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.mos-anim-slide.mos-ready .mos-modal {
    opacity: 1;
    transform: translateY(0);
}

.mos-anim-zoom .mos-modal {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mos-anim-zoom.mos-ready .mos-modal {
    opacity: 1;
    transform: scale(1);
}

/* Botón de cierre (×) */
.mos-close-icon {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    transition: color 0.2s;
    z-index: 1;
}
.mos-close-icon:hover {
    color: #222;
}

/* Cabecera */
.mos-modal-header {
    padding: 24px 28px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}
.mos-modal-title {
    margin: 0;
    font-size: 1.4em;
    color: #222;
    line-height: 1.3;
}

/* Cuerpo */
.mos-modal-body {
    padding: 24px 28px;
    color: #444;
    line-height: 1.7;
    font-size: 1em;
}
.mos-modal-body p:last-child {
    margin-bottom: 0;
}
.mos-modal-body img {
    max-width: 100%;
    height: auto;
}

/* Footer con botón */
.mos-modal-footer {
    padding: 0 28px 24px;
    text-align: right;
}
.mos-close-btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.mos-close-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
.mos-close-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .mos-modal-header,
    .mos-modal-body,
    .mos-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
    .mos-modal-title {
        font-size: 1.2em;
    }
}


/** Custom Video Modal **/
.mos-modal-header {
	display:none;
}
.mos-modal-footer {
	display: none;
}
.mos-modal-body {
	padding: 0px;
}
.mos-close-icon {
	color: white;
}
.cri-modal-video {
	width: 100%;
	height: 100%;
	background: url("https://caixaresearch.institute/wp-content/uploads/2026/04/caixaresearch-institute_900x500.webp");
	color: white;
	padding: 200px 120px 40px 40px;
	
	h3 {
		color: white;
	}
	
	.cri-modal-link {
		padding: 20px 0px;
		
		a {
			color: white;
			padding: 10px;
			border: 2px solid white;
		}
	}
}