/* ============================================================================
   FORMULARIO DE CONTACTO - VILLA HABANA
   5 Variantes con Neurodiseño
   ============================================================================ */

/* --- BASE: Contenedor general para TODAS las variantes --- */
[class*="vh-contact-ct_"] {
    padding: 4rem 1.5rem;
    background: var(--color-bg-alt, #f8fafc);
}

[class*="vh-contact-ct_"] .vh-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface, #ffffff);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[class*="vh-contact-ct_"] .vh-header {
    text-align: center;
    margin-bottom: 2rem;
}

[class*="vh-contact-ct_"] .vh-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    margin: 0 0 0.5rem;
}

[class*="vh-contact-ct_"] .vh-header p {
    color: var(--color-text-secondary, #64748b);
    font-size: 1.05rem;
}

/* --- FORMULARIOS BASE --- */
[class*="vh-contact-ct_"] .vh-form-group {
    margin-bottom: 1.25rem;
}

[class*="vh-contact-ct_"] .vh-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text, #334155);
    font-size: 0.95rem;
}

[class*="vh-contact-ct_"] .vh-form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border, #cbd5e1);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--color-surface, #ffffff);
    color: var(--color-text, #1e293b);
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

[class*="vh-contact-ct_"] .vh-form-input:focus {
    outline: none;
    border-color: var(--color-primary, #0f766e);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

[class*="vh-contact-ct_"] .vh-form-input.is-invalid {
    border-color: var(--color-error, #dc2626);
    background: #fef2f2;
}

[class*="vh-contact-ct_"] .vh-error-message {
    display: none;
    color: var(--color-error, #dc2626);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

[class*="vh-contact-ct_"] .vh-honeypot {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

[class*="vh-contact-ct_"] .vh-btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary, #0f766e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

[class*="vh-contact-ct_"] .vh-btn-submit:hover:not(:disabled) {
    background: var(--color-primary-hover, #0d5f58);
    transform: translateY(-1px);
}

[class*="vh-contact-ct_"] .vh-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

[class*="vh-contact-ct_"] .vh-form-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
}

[class*="vh-contact-ct_"] .vh-form-feedback.vh-success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

[class*="vh-contact-ct_"] .vh-form-feedback.vh-error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================================================
   VARIANTE B: SPLIT SCREEN
   ============================================================================ */
.vh-contact-style-b .vh-container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.vh-contact-style-b .vh-contact-info {
    background: var(--color-primary, #0f766e);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vh-contact-style-b .vh-contact-info h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.vh-contact-style-b .vh-contact-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.vh-contact-style-b .vh-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vh-contact-style-b .vh-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vh-contact-style-b .vh-info-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.vh-contact-style-b .vh-info-item span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.vh-contact-style-b .vh-contact-form-wrapper {
    background: white;
    padding: 3rem;
}

.vh-contact-style-b .vh-form-group input,
.vh-contact-style-b .vh-form-group textarea {
    border: none;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.vh-contact-style-b .vh-form-group input:focus,
.vh-contact-style-b .vh-form-group textarea:focus {
    border-bottom-color: var(--color-primary, #0f766e);
    box-shadow: none;
}

/* ============================================================================
   VARIANTE C: AGRUPACIÓN COGNITIVA
   ============================================================================ */
.vh-contact-style-c .vh-form-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.vh-contact-style-c .vh-section-title {
    font-size: 1rem;
    color: var(--color-primary, #0f766e);
    margin: 0 0 1rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vh-contact-style-c .vh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ============================================================================
   VARIANTE D: CONVERSACIONAL
   ============================================================================ */
.vh-contact-style-d .vh-container-conversational {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.vh-contact-style-d .vh-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.vh-contact-style-d .vh-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-primary, #0f766e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vh-contact-style-d .vh-chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text, #0f172a);
}

.vh-contact-style-d .vh-online-status {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

.vh-contact-style-d .vh-chat-bubble {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 12px 12px 12px 0;
    margin-bottom: 0.5rem;
    max-width: 80%;
    font-size: 0.95rem;
    color: #334155;
}

.vh-contact-style-d .vh-chat-input {
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.vh-contact-style-d .vh-btn-chat {
    border-radius: 25px;
    margin-top: 0.5rem;
}

/* ============================================================================
   VARIANTE E: GLASSMORPHISM
   ============================================================================ */
.vh-contact-style-e {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 6rem 1.5rem;
}

.vh-contact-style-e .vh-glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.vh-contact-style-e .vh-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.vh-contact-style-e .vh-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.vh-contact-style-e .vh-glass-input {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.vh-contact-style-e .vh-glass-input:focus {
    background: white;
    border-color: var(--color-primary, #0f766e);
}

.vh-contact-style-e .vh-btn-glass {
    background: var(--color-primary, #0f766e);
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
}

/* ============================================================================
   UTILIDADES Y RESPONSIVE
   ============================================================================ */
.vh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.vh-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary, #64748b);
    margin-top: 1rem;
}

.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    [class*="vh-contact-ct_"] .vh-container {
        padding: 1.5rem;
    }
    
    [class*="vh-contact-ct_"] .vh-header h2 {
        font-size: 1.5rem;
    }
    
    .vh-form-row {
        grid-template-columns: 1fr;
    }
    
    .vh-contact-style-b .vh-container-split {
        grid-template-columns: 1fr;
    }
    
    .vh-contact-style-b .vh-contact-info {
        padding: 2rem;
    }
    
    .vh-contact-style-b .vh-contact-form-wrapper {
        padding: 2rem;
    }
}