.btn-modal-flotante {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 96px;
        height: 96px;
        background-color: #001391;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 2px 6px 0 rgba(7, 14, 70, 0.70);
        z-index: 9998;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
}
.btn-icono {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.btn-texto {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    margin-top: 8px;

}
.btn-modal-flotante:hover {
    background-color: #070E46;
    box-shadow: 0 2px 6px 0 rgba(7, 14, 70, 0.70);
}
.btn-modal-flotante:active {
    transform: scale(0.95);
}
.btn-modal-flotante:focus {
    outline: none;
}
.btn-notification-badge {
    position: absolute;
    top: 23px;
    right: 29px;
    width: 10px;
    height: 10px;
    background: #85c8ff;
    border: 2px solid #001391;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.1s ease;
    z-index: 1;
}
.btn-notification-badge.visible {
    opacity: 1;
    transform: scale(1);
}
.custom-tooltip {
    position: fixed;
    bottom: 135px;
    right: 50px;
    background: #001391;
    color: white;
    padding: 32px 32px 17px 32px;
    border-radius: 16px;
    max-width: 200px;
    font-size: 14px;
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.custom-tooltip p {
    color: white;
    line-height: 1.2;
}
.custom-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}
.custom-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #001391;
}
.tooltip-close {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #001391;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.tooltip-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.tooltip-close:focus {
    outline: none;
}
.custom-modal-close:focus {
    outline: none;
}
.custom-modal {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 450px;
    max-width: calc(100vw - 60px);
    height: 680px;
    max-height: calc(100vh - 140px);
    z-index: 9999;
    opacity: 0;
    transform-origin: bottom right;
    transition: all 300ms ease-in-out;
    pointer-events: none;
}
.custom-modal.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.custom-modal.no-animation {
    transition: none;
}
.custom-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: #f7f8f8;
    color: #001391;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}
.custom-modal-close:hover {
    background: #f0f0f0;
}
.custom-modal-header {
    padding: 10px 50px 15px 20px;
    flex-shrink: 0;
}
.custom-modal-header p {
    margin: 5px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
}
.custom-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 10px 10px 10px 0px;
}
.custom-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.custom-modal-footer {
    display: none;
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.custom-modal-footer p {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    color: #666;
    text-align: center;
}
@media(max-width: 768px) {
    .btn-modal-flotante {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    .btn-icono {
        width: 24px;
        height: 24px;
    }
    .btn-texto {
        display: none;
    }
    .btn-modal-flotante:after {
        display: none;
    }
    .custom-tooltip {
        display: none;
    }
    .custom-modal {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        padding-bottom: env(safe-area-inset-bottom);
        padding-top: env(safe-area-inset-top);
    }
    .custom-modal-content {
        border-radius: 0;
        height: 100%;
    }
    .admin-bar .custom-modal {
        top: 46px;
        height: calc(100dvh - 46px);
        max-height: calc(100dvh - 46px);
    }
    .custom-modal-header {
        padding: 12px 50px 12px 15px;
    }
    .custom-modal-header h3 {
        font-size: 15px;
    }
    .custom-modal-footer {
        padding: 10px 15px;
    }
    .custom-modal-footer p {
        font-size: 10px;
    }
    .custom-modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}
p.header-inverz-blue {
    text-align: center;
    color: #00189b;
    font-weight: 900;
    font-size: 2rem;
}