/* wp-content/uploads/funct.css */

/* Estilos del popup (incorporados directamente) */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Estilos del popup */
.whatsapp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.whatsapp-popup {
    width: 350px; /* Ancho reducido */
    max-width: 90%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.popup-header {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    position: relative;
}

.popup-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.popup-header p {
    font-size: 14px;
    opacity: 0.9;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

.form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #3b4a54;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-size: 15px;
    color: #3b4a54;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #25D366;
}

.form-group input::placeholder {
    color: #9aa8b1;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.country-selector {
    position: relative;
    flex: 0 0 130px;
}

.country-selector select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-size: 15px;
    color: #3b4a54;
    appearance: none;
    background-color: white;
}

.country-selector i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #667781;
    pointer-events: none;
}

.phone-number {
    flex: 1;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.privacy-check input {
    margin-top: 3px;
}

.privacy-check label {
    font-size: 13px;
    color: #667781;
    line-height: 1.4;
}

.privacy-check a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.privacy-check a:hover {
    text-decoration: underline;
}

/* BOTÃ“N MODIFICADO - AZUL CON TEXTO BLANCO Y HOVER ROSA */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #0073aa; /* Azul */
    color: #ffffff; /* Texto blanco */
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: #EF2AC1; /* Rosa al hacer hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.error-message {
    display: none;
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .whatsapp-popup {
        width: 95%;
    }

    .phone-input {
        flex-direction: column;
    }

    .country-selector {
        flex: 1;
        width: 100%;
    }
}
/* Estilo para trigger horizontal con texto blanco */
.whatsapp-popup-trigger.whatsapp-horizontal-white {
    display: inline-flex !important;
    flex-direction: row !important; /* Horizontal */
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #25D366 !important; /* Texto blanco */
    background-color: #25D366 !important; /* Fondo verde WhatsApp */
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    text-align: center !important;
    font-family: 'Maven Pro', sans-serif !important;
    padding: 8px 15px !important;
    border-radius: 30px !important;
    gap: 8px !important; /* Espacio entre Ã­cono y texto */
}

.whatsapp-popup-trigger.whatsapp-horizontal-white:hover {
    background-color: #128C7E !important; /* Verde mÃ¡s oscuro al hover */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-popup-trigger.whatsapp-horizontal-white .whatsapp-trigger-icon {
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.whatsapp-popup-trigger.whatsapp-horizontal-white .whatsapp-trigger-text {
    height: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    font-family: 'Maven Pro', sans-serif !important;
    color: #25D366 !important; /* Texto blanco */
}

.whatsapp-popup-trigger.whatsapp-horizontal-white .fab.fa-whatsapp {
    font-size: 20px !important;
    color: #25D366 !important; /* Ãcono blanco */
}
