/* ===== VARIABLES CSS ===== */
:root {
    /* Paleta de colores - Design System XPRESS 2026 */
    --xp-navy: #0B1021;
    --xp-navy-light: #151F32;
    --xp-orange: #FF6900;
    --xp-dark-blue: #001C5B;
    --xp-orange-soft: #FFF7ED;
    --xp-blue: #0066CC;
    --xp-blue-soft: #EFF6FF;
    --xp-text: #1D1D1F;
    --xp-text-gray: #86868B;
    --xp-bg-light: #FBFBFD;
    --xp-white: #FFFFFF;
    --xp-border: rgba(0, 0, 0, 0.08);
    --xp-success: #10B981;
    --xp-warning: #F59E0B;
    --xp-error: #EF4444;
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    
    /* Bordes y sombras */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 4px 12px rgba(255, 105, 0, 0.25);
    
    /* Espaciado */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Transiciones */
    --transition-fast: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-normal: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--xp-text);
    background: linear-gradient(135deg, var(--xp-bg-light) 0%, #f0f2f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    line-height: 1.6;
}

/* Grid de fondo */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--xp-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--xp-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -2;
}

/* Glass overlay */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: -1;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.cotizador-container {
    width: 100%;
    max-width: 1400px;
    background: var(--xp-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER ===== */
.cotizador-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: var(--xp-navy);
    color: var(--xp-white);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.brand-icon {
    width: 32px;
    height: 32px;
    color: var(--xp-orange);
}

.brand h1 {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.brand-highlight {
    color: var(--xp-orange);
    font-weight: 800;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.step-indicator {
    display: flex;
    gap: var(--space-sm);
}

.step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}

.step.active {
    background: var(--xp-orange);
    transform: scale(1.2);
}

/* ===== GRID PRINCIPAL ===== */
.cotizador-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    min-height: 800px;
    align-items: stretch;
}

/* ===== PANEL IZQUIERDO (FORMULARIO) ===== */
.form-panel {
    padding: var(--space-3xl) var(--space-xl);
    border-right: 1px solid var(--xp-border);
    display: flex;
    flex-direction: column;
    min-height: 800px;
}

.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Contenedor de los pasos con scroll interno si es necesario */
.steps-container {
    flex: 1;
    overflow-y: auto;
    padding-right: var(--space-sm);
    min-height: 400px;
}

.step-section {
    display: none;
    animation: fadeIn 0.4s var(--transition-normal);
    padding-bottom: var(--space-2xl);
}

.step-section.active {
    display: block;
    min-height: 400px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--xp-border);
}

.step-header i {
    width: 24px;
    height: 24px;
    color: var(--xp-orange);
}

.step-header h2 {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.3px;
}

/* ===== NAVEGACIÓN DE PASOS ===== */
.step-navigation-wrapper {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--xp-white) 30%);
    padding-top: var(--space-xl);
    margin-top: auto;
    border-top: 1px solid var(--xp-border);
    z-index: 10;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    background: var(--xp-white);
    border-radius: var(--radius-md);
}

.nav-controls {
    display: flex;
    gap: var(--space-md);
    width: 100%;
}

.nav-group-left {
    display: flex;
    gap: var(--space-sm);
}

.nav-group-right {
    display: flex;
    gap: var(--space-sm);
    margin-left: auto;
}

.step-progress {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--xp-bg-light);
    border-radius: var(--radius-md);
    margin: 0 var(--space-lg);
}

.progress-text {
    font-size: 13px;
    color: var(--xp-text-gray);
    font-weight: 500;
}

.progress-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--xp-orange);
}

/* ===== INPUT GROUPS ===== */
.input-group {
    margin-bottom: var(--space-2xl);
}

.input-group label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    font-size: 14px;
    color: var(--xp-text-gray);
    margin-bottom: var(--space-sm);
}

.input-group label i {
    width: 16px;
    height: 16px;
}

/* ===== COMPONENTES ESPECÍFICOS ===== */

/* Location Selector */
.location-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.select-group {
    position: relative;
}

