/* Modal en Productos */
.ElModal {
    display: flex;
    position: fixed;
    z-index: 99999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ElModal.is-open {
    opacity: 1;
    visibility: visible;
}
.ElModal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 0;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0px 18px 69px 1px rgba(0,0,0,0.31);
    position: relative;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}
.ElModal.is-open .ElModal-content {
    transform: translateY(0);
}
.ElModal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.ElModal-close:hover,
.ElModal-close:focus {
    color: #000;
    text-decoration: none;
}
.ElModal-btn {
    display: inline-flex;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 4px;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
}
.ElModal-btn img {
    display: block;
}
.wapf-field-label .ElModal-btn {
    margin-left: 6px;
}
.ElModal-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
}
.ElModal-content .wp-has-aspect-ratio .wp-block-embed__wrapper {
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.ElModal-content .wp-has-aspect-ratio .wp-block-embed__wrapper iframe,
.ElModal-content .wp-has-aspect-ratio .wp-block-embed__wrapper .perfmatters-lazy-youtube,
.ElModal-content .wp-has-aspect-ratio .wp-block-embed__wrapper .flying-press-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Estilos de bloques dentro del modal */
.ElModal-content h1,
.ElModal-content h2,
.ElModal-content h3,
.ElModal-content h4,
.ElModal-content h5,
.ElModal-content h6 {
    font-weight: 700;
}
.ElModal-content strong {
    font-weight: 700;
}
