/* =========================================
   RUSTIC VALORACION - MODERN UI
   ========================================= */

.rustic-valoracion-wrapper.modern-ui { max-width: 800px; margin: 0 auto; font-family: 'Inter', sans-serif; color: #1e293b; background: #ffffff; border-radius: 16px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); padding: 40px; position: relative; overflow: hidden; }
.rustic-progress-container { position: relative; margin-bottom: 40px; padding-bottom: 20px; }
.rustic-progress-bar { position: absolute; top: 14px; left: 0; height: 4px; background: #3b82f6; width: 0%; transition: width 0.4s ease; z-index: 1; border-radius: 2px; }
.rustic-progress-container::before { content: ''; position: absolute; top: 14px; left: 0; width: 100%; height: 4px; background: #e2e8f0; z-index: 0; border-radius: 2px; }
.rustic-steps-indicators { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.step-indicator { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: #94a3b8; transition: all 0.3s ease; }
.step-indicator span { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 4px solid #ffffff; }
.step-indicator.active { color: #3b82f6; }
.step-indicator.active span { background: #3b82f6; color: #ffffff; box-shadow: 0 0 0 4px #eff6ff; }
.step-indicator.completed { color: #10b981; }
.step-indicator.completed span { background: #10b981; color: #ffffff; }
.rustic-step-content { display: none; animation: fadeInStep 0.4s ease forwards; }
.rustic-step-content.active { display: block; }
@keyframes fadeInStep { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rustic-step-header { margin-bottom: 30px; text-align: center; }
.rustic-step-header h3 { font-size: 1.5rem; color: #0f172a; margin: 0 0 8px 0; font-weight: 700; }
.rustic-step-header p { color: #64748b; margin: 0; font-size: 0.95rem; }
.rustic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rustic-field { display: flex; flex-direction: column; }
.rustic-field.full-width { grid-column: 1 / -1; }
.rustic-field label { font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: #334155; }

/* FIX PARA LOS SELECTS (Evitar que se corte el texto) */
.rustic-field input[type="text"], 
.rustic-field input[type="number"], 
.rustic-field input[type="email"], 
.rustic-field input[type="tel"], 
.rustic-field select, 
.rustic-field textarea { 
    padding: 12px 16px; 
    border: 1px solid #cbd5e1; 
    border-radius: 8px; 
    font-size: 0.95rem; 
    width: 100%; 
    box-sizing: border-box; 
    background: #f8fafc; 
    transition: all 0.2s ease; 
    color: #0f172a; 
}

/* Reglas específicas para que los select se vean completos */
.rustic-field select {
    height: auto !important;
    min-height: 46px;
    line-height: 1.5;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.rustic-field input:focus, .rustic-field select:focus, .rustic-field textarea:focus { outline: none; border-color: #3b82f6; background: #ffffff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.rustic-field input.input-error, .rustic-field select.input-error { border-color: #ef4444; background: #fef2f2; }
.input-with-suffix { position: relative; display: flex; align-items: center; }
.input-with-suffix input { padding-right: 40px; }
.input-with-suffix .suffix { position: absolute; right: 16px; color: #64748b; font-weight: 500; pointer-events: none; }
.modern-checkboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.custom-checkbox { display: flex; align-items: center; position: relative; padding-left: 30px; cursor: pointer; font-size: 0.9rem; color: #475569; user-select: none; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.custom-checkbox .checkmark { position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 20px; width: 20px; background-color: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 4px; transition: all 0.2s ease; }
.custom-checkbox:hover input ~ .checkmark { background-color: #e2e8f0; }
.custom-checkbox input:checked ~ .checkmark { background-color: #3b82f6; border-color: #3b82f6; }
.custom-checkbox .checkmark:after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.rustic-legal-box { background: #f8fafc; padding: 20px; border-radius: 8px; border: 1px solid #e2e8f0; }
.legal-check { font-size: 0.85rem; color: #64748b; line-height: 1.4; }
.legal-check a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.rustic-step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.rustic-btn, .rustic-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.rustic-btn { background-color: #0f172a; color: white; border: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.rustic-btn:hover { background-color: #1e293b; transform: translateY(-1px); box-shadow: 0 6px 8px -1px rgba(0,0,0,0.15); }
.rustic-btn-submit { background-color: #3b82f6; }
.rustic-btn-submit:hover { background-color: #2563eb; }
.rustic-btn-outline { background-color: transparent; color: #475569; border: 1px solid #cbd5e1; }
.rustic-btn-outline:hover { background-color: #f1f5f9; color: #0f172a; }
.rustic-loader-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.95); z-index: 10; display: flex; align-items: center; justify-content: center; border-radius: 16px; backdrop-filter: blur(4px); }
.loader-content { text-align: center; }
.loader-content h4 { margin: 20px 0 5px; color: #0f172a; font-size: 1.2rem; }
.loader-content p { color: #64748b; font-size: 0.9rem; margin: 0; }
.ai-pulse { width: 60px; height: 60px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); border-radius: 50%; margin: 0 auto; animation: pulse 1.5s infinite; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
.rustic-result { text-align: center; }
.result-header { margin-bottom: 30px; }
.success-icon { width: 64px; height: 64px; background: #dcfce7; color: #16a34a; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 32px; font-weight: bold; }
.result-header h3 { font-size: 1.8rem; color: #0f172a; margin: 0 0 5px; font-weight: 800; }
.price-cards { display: flex; gap: 20px; justify-content: center; align-items: stretch; margin-bottom: 30px; }
@media (max-width: 600px) { .price-cards { flex-direction: column; } }
.price-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.price-card.probable { background: #eff6ff; border: 2px solid #3b82f6; transform: scale(1.05); box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2); z-index: 2; }
.price-card .label { font-size: 0.85rem; color: #64748b; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.price-card .value { font-size: 1.5rem; color: #0f172a; font-weight: 700; }
.price-card.probable .label { color: #2563eb; }
.price-card.probable .value.highlight { font-size: 2.2rem; color: #1d4ed8; font-weight: 800; }
.explanation-box { background: #f8fafc; border-radius: 12px; padding: 20px; text-align: left; border: 1px solid #e2e8f0; }
.explanation-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.explanation-box p { margin: 0; color: #475569; line-height: 1.6; font-size: 0.95rem; }
.missing-data-box { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 15px; text-align: left; color: #c2410c; font-size: 0.9rem; }
.rustic-message { padding: 15px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; }
.rustic-message.error { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rustic-message.ai-error { background-color: #fffbeb; color: #b45309; border: 1px solid #fde68a; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 25px; }
.error-content { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 15px; }
.mt-2 { margin-top: 10px; } .mt-3 { margin-top: 15px; } .mt-4 { margin-top: 20px; }