.geo-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 15px;
    background: var(--xp-white);
    color: var(--xp-text);
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.geo-select:focus {
    outline: none;
    border-color: var(--xp-orange);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

.geo-select:disabled {
    background: var(--xp-bg-light);
    color: var(--xp-text-gray);
    cursor: not-allowed;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--xp-text-gray);
}

.select-arrow i {
    width: 16px;
    height: 16px;
}

/* Location Badge */
.location-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.badge {
    padding: 6px 12px;
    background: var(--xp-blue-soft);
    color: var(--xp-blue);
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.trayecto-badge {
    font-size: 13px;
    color: var(--xp-text-gray);
    font-weight: 500;
}

/* Product Type Selector */
.product-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.product-card {
    padding: var(--space-lg) var(--space-md);
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-card:hover {
    border-color: var(--xp-orange);
    transform: translateY(-2px);
}

.product-card.active {
    border-color: var(--xp-orange);
    background: var(--xp-orange-soft);
    box-shadow: var(--shadow-card);
}

.product-card i {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-md);
    color: var(--xp-text-gray);
}

.product-card.active i {
    color: var(--xp-orange);
}

.product-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card p {
    font-size: 13px;
    color: var(--xp-text-gray);
    line-height: 1.4;
}

/* Measurements Grid */
.measurements-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: start;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 15px;
    background: var(--xp-bg-light);
}

.input-with-unit .unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--xp-text-gray);
    font-family: var(--font-mono);
    font-size: 14px;
}

.input-hint {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xs);
    font-size: 12px;
    color: var(--xp-text-gray);
}

.dimension-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.dimension {
    text-align: center;
}

.dimension input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    text-align: center;
    font-size: 15px;
    background: var(--xp-bg-light);
}

.dimension span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--xp-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tier Selector */
.tier-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.tier-card {
    padding: var(--space-lg);
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 140px;
}

.tier-card:hover {
    border-color: var(--xp-orange);
}

.tier-card.active {
    border-color: var(--xp-orange);
    background: var(--xp-orange-soft);
    box-shadow: var(--shadow-card);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.tier-header i {
    width: 20px;
    height: 20px;
    color: var(--xp-text-gray);
}

.tier-card.active .tier-header i {
    color: var(--xp-orange);
}

.tier-header h4 {
    font-size: 15px;
    font-weight: 600;
}

.tier-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.tier-price {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    color: var(--xp-success);
}

.tier-card[data-tier="express"] .tier-price {
    color: var(--xp-orange);
}

.tier-card[data-tier="economico"] .tier-price {
    color: var(--xp-success);
}

.tier-time {
    font-size: 12px;
    color: var(--xp-text-gray);
}

.tier-card p {
    font-size: 13px;
    color: var(--xp-text-gray);
    line-height: 1.4;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.service-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 80px;
}

.service-checkbox:hover {
    background: var(--xp-bg-light);
    border-color: var(--xp-orange);
}

.service-checkbox input {
    display: none;
}

.checkbox-ui {
    width: 20px;
    height: 20px;
    border: 2px solid var(--xp-border);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.service-checkbox input:checked + .checkbox-ui {
    background: var(--xp-orange);
    border-color: var(--xp-orange);
}

.service-checkbox input:checked + .checkbox-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.service-info {
    flex: 1;
}

.service-info span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-info small {
    font-size: 12px;
    color: var(--xp-text-gray);
    line-height: 1.4;
}

/* ===== PANEL DERECHO (RESULTADOS) ===== */
.results-panel {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--xp-bg-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.results-header h2 {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.results-header i {
    width: 20px;
    height: 20px;
    color: var(--xp-orange);
}

.time-estimate {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: var(--xp-blue-soft);
    color: var(--xp-blue);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
}

.time-estimate i {
    width: 16px;
    height: 16px;
}

/* Price Display */
.price-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.price-breakdown {
    background: var(--xp-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--space-2xl);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.price-row .price {
    font-family: var(--font-mono);
    font-weight: 600;
}

.divider {
    height: 1px;
    background: var(--xp-border);
    margin: 12px 0;
}

.subtotal {
    font-weight: 600;
    color: var(--xp-text);
}

.tier-row {
    font-size: 14px;
    color: var(--xp-text-gray);
}

.total-price {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--xp-navy) 0%, var(--xp-navy-light) 100%);
    color: var(--xp-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
}

.total-price h3 {
    font-weight: 500;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.total-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-sm);
}

.currency {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.8;
}

.amount {
    font-family: var(--font-mono);
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Zone Information */
.zone-info {
    background: var(--xp-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    margin-top: auto;
}

.zone-info h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: var(--space-lg);
}

.zone-info i {
    width: 18px;
    height: 18px;
    color: var(--xp-orange);
}

.zone-details {
    display: grid;
    gap: var(--space-sm);
}

.zone-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.zone-label {
    color: var(--xp-text-gray);
}

.zone-value {
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Action Buttons */
.results-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--xp-bg-light) 30%);
    padding-top: var(--space-xl);
    margin-top: auto;
    z-index: 10;
}

.action-buttons {
    display: grid;
    gap: var(--space-md);
    background: var(--xp-bg-light);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--xp-border);
}

/* Validation Errors */
.validation-errors {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    display: none;
}

.validation-errors:not(:empty) {
    display: block;
}

.validation-errors .error-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--xp-error);
    font-size: 14px;
    margin-bottom: var(--space-xs);
}

