/* Botones flotantes de redes sociales */
.floating-social-buttons {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.social-float,
.whatsapp-float {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, background .25s ease;
}

.social-float {
    font-size: 31px;
}

.whatsapp-float {
    position: static;
    background: #25d366;
    font-size: 35px;
    flex-shrink: 0;
}

.social-float:hover,
.whatsapp-float:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.34);
}

.social-float:focus,
.whatsapp-float:focus {
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.facebook-float {
    background: #1877f2;
}

.instagram-float {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.whatsapp-float:hover {
    background: #20bd5a;
}

.social-float i {
    line-height: 1;
}

/* Modal de WhatsApp */
.modal-whatsapp {
    max-width: 500px;
}

.modal-whatsapp .modal-content {
    position: relative;
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.30);
}

.modal-whatsapp .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg, #f2c300 0%, #f2c300 48%, #075e54 48%, #075e54 100%);
}

.modal-whatsapp .modal-body {
    padding: 38px 38px 42px;
}

.modal-whatsapp-close {
    position: absolute;
    top: 17px;
    right: 24px;
    z-index: 5;
    border: none;
    background: transparent;
    color: #6c6c6c;
    font-size: 39px;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
}

.modal-whatsapp-close:hover {
    color: #111111;
}

.whatsapp-title {
    max-width: 540px;
    margin: 0 45px 28px 0;
    color: #111111;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

#whatsappForm .form-group {
    margin-bottom: 16px;
}

.whatsapp-control {
    width: 100%;
    height: 46px;
    border: 2px solid #d9d9d9;
    border-radius: 17px;
    color: #222222;
    background: #ffffff;
    font-size: 18px;
    font-weight: 400;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.whatsapp-control::placeholder {
    color: #7b7b7b;
    opacity: 1;
}

.whatsapp-control:focus {
    border-color: #0862c7;
    box-shadow: 0 0 0 1px #0862c7;
}

select.whatsapp-control {
    color: #191919;
}

.whatsapp-textarea {
    height: 128px;
    min-height: 128px;
    resize: vertical;
    padding-top: 22px;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #df2525;
    background-image: none;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #25a85a;
    background-image: none;
}

.invalid-feedback {
    margin-top: 8px;
    color: #df2525;
    font-size: 15px;
}

.whatsapp-submit {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 16px;
    background: #25d366;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    transition: background .2s ease, transform .2s ease;
}

.whatsapp-submit:hover {
    background: #20bd5a;
    color: #ffffff;
    transform: translateY(-2px);
}

.whatsapp-submit:focus {
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25);
}

.whatsapp-submit:disabled {
    background: #cecece;
    color: #747474;
    cursor: not-allowed;
    transform: none;
}

.whatsapp-submit i {
    font-size: 34px;
}

#whatsappAlert .alert {
    border-radius: 12px;
    font-size: 15px;
}

@media (max-width: 767px) {
    .modal-whatsapp {
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    .modal-whatsapp .modal-body {
        padding: 34px 22px 28px;
    }

    .whatsapp-title {
        margin-right: 30px;
        font-size: 25px;
    }

    .whatsapp-control {
        height: 54px;
        border-radius: 12px;
        font-size: 18px;
    }

    .whatsapp-textarea {
        min-height: 120px;
        padding-top: 14px;
        resize: none;
    }

    .whatsapp-submit {
        min-height: 68px;
        border-radius: 13px;
        font-size: 21px;
    }

    .invalid-feedback {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .floating-social-buttons {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .social-float,
    .whatsapp-float {
        width: 58px;
        height: 58px;
    }

    .social-float {
        font-size: 28px;
    }

    .whatsapp-float {
        font-size: 31px;
    }
}