/* =============================================
   BOTÓN FLOTANTE
============================================= */
#wlp-whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}

#wlp-whatsapp-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

/* =============================================
   MODAL — OVERLAY
============================================= */
#wlp-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 99999;
    padding: 16px;
    box-sizing: border-box;
}

/* =============================================
   MODAL — CONTENIDO
============================================= */
.wlp-modal-content {
    background: #fff;
    width: 100%;
    max-width: 380px;
    margin: 6% auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

/* =============================================
   MODAL — HEADER
============================================= */
.wlp-modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    background: #075e55;
    padding: 12px 18px;
    position: relative;
}

.wlp-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    opacity: .85;
    transition: opacity .15s;
}

.wlp-close:hover {
    opacity: 1;
}

/* =============================================
   MODAL — BODY
============================================= */
.wlp-modal-body {
    padding: 20px;
}

.wlp-modal-body-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}

.wlp-modal-body-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

/* =============================================
   LABELS
============================================= */
.wlp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

/* =============================================
   INPUTS / TEXTAREA
============================================= */
.wlp-modal-content input[type="text"],
.wlp-modal-content input[type="tel"],
.wlp-modal-content textarea {
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
}

.wlp-modal-content input[type="text"]:focus,
.wlp-modal-content input[type="tel"]:focus,
.wlp-modal-content textarea:focus {
    border-color: #25d366;
}

.wlp-modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

/* =============================================
   FILA DE TELÉFONO CON SELECTOR DE PAÍS
============================================= */
.wlp-phone-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.wlp-country-wrapper {
    position: relative;
    flex-shrink: 0;
}

#wlp-country-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    height: 38px;
    box-sizing: border-box;
    transition: border-color .2s;
}

#wlp-country-btn:hover,
#wlp-country-btn:focus {
    border-color: #25d366;
    outline: none;
}

.wlp-chevron {
    font-size: 11px;
    color: #888;
}

/* Dropdown de países */
.wlp-country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    width: 230px;
    overflow: hidden;
}

#wlp-country-search {
    width: 100% !important;
    padding: 8px 10px !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    outline: none;
}

#wlp-country-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

#wlp-country-list li {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
}

#wlp-country-list li:hover {
    background: #f0fdf4;
}

/* Input del número (ocupa el resto del ancho) */
.wlp-phone-row input[type="tel"] {
    flex: 1;
    margin-bottom: 0 !important;
}

/* =============================================
   BOTÓN ENVIAR
============================================= */
#wlp_send {
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .2s;
    margin-top: 4px;
}

#wlp_send:hover:not(:disabled) {
    background: #1ebc58;
}

#wlp_send:disabled {
    background: #b2dfcc;
    cursor: not-allowed;
}

/* =============================================
   MENSAJE DE ÉXITO
============================================= */
#wlp-success-msg {
    text-align: center;
    color: #075e55;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 0 4px;
}

/* =============================================
   POLÍTICA DE PRIVACIDAD
============================================= */
.wlp_politicas {
    font-size: 11px;
    margin-top: 22px;
    color: #bbb;
    text-align: center;
}

.wlp_politicas a {
    color: #bbb;
    text-decoration: none;
}

.wlp_politicas a:hover {
    color: #999;
    text-decoration: underline;
}

/* =============================================
   RESPONSIVE — móviles pequeños
============================================= */
@media (max-width: 420px) {
    .wlp-modal-content {
        margin-top: 2%;
    }

    .wlp-country-dropdown {
        width: 200px;
    }
}