.validation-errors .error-item:last-child {
    margin-bottom: 0;
}

.validation-errors i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.cotizador-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--xp-border);
    background: var(--xp-bg-light);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--xp-text-gray);
}

.footer-info i {
    width: 14px;
    height: 14px;
}

.footer-version {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.version-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 4px 8px;
    background: var(--xp-orange-soft);
    color: var(--xp-orange);
    border-radius: var(--radius-xs);
    font-weight: 600;
}

.version-name {
    font-size: 12px;
    color: var(--xp-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ===== BOTONES ===== */
.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--xp-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--xp-orange);
    color: var(--xp-white);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover:not(:disabled) {
    background: #e55e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary {
    background: transparent;
    color: var(--xp-text);
    border: 1px solid var(--xp-border);
}

.btn-secondary:hover {
    background: var(--xp-bg-light);
    border-color: var(--xp-text-gray);
    transform: translateY(-1px);
}

.btn-edit {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xp-bg-light);
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-sm);
    color: var(--xp-text-gray);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-edit:hover {
    background: var(--xp-orange-soft);
    color: var(--xp-orange);
    border-color: var(--xp-orange);
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
}

/* Botones de navegación específicos */
.btn-next {
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-prev {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.btn-skip {
    background: transparent;
    color: var(--xp-text-gray);
    border: 1px solid var(--xp-border);
}

.btn-skip:hover {
    background: var(--xp-bg-light);
    color: var(--xp-text);
}

.btn-finish {
    background: linear-gradient(135deg, var(--xp-success), #10B981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    min-width: 160px;
    display: none;
}

.btn-finish:hover:not(:disabled) {
    background: linear-gradient(135deg, #0da271, #0e9e6e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* ===== UTILIDADES ===== */
.monospace {
    font-family: var(--font-mono) !important;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

/* Dimension Warning */
.dimension-warning {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
    font-size: 13px;
    color: var(--xp-warning);
}

.dimension-warning i {
    width: 16px;
    height: 16px;
}

/* Summary Card */
.summary-card {
    background: var(--xp-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.summary-header h3 {
    font-weight: 600;
    font-size: 18px;
}

/* ===== ESTILOS ESPECÍFICOS PARA INPUTS ESPECIALES ===== */

/* Input para valor declarado (currency style) */
.input-currency {
    position: relative;
}

.input-currency .currency-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--xp-text-gray);
    font-family: var(--font-mono);
    font-weight: 500;
    pointer-events: none;
    font-size: 15px;
}

.input-currency input {
    width: 100%;
    padding: 14px 16px 14px 40px;
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    background: var(--xp-bg-light);
    color: var(--xp-text);
    transition: all var(--transition-fast);
    text-align: right;
}

.input-currency input:focus {
    outline: none;
    border-color: var(--xp-orange);
    background: var(--xp-white);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

.input-currency input::placeholder {
    color: var(--xp-text-gray);
    opacity: 0.7;
    font-weight: normal;
}

#valor-declarado {
    width: 100%;
    padding: 14px 16px 14px 40px;
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    background: var(--xp-bg-light);
    color: var(--xp-text);
    transition: all var(--transition-fast);
    text-align: right;
    letter-spacing: -0.02em;
}

#valor-declarado:focus {
    outline: none;
    border-color: var(--xp-orange);
    background: var(--xp-white);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

#valor-declarado::placeholder {
    color: var(--xp-text-gray);
    opacity: 0.7;
    font-weight: normal;
}

/* Input helper */
.input-helper {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--xp-text-gray);
}

/* Input states */
.input-valid {
    border-color: var(--xp-success) !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

.input-invalid {
    border-color: var(--xp-error) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* ===== ANIMACIONES MEJORADAS ===== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-section[data-step="2"].active {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.step-section[data-step="1"].active {
    animation: slideInLeft 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.step-section[data-step="3"].active {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.step-section[data-step="4"].active {
    animation: slideInLeft 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* BADGE PARA PASO ACTUAL */
.step-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 10px;
    background: var(--xp-orange-soft);
    color: var(--xp-orange);
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-left: var(--space-md);
}

/* MEJORAS DE SCROLLBAR */
.steps-container::-webkit-scrollbar {
    width: 8px;
}

.steps-container::-webkit-scrollbar-track {
    background: var(--xp-bg-light);
    border-radius: 4px;
}

.steps-container::-webkit-scrollbar-thumb {
    background: var(--xp-border);
    border-radius: 4px;
}

.steps-container::-webkit-scrollbar-thumb:hover {
    background: var(--xp-text-gray);
}

/* ESTADOS DE NAVEGACIÓN */
.nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-loading {
    position: relative;
    pointer-events: none;
}

.nav-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .cotizador-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 1024px) {
    .cotizador-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .form-panel {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--xp-border);
    }
    
    .step-navigation-wrapper {
        position: relative;
        background: var(--xp-white);
    }
    
    .step-progress {
        display: none;
    }
    
    .results-actions {
        position: relative;
    }
}

@media (max-width: 768px) {
    .product-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tier-selector {
        grid-template-columns: 1fr;
    }
    
    .measurements-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .step-header h2 {
        font-size: 20px;
    }
    
    .amount {
        font-size: 42px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md) 0;
    }
    
    .nav-controls {
        flex-direction: column;
    }
    
    .nav-group-left,
    .nav-group-right {
        width: 100%;
    }
    
    .nav-group-right {
        margin-left: 0;
    }
    
    .btn-next,
    .btn-finish {
        width: 100%;
    }
    
    .step-progress {
        margin: var(--space-md) 0;
        width: 100%;
        justify-content: center;
    }
    
    .location-selector {
        grid-template-columns: 1fr;
    }
    
    .dimension-inputs {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

@media (max-width: 576px) {
    .product-type-selector {
        grid-template-columns: 1fr;
    }
    
    .cotizador-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .cotizador-container {
        border-radius: var(--radius-md);
    }
    
    .form-panel,
    .results-panel {
        padding: var(--space-xl) var(--space-lg);
    }
}

/* Input responsive */
@media (max-width: 768px) {
    .input-currency input,
    #valor-declarado {
        font-size: 18px;
        padding: 16px 16px 16px 44px;
    }
    
    .input-currency .currency-prefix {
        font-size: 18px;
        left: 18px;
    }
}

/* Clases de utilidad adicionales */
.flex-1 {
    flex: 1;
}

.min-h-0 {
    min-height: 0;
}

.h-full {
    height: 100%;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}