/* ==========================================================
   Contacto WhatsApp — Tema Claro
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Wrapper -------------------------------------------- */
.cwa-wrapper {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #ffffff;
    border-radius: 14px;
    padding: 32px 28px 28px;
    max-width: 680px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid #e8edf3;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ---- Grupo de campo ------------------------------------ */
.cwa-field-group {
    margin-bottom: 14px;
}

/* ---- Contenedor con ícono ----------------------------- */
.cwa-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.cwa-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #a0aec0;
    pointer-events: none;
    flex-shrink: 0;
}

/* ---- Input -------------------------------------------- */
.cwa-input {
    width: 100%;
    background: #f7f9fc;
    border: 1.5px solid #dde3ec;
    border-radius: 8px;
    color: #1a202c;
    font-family: inherit;
    font-size: 0.93rem;
    padding: 12px 14px 12px 40px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    -webkit-appearance: none;
    appearance: none;
}
.cwa-input::placeholder { color: #a0aec0; }
.cwa-input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.cwa-input.cwa-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    background: #fff8f8;
}

/* ---- Textarea ----------------------------------------- */
.cwa-textarea-wrap {
    position: relative;
}
.cwa-icon-textarea {
    top: 15px;
    transform: none;
}
.cwa-textarea {
    width: 100%;
    background: #f7f9fc;
    border: 1.5px solid #dde3ec;
    border-radius: 8px;
    color: #1a202c;
    font-family: inherit;
    font-size: 0.93rem;
    line-height: 1.65;
    padding: 12px 14px 12px 40px;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
    min-height: 160px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.cwa-textarea::placeholder { color: #a0aec0; }
.cwa-textarea:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.cwa-textarea.cwa-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    background: #fff8f8;
}

/* ---- Contador de palabras ----------------------------- */
.cwa-word-counter {
    text-align: right;
    margin-top: 5px;
    font-size: 0.78rem;
    color: #a0aec0;
    transition: color 0.2s;
}
.cwa-word-counter.cwa-near-limit { color: #f59e0b; }
.cwa-word-counter.cwa-at-limit   { color: #ef4444; }
#cwa-word-count  { font-weight: 600; }
.cwa-word-limit  { font-weight: 400; }

/* ---- Mensaje de error --------------------------------- */
.cwa-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.88rem;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* ---- Botón -------------------------------------------- */
.cwa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    background: #1a202c;
    color: #f7fafc;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 20px;
    cursor: pointer;
    letter-spacing: 0.02em;
    margin-top: 6px;
    transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
}
.cwa-btn:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 32, 44, 0.2);
}
.cwa-btn:active { transform: translateY(0); box-shadow: none; }
.cwa-btn-icon   { width: 17px; height: 17px; flex-shrink: 0; }
