/* --- BOTÓN FLOTANTE SOLICITAR LLAMADA (solo escritorio/tablet) --- */
.floating-call-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #000000;
    color: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    z-index: 1200;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: width 0.25s, box-shadow 0.25s;
    width: 48px;
    height: 48px;
    overflow: hidden;
    font-family: inherit;
}
.floating-call-btn .icon-phone {
    width: 24px;
    height: 24px;
    margin: auto 12px auto 12px;
    display: block;
    color: #fff;
    background: none;
}
.floating-call-btn .icon-phone svg {
    width: 24px;
    height: 24px;
    display: block;
}
.floating-call-btn .call-btn-text {
    opacity: 0;
    white-space: nowrap;
    visibility: hidden;
    margin-left: 8px;
    margin-right: 18px;
    font-weight: 600;
    transition: opacity 0.18s, visibility 0.18s;
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.floating-call-btn:hover,
.floating-call-btn:focus {
    width: 230px;
    box-shadow: 0 4px 24px rgba(34,115,207,0.08);
}
.floating-call-btn:hover .call-btn-text,
.floating-call-btn:focus .call-btn-text {
    opacity: 1;
    visibility: visible;
}
.floating-call-btn:hover .icon-phone,
.floating-call-btn:focus .icon-phone {
    color: #fff;
}

/* --- BOTÓN FLOTANTE WHATSAPP (solo móvil) --- */
.floating-whatsapp-btn {
    display: none; /* Oculto por defecto, solo visible en móvil */
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 1201;
    background: #25d366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s;
}
.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:focus {
    background: #1ca851;
}
.floating-whatsapp-btn .icon-whatsapp {
    width: 30px;
    height: 30px;
    display: block;
    color: #fff;
    background: none;
}
.floating-whatsapp-btn .icon-whatsapp svg {
    width: 30px;
    height: 30px;
    display: block;
}

/* --- POPUP y FORMULARIO --- */
.call-popup-overlay {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(20,30,60,0.68);
    display: flex;
    align-items: center;
    justify-content: center;
}
.call-popup-box {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    max-width: 420px;
    width: 92vw;
    padding: 2.5em 2.3em 2em 2.3em;
    box-shadow: 0 6px 32px rgba(34,115,207,0.15);
    position: relative;
    text-align: center;
    animation: popup-fadein 0.35s;
}
@keyframes popup-fadein {
    from { transform: translateY(-32px) scale(0.96); opacity:0; }
    to { transform: translateY(0) scale(1); opacity:1; }
}

.close_pop_2 {
    color: #fff;
    
}
.call-popup-close {
    position: absolute;
    top: 0.5em; right: 0.5em;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.3em 0.7em;
    border-radius: 4px;
    transition: background 0.18s;
}
.call-popup-close:hover {
    background: #000;
}
.call-popup-title {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.call-popup-subtitle {
    color: #E6E4E2;
    font-size: 1.12rem;
    margin-bottom: 1.25em;
    font-weight: 500;
}
.call-request-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
    width: 100%;
    margin-top: 0.5em;
}
.call-form-label {
    color: #E6E4E2;
    font-weight: 500;
    font-size: 1.01rem;
    margin-bottom: 0.1em;
}
.call-form-input {
    width: 100%;
    max-width: 260px;
    background: #f8f8fa;
    border: 1.5px solid #b5c7e5;
    border-radius: 6px;
    padding: 0.8em 1em;
    font-size: 1.1rem;
    color: #222;
    outline: none;
    transition: border 0.17s;
}
.call-form-input:focus {
    border: 1.5px solid #fff;
}
.call-form-helper {
    color: #858585;
    font-size: 0.93rem;
    margin-bottom: 0.3em;
}
.call-form-submit {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.85em 2.2em;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.6em;
    transition: background 0.18s;
}
.call-form-submit:hover,
.call-form-submit:focus {
    background: #6a6a6a;
}
.call-form-feedback {
    font-size: 1.02rem;
    margin-top: 1em;
    color: #fff;
    font-weight: 500;
}

/* --- MENSAJE DE ÉXITO/ERROR OCUPANDO EL MISMO ESTILO Y ESPACIO QUE EL FORMULARIO --- */
.call-popup-message-state {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.call-popup-message-state .answer {
    padding: 64px 0 36px 0;
    font-size: 1.18em;
    font-weight: 700;
    color: #fff;
    text-align: center;
    width: 100%;
    letter-spacing: 0.01em;
    background: none;
}
/* Mensaje de error */
.call-popup-message-state .answer:not(:first-child) {
    color: #c0041a;
    font-weight: 600;
}

/* Botón Cerrar exclusivo para mensajes de éxito/error en el popup */
.call-popup-message-state .close-msg-btn {
    display: inline-block;
    margin: 28px auto 0 auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    opacity: 0.95;
    transition: opacity 0.18s;
    border-radius: 4px;
    padding: 0.3em 0.7em;
}
.call-popup-message-state .close-msg-btn:hover,
.call-popup-message-state .close-msg-btn:focus {
    opacity: 1;
    background: none;
}

/* --- RESPONSIVO: solo una opción visible en cada breakpoint --- */
@media (max-width: 700px) {
    .floating-call-btn { display: none !important; }
    .floating-whatsapp-btn { display: flex !important; }
    .call-popup-overlay { display: none !important; }
    .call-popup-box { display: none !important; }
}
@media (min-width: 701px) {
    .floating-call-btn { display: flex !important; }
    .floating-whatsapp-btn { display: none !important; }
}