/* =============================================
   ECONATOURS - COTIZADOR WIZARD v10.2.4 ⚡
   CAPA TITANIUM: UX Mobile-First & UTF-8 Enforced
   ============================================= */

/* 0. RESET & ESTRUCTURA DE CONTROL */
#eco-wizard-container {
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

#eco-wizard-container * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 1. BARRA DE PROGRESO (Sticky Robusto) 
   Mantiene el contexto del paso actual siempre visible */
#eco-wizard-container .eco-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: sticky;
    top: -20px; /* Ajuste para modales */
    background: #ffffff;
    z-index: 1000; 
    padding: 15px 5px;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}

#eco-wizard-container .step {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#eco-wizard-container .step.active {
    background: #1e3a8a;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.2);
}

#eco-wizard-container .step-label {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
}

#eco-wizard-container .step.active .step-label {
    color: #1e3a8a;
}

/* 2. CAMPOS DE ENTRADA (Input Shield)
   Optimizado para que el teclado móvil no tape el diseño */
#eco-wizard-container .eco-field {
    margin-bottom: 22px;
    animation: ecoFadeIn 0.3s ease-out;
}

#eco-wizard-container label {
    display: block;
    font-weight: 800;
    color: #475569;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

#eco-wizard-container input,
#eco-wizard-container select,
#eco-wizard-container textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 16px !important; /* Evita zoom automático en iOS */
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    appearance: none;
}

#eco-wizard-container input:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* 3. SISTEMA DE SELECCIÓN (Checkboxes/Radios Modernos) */
.eco-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.eco-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.eco-option-card.selected {
    border-color: #1e3a8a;
    background: #eff6ff;
    color: #1e3a8a;
}

/* 4. BOTONES DE NAVEGACIÓN (Control Maestro) */
#eco-wizard-container .eco-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding: 20px 0 env(safe-area-inset-bottom);
    border-top: 1px solid #f1f5f9;
}

#eco-wizard-container .btn-prev {
    background: #f1f5f9 !important;
    color: #64748b !important;
    padding: 16px !important;
    border-radius: 14px !important;
    font-weight: 700;
    flex: 1;
    border: none;
    cursor: pointer;
}

#eco-wizard-container .btn-next {
    background: #1e3a8a !important;
    color: #ffffff !important;
    padding: 16px !important;
    border-radius: 14px !important;
    font-weight: 700;
    flex: 2;
    border: none;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    cursor: pointer;
}

#eco-wizard-container .btn-next:active, 
#eco-wizard-container .btn-save:active {
    transform: scale(0.96);
}

/* 5. BOTÓN FINAL (Impacto Visual) */
#eco-wizard-container .btn-save {
    background: #10b981 !important;
    color: #ffffff !important;
    padding: 18px !important;
    border-radius: 16px !important;
    font-weight: 900;
    width: 100%;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    cursor: pointer;
}

/* 6. RESPONSIVE & ANIMACIONES */
@keyframes ecoFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    #eco-wizard-container .eco-progress-bar {
        top: -15px;
        padding: 10px 0;
    }
    
    .eco-selection-grid {
        grid-template-columns: 1fr;
    }

    #eco-wizard-container input {
        font-size: 16px !important; /* Crucial para evitar zoom en iPhone */
    }
}

/* Estilo para Scroll Infinito en Textareas */
#eco-wizard-container textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}