/* ==========================================================================
   WORKSTORE - CUSTOM CONTACT & FORM UI/UX STYLES (v2.0)
   ========================================================================== */

/* Area de Contacto */
.contact-area,
.contact-area.sub-bg,
[data-theme=dark_mode] .contact-area,
[data-theme=dark_mode] .contact-area.sub-bg {
    background: #0d061a !important;
    position: relative;
}

/* Columna Izquierda: Tarjeta Informativa Corporativa */
.ws-contact-info-card {
    background: linear-gradient(150deg, #1b0c30 0%, #281344 45%, #381f5d 100%) !important;
    border-radius: 24px !important;
    padding: 44px 36px !important;
    color: #ffffff !important;
    box-shadow: 0 20px 45px -15px rgba(32, 16, 55, 0.45) !important;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Decoración de fondo sutil en la tarjeta izquierda */
.ws-contact-info-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0) 70%);
    pointer-events: none;
}

.ws-contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.18) 0%, rgba(192, 132, 252, 0) 70%);
    pointer-events: none;
}

.ws-contact-info__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(239, 184, 12, 0.5);
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fef08a;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.ws-contact-info__badge i {
    color: #efb80c;
}

.ws-contact-info__title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
}

.ws-contact-info__desc {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 28px !important;
}

/* Canales de Contacto Individuales (Cards internas) */
.ws-contact-channels {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.ws-channel-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.ws-channel-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.ws-channel-card__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.ws-channel-card:hover .ws-channel-card__icon {
    background: #efb80c;
    color: #1f0f35;
    transform: scale(1.05);
}

.ws-channel-card__label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fef08a;
    margin-bottom: 3px;
    display: block;
}

.ws-channel-card__val {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-block;
    word-break: break-all;
    transition: color 0.2s ease;
}

.ws-channel-card__val:hover {
    color: #67e8f9 !important;
}

.ws-channel-card__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    margin-top: 3px;
}

/* WhatsApp Pill Button */
.ws-whatsapp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff !important;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.ws-whatsapp-pill:hover {
    background: #20bd5a;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Columna Derecha: Tarjeta del Formulario (Clean White SaaS UI) */
.ws-contact-form-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 44px 40px !important;
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    position: relative;
}

@media (max-width: 767px) {
    .ws-contact-form-card {
        padding: 28px 20px !important;
    }
    .ws-contact-info-card {
        padding: 32px 22px !important;
    }
}

.ws-form-header {
    margin-bottom: 28px;
}

.ws-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(56, 31, 93, 0.08);
    border: 1px solid rgba(239, 184, 12, 0.45);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #381f5d;
    margin-bottom: 12px;
}

.ws-form-badge i {
    color: #efb80c;
}

.ws-form-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
}

