/* Estilos para el botón flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float i {
    margin-top: 16px;
}

.whatsapp-float a {
    color: white;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 60px;
    text-decoration: none;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Modal Whatsapp */

#modalWhatsapp .modal-header {
    background: #1DAA61;
    border-radius: .3rem .3rem 0 0;
    padding: .85rem 1.1rem;
}

#modalWhatsapp .modal-title {
    color: #edebeb;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

#modalWhatsapp .close {
    color: #edebeb;
    opacity: 1;
    text-shadow: none;
    font-size: 1.4rem;
    padding: 0 .25rem;
}

#modalWhatsapp .close:hover {
    color: #edebeb;
    opacity: .8;
}

/* Posición del diálogo — margen reducido en mobile */
#modalWhatsapp .modal-dialog {
    margin: .5rem auto;
}

/* Body scrolleable cuando el teclado sube en iOS/Android */
#modalWhatsapp .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.1rem .5rem;
}

/* Footer sin borde, padding ajustado */
#modalWhatsapp .modal-footer {
    border-top: none;
    padding: .5rem 1.1rem 1rem;
}

/* Botón de envío */
#modalWhatsapp .btn-wa-send {
    background: #1DAA61;
    color: #edebeb;
    border: none;
    font-weight: 500;
    font-size: 15px;
    padding: .65rem 1rem;
    width: 100%;
    border-radius: .3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s;
}

#modalWhatsapp .btn-wa-send:hover,
#modalWhatsapp .btn-wa-send:focus {
    background: #1DAA61;
    color: #edebeb;
}

/* Inputs — fuente mínima 16px para evitar zoom en iOS */
#modalWhatsapp .form-control {
    font-size: 16px;
}

/* Labels */
#modalWhatsapp label.wa-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
    display: block;
}

/* Mensaje de error */
#wa-modal-error {
    display: none;
    color: #dc3545;
    font-size: 12px;
    text-align: center;
    margin-top: 6px;
}

/* Desktop: modal centrado con ancho máximo */
@media (min-width: 576px) {
    #modalWhatsapp .modal-dialog {
        max-width: 460px;
        margin: 1.75rem auto;
    }

    #modalWhatsapp .modal-body {
        max-height: none;
        overflow-y: visible;
    }
}