/* Modal overlay - fondo oscuro */
.modal-overlay-practica {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7) !important;
    /* Slightly darker */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2147483647 !important;
    /* Max z-index to stay on top of Muse */
}

/* Contenedor blanco del modal */
.modal-practica-box {
    background: #FFFFFF !important;
    width: 650px;
    /* Increased from 520px */
    padding: 35px 50px 35px 50px;
    /* Increased from 20px 25px */
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: Arial, Helvetica, sans-serif !important;
    color: #333333 !important;
    font-size: 15px;
    /* Slightly larger */
    line-height: 1.5;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2147483647 !important;
}

/* Forzar negritas */
.modal-practica-body strong,
.modal-practica-body b {
    font-weight: bold !important;
    color: #000000 !important;
}

/* Botón de cierre (x) - arriba a la derecha */
.modal-practica-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #AAAAAA;
    color: #FFFFFF !important;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold !important;
    font-size: 16px;
    border: none;
    line-height: 1;
    padding: 0;
}

.modal-practica-close:hover {
    background: #888888;
}

/* Título del modal - color rojo/rosa */
.modal-practica-title {
    color: #CC3366 !important;
    font-size: 18px;
    font-weight: bold !important;
    margin-bottom: 4px;
}

/* Subtítulo */
.modal-practica-subtitle {
    color: #333333 !important;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Cuerpo */
.modal-practica-body {
    font-size: 15px;
    margin-bottom: 20px;
    color: #333333 !important;
}

.modal-practica-body p {
    margin-bottom: 12px;
    margin-top: 0;
}

/* Link de descarga */
.modal-practica-footer {
    border-top: 1px solid #DDDDDD;
    padding-top: 20px;
    margin-top: 10px;
}

.modal-practica-download {
    display: inline-flex;
    /* Changed to inline-flex to be closer to text */
    align-items: center;
    color: #0033CC !important;
    text-decoration: underline;
    font-weight: bold !important;
    font-size: 16px;
    cursor: pointer;
    gap: 8px;
    /* Control separation between icon and text */
}

.modal-practica-download:hover {
    color: #0000AA !important;
}

.modal-practica-download img {
    width: 22px;
    height: auto;
}

/* Icono de mano SVG rotado */
.modal-practica-download svg {
    width: 32px;
    height: auto;
    flex-shrink: 0;
    transform: rotate(90deg);
    /* Rotate 90deg right */
}

/* Ocultar agresivamente cualquier rastro del modal viejo de Muse */
.PamphletLightboxPart,
.widget_invisible,
#u473popup,
#u473 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}