.ws-form-desc {
    font-size: 15px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* Reset variables dentro de la tarjeta de contacto para forzar modo claro */
.ws-contact-form-card,
.ws-contact-form-card.light-area {
    --heading-color: #0f172a !important;
    --paragraph: #334155 !important;
    --span: #0f172a !important;
    color: #0f172a !important;
}

/* Estructura de Campos UI/UX */
.ws-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

/* Labels oscuros de alta legibilidad y jerarquía */
.ws-contact-form-card label,
.ws-contact-form-card .ws-field-label,
.ws-contact-form-card .ws-field-label *,
.ws-contact-form-card .ws-field-label span,
.ws-contact-form-card .ws-consent-label,
.contact__form label,
.contact__form form label,
.contact__form form label *,
.contact__form label span,
[data-theme="dark_mode"] .ws-contact-form-card label,
[data-theme="dark_mode"] .ws-contact-form-card .ws-field-label,
[data-theme="dark_mode"] .ws-contact-form-card .ws-field-label *,
[data-theme="dark_mode"] .ws-contact-form-card .ws-field-label span,
[data-theme="dark_mode"] .ws-contact-form-card .ws-consent-label,
[data-theme="dark_mode"] .contact__form form label,
[data-theme="dark_mode"] .contact__form form label *,
[data-theme="dark_mode"] .contact__form label,
[data-theme="dark_mode"] .contact__form label span {
    color: #0f172a !important;
}

.ws-field-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ws-field-required {
    color: #dc2626 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    margin-left: 2px !important;
}

.ws-field-optional {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-left: auto !important;
}

/* Input Container con Icono Integrado */
.ws-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ws-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.ws-input-icon--textarea {
    top: 18px !important;
    transform: none !important;
}

/* Inputs, Selects y Textarea de Alta Legibilidad */
.ws-form-input,
.ws-form-select,
.ws-form-textarea {
    width: 100% !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14.5px !important;
    font-family: inherit !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.ws-form-input {
    height: 52px !important;
    padding: 0 16px 0 46px !important;
}

.ws-form-input::placeholder,
.ws-form-textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

/* Select Dropdown Personalizado */
.ws-form-select {
    height: 52px !important;
    padding: 0 40px 0 46px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 16px) center !important;
    background-size: 16px !important;
}

.ws-form-select option {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 10px !important;
}

/* Textarea */
.ws-form-textarea {
    min-height: 125px !important;
    padding: 14px 16px 14px 46px !important;
    resize: vertical !important;
    line-height: 1.55 !important;
}

/* Efectos de Focus Modernos (Anillo marca #381f5d) */
.ws-form-input:focus,
.ws-form-select:focus,
.ws-form-textarea:focus {
    background: #ffffff !important;
    border-color: #381f5d !important;
    box-shadow: 0 0 0 4px rgba(56, 31, 93, 0.14) !important;
    color: #0f172a !important;
}

.ws-input-container:focus-within .ws-input-icon {
    color: #381f5d !important;
    transform: translateY(-50%) scale(1.1);
}

.ws-input-container:focus-within .ws-input-icon--textarea {
    transform: scale(1.1) !important;
}

/* Hover de inputs */
.ws-form-input:hover:not(:focus),
.ws-form-select:hover:not(:focus),
.ws-form-textarea:hover:not(:focus) {
    border-color: #cbd5e1 !important;
}

/* Checkbox de Consentimiento */
.ws-consent-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ws-consent-box:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.ws-consent-checkbox {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-top: 2px !important;
    accent-color: #381f5d !important;
    cursor: pointer !important;
}

.ws-consent-label {
    font-size: 13px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
}

.ws-consent-link {
    color: #381f5d !important;
    text-decoration: underline !important;
    font-weight: 600;
}

/* Botón de Envío Principal */
.ws-submit-btn {
    width: 100% !important;
    height: 54px !important;
    background: linear-gradient(135deg, #241140 0%, #381f5d 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 10px 25px -5px rgba(56, 31, 93, 0.4) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ws-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px -5px rgba(56, 31, 93, 0.5) !important;
    background: linear-gradient(135deg, #381f5d 0%, #4c287a 100%) !important;
}

.ws-submit-btn:active {
    transform: translateY(0) !important;
}

.ws-submit-btn:disabled {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Franja de Confianza debajo del botón */
.ws-form-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.ws-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
}

.ws-trust-item i {
    color: #efb80c;
    font-size: 15px;
}

/* Mensajes de Estado */
.ws-form-success {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 18px !important;
    padding: 36px 28px !important;
    text-align: center !important;
}

.ws-form-success__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 18px auto;
}

.ws-form-success__title {
    font-size: 24px;
    font-weight: 800;
    color: #166534;
    margin-bottom: 8px;
}

.ws-form-success__desc {
    font-size: 15px;
    color: #15803d;
    max-width: 520px;
    margin: 0 auto 20px auto;
    line-height: 1.55;
}

.ws-form-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #b91c1c;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mapa Decorativo */
.contact__map {
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
}

.contact__map iframe {
    width: 100% !important;
    height: 420px !important;
    border: 0 !important;
    display: block;
    filter: grayscale(15%) contrast(1.05);
}
