/* Variables de colores basadas en la imagen de referencia */
:root {
    --primary-dark: #2D3748;        /* Azul marino oscuro - títulos principales */
    --primary-medium: #4A5568;      /* Azul medio - texto principal */
    --secondary-text: #718096;       /* Azul grisáceo - texto secundario */
    --accent-turquoise: #38B2AC;     /* Verde turquesa - elementos completados */
    --accent-orange: #FF6B35;        /* Naranja vibrante - botones CTA */
    --gray-light: #E2E8F0;           /* Gris claro - elementos inactivos */
    --gray-medium: #A0AEC0;          /* Gris medio - texto deshabilitado */
    --background-light: #F7FAFC;     /* Gris muy claro - fondo general */
    --white: #FFFFFF;                /* Blanco - fondos de cards */
    --mint-light: #81E6D9;           /* Verde menta claro - acentos */
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-light);
    min-height: 100vh;
    line-height: 1.6;
}

/* Container principal */
.wizard-container {
    max-width: 480px;
    margin: 20px auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(45, 55, 72, 0.1);
    overflow: hidden;
    position: relative;
}

/* Header con progreso */
.wizard-header {
    background: var(--white);
    color: var(--primary-dark);
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
}

.wizard-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}

/* Barra de progreso */
.progress-bar {
    background: var(--gray-light);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-fill {
    background: var(--accent-turquoise);
    height: 100%;
    border-radius: 3px;
    width: 16.66%;
    transition: width 0.3s ease;
}

/* Indicador de pasos */
.step-counter {
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 500;
}

/* Progress steps visual */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-medium);
}

.progress-step.completed .progress-step-circle {
    background: var(--accent-turquoise);
    color: var(--white);
}

.progress-step.active .progress-step-circle {
    background: var(--primary-medium);
    color: var(--white);
}

.progress-step-label {
    font-size: 11px;
    text-align: center;
    color: var(--secondary-text);
    max-width: 70px;
}

.progress-step.completed .progress-step-label {
    color: var(--primary-medium);
    font-weight: 600;
}

.progress-step.active .progress-step-label {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Líneas conectoras */
.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background: var(--gray-light);
}

.progress-step.completed:not(:last-child)::after {
    background: var(--accent-turquoise);
}

/* Contenido del wizard */
.wizard-content {
    padding: 32px 24px 24px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Headers de pasos */
.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.step-subtitle {
    font-size: 16px;
    color: var(--secondary-text);
    font-weight: 400;
}

/* Formulario */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-medium);
    margin-bottom: 12px;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: var(--background-light);
    color: var(--primary-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-turquoise);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
}

/* Lista de equipos */
.equipment-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.equipment-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.equipment-card:hover {
    border-color: var(--accent-turquoise);
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.1);
}

.equipment-card.selected {
    border-color: var(--accent-turquoise);
    background: var(--mint-light);
}

.equipment-card.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-turquoise);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.equipment-image {
    width: 48px;
    height: 48px;
    background: var(--primary-medium);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    flex-shrink: 0;
}

.equipment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equipment-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-size: 16px;
}

.equipment-price {
    color: var(--accent-turquoise);
    font-weight: 700;
    font-size: 18px;
}

/* Configuración de financiamiento */
.financing-config {
    background: var(--background-light);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.selected-equipment {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Slider de pago inicial */
.down-payment-container {
    text-align: center;
}

.amount-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-turquoise);
    margin-bottom: 16px;
}

.payment-slider {
    width: 100%;
    margin: 16px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    outline: none;
}

.payment-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-turquoise);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(56, 178, 172, 0.3);
}

.payment-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-turquoise);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(56, 178, 172, 0.3);
}

.percentage-display {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-text);
}

/* Grid de cuotas */
.installments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.installment-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.installment-btn:hover {
    border-color: #4f46e5;
}

.installment-btn.active {
    border-color: #4f46e5;
    background: #eef2ff;
}

.installment-months {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.installment-label {
    font-size: 14px;
    color: #6b7280;
}

/* Display de pago mensual */
.monthly-payment-display {
    background: var(--mint-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 24px;
}

.payment-label {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 4px;
}

.payment-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

.payment-frequency {
    font-size: 14px;
    color: var(--secondary-text);
}

/* Sugerencia de pago */
.payment-suggestion {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-suggestion i {
    color: #f59e0b;
    font-size: 20px;
}

/* Entrada de teléfono */
.phone-input-container {
    display: flex;
    gap: 12px;
}

.phone-input {
    flex: 1;
}

.otp-btn {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.otp-btn:hover {
    background: #4338ca;
}

.otp-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.otp-help {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Verificación de identidad */
.identity-verification {
    space-y: 24px;
}

.verification-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.verification-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.verification-icon {
    width: 48px;
    height: 48px;
    background: #4f46e5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.verification-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.verification-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* Upload de archivos */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.file-upload-area:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.file-upload-area input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #6b7280;
}

.upload-label i {
    font-size: 32px;
    color: #9ca3af;
}

.upload-text {
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

/* Cámara para selfie */
.camera-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-top: 16px;
}

.selfie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 250px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
}

.capture-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Preview de imágenes */
.image-preview {
    margin-top: 16px;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selfie-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

/* Evaluación de ingresos */
.job-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.job-type-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.job-type-btn:hover {
    border-color: #4f46e5;
}

.job-type-btn.active {
    border-color: #4f46e5;
    background: #eef2ff;
}

.job-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
}

.job-type-btn.active .job-icon {
    background: #4f46e5;
    color: white;
}

.job-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Rangos de ingresos */
.income-range-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.income-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.income-btn:hover {
    border-color: #4f46e5;
}

.income-btn.active {
    border-color: #4f46e5;
    background: #eef2ff;
}

.income-amount {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

.expenses-range-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.expense-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.expense-btn:hover {
    border-color: #4f46e5;
}

.expense-btn.active {
    border-color: #4f46e5;
    background: #eef2ff;
}

.expense-amount {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* Capacidad de pago */
.payment-capacity {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.capacity-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.capacity-icon {
    width: 32px;
    height: 32px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

/* Alternativas de pago */
.payment-alternative {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.alternative-icon {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}

.alternative-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.alternative-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.alternative-btn:hover {
    border-color: #f59e0b;
}

/* Consentimientos */
.consent-form {
    space-y: 20px;
}

.consent-item {
    margin-bottom: 20px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}

.consent-label:hover {
    border-color: #4f46e5;
}

.consent-checkbox {
    display: none;
}

.consent-checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.consent-checkbox:checked + .consent-checkmark {
    background: #4f46e5;
    border-color: #4f46e5;
}

.consent-checkbox:checked + .consent-checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.consent-text {
    flex: 1;
}

.consent-text strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
}

.consent-text small {
    color: #6b7280;
    font-size: 14px;
}

.terms-link {
    color: #4f46e5;
    text-decoration: underline;
}

/* Resultados */
.result-container {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: white;
}

.result-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

/* Resumen del préstamo */
.loan-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.highlight {
    background: #eef2ff;
    margin: 0 -16px;
    padding: 16px;
    border-radius: 12px;
    border: none;
}

.summary-label {
    font-weight: 500;
    color: #6b7280;
}

.summary-value {
    font-weight: 600;
    color: #1f2937;
}

.summary-item.highlight .summary-value {
    color: #4f46e5;
    font-size: 18px;
}

/* Firma digital */
.signature-section {
    margin-bottom: 32px;
}

.signature-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.signature-pad {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
}

.signature-canvas {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background: white;
    cursor: crosshair;
}

.signature-controls {
    text-align: center;
    margin-top: 12px;
}

/* Opciones de entrega */
.delivery-options h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.delivery-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.delivery-btn:hover {
    border-color: #4f46e5;
}

.delivery-btn.active {
    border-color: #4f46e5;
    background: #eef2ff;
}

.delivery-btn i {
    font-size: 24px;
    color: #4f46e5;
    margin-bottom: 8px;
}

.delivery-btn span {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.delivery-btn small {
    color: #6b7280;
    font-size: 12px;
}

/* Botones */
.button-container {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: #E55A2E;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
}

.btn-primary:disabled {
    background: var(--gray-medium);
    color: var(--gray-light);
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: var(--gray-medium);
    border: 2px solid var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--accent-turquoise);
    color: var(--accent-turquoise);
}

.btn-full {
    width: 100%;
}

/* Overlay de carga */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 280px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-message {
    font-weight: 600;
    color: #1f2937;
}

/* Responsive */
@media (max-width: 640px) {
    .wizard-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .wizard-header {
        border-radius: 0;
    }
    
    .equipment-grid {
        /* Ya es una lista vertical, no necesita cambios */
    }
    
    .installments-grid {
        grid-template-columns: 1fr;
    }
    
    .income-range-grid {
        grid-template-columns: 1fr;
    }
    
    .expenses-range-grid {
        grid-template-columns: 1fr;
    }
    
    .delivery-grid {
        grid-template-columns: 1fr;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Estados de validación */
.form-control.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-control.success {
    border-color: #10b981;
    background: #ecfdf5;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
}

/* Animaciones adicionales */
.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bounce-in {
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mejoras para accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states mejorados */
button:focus,
input:focus,
.equipment-card:focus,
.installment-btn:focus,
.job-type-btn:focus,
.income-btn:focus,
.expense-btn:focus,
.delivery-btn:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Estados hover para dispositivos táctiles */
@media (hover: hover) {
    .equipment-card:hover,
    .installment-btn:hover,
    .job-type-btn:hover,
    .income-btn:hover,
    .expense-btn:hover,
    .delivery-btn:hover {
        transform: translateY(-2px);
    }
}


/* Estilos para lista de equipos - Diseño como en la imagen */

/* Banner promocional */
.promotion-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Lista de equipos */
.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.equipment-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.equipment-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.equipment-item.selected {
    border-color: #3b82f6;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Badges */
.equipment-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.equipment-badge.popular {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.equipment-badge.new {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.equipment-badge.offer {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.equipment-badge.premium {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #6366f1;
}

/* Contenido del equipo */
.equipment-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.equipment-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.equipment-details {
    flex: 1;
    min-width: 0;
}

.equipment-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.equipment-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.initial-payment {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.biweekly-payment {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 0;
}

.full-price {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Botón Ver más */
.equipment-action {
    flex-shrink: 0;
}

.btn-see-more {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.btn-see-more:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-see-more:active {
    transform: translateY(0);
}

/* Estado seleccionado */
.equipment-item.selected .btn-see-more {
    background: #059669;
}

.equipment-item.selected .btn-see-more:hover {
    background: #047857;
}

/* Responsivo */
@media (max-width: 768px) {
    .equipment-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .equipment-image {
        width: 80px;
        height: 80px;
        align-self: center;
    }
    
    .equipment-name {
        font-size: 1.3rem;
    }
    
    .initial-payment {
        font-size: 1.1rem;
    }
    
    .biweekly-payment {
        font-size: 1rem;
    }
    
    .equipment-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }
    
    .btn-see-more {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .equipment-item {
        padding: 16px;
    }
    
    .equipment-content {
        gap: 12px;
    }
    
    .equipment-image {
        width: 70px;
        height: 70px;
    }
    
    .equipment-name {
        font-size: 1.2rem;
    }
}

/* Animaciones sutiles */
.equipment-item:hover .equipment-image img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.equipment-item:hover .initial-payment {
    color: #047857;
}

.equipment-item:hover .biweekly-payment {
    color: #2563eb;
}


/* =================================
   MEJORAS PARA DISEÑO MÓVIL DE PRODUCTOS
   ================================= */

/* Asegurar que las imágenes se vean bien */
.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cambiar de cover a contain para evitar cortes */
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px; /* Agregar padding para que no toque los bordes */
}

/* Mejorar el comportamiento hover */
.equipment-item:hover .equipment-image img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Asegurar que el badge se vea bien en móvil */
@media (max-width: 768px) {
    .equipment-badge {
        position: static; /* Cambiar de absolute a static */
        display: inline-block;
        margin-bottom: 12px;
        align-self: flex-start;
    }
    
    .equipment-content {
        position: relative; /* Para permitir posicionamiento del badge */
    }
}

/* Mejoras específicas para pantallas muy pequeñas */
@media (max-width: 480px) {
    .equipment-name {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .initial-payment {
        font-size: 1rem;
    }
    
    .biweekly-payment {
        font-size: 0.95rem;
    }
    
    .full-price {
        font-size: 0.85rem;
    }
    
    .btn-see-more {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* Estados de carga para productos */
.equipment-list.loading {
    opacity: 0.6;
    pointer-events: none;
}

.equipment-item.loading {
    opacity: 0;
    transform: translateY(20px);
}

/* Animación de aparición */
.equipment-item.fade-in {
    animation: equipmentFadeIn 0.4s ease forwards;
}

@keyframes equipmentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder para cuando no hay imagen */
.equipment-image .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 25%, #e2e8f0 50%, #f8fafc 75%);
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 24px;
}

@keyframes shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

/* Mejorar el mensaje de error */
.alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fed7aa;
    color: #92400e;
}

.alert h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.alert p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}

.alert .btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.alert .btn:hover {
    background: #b91c1c;
}

/* Asegurar que el contenedor de productos use flex */
.equipment-list {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}

/* Mejorar el estado seleccionado */
.equipment-item.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.equipment-item.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 12px 12px 0 0;
}

/* Mejorar la configuración de financiamiento */
#financing-config {
    margin-top: 24px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para el banner promocional */
@media (max-width: 480px) {
    .promotion-banner {
        padding: 12px;
        font-size: 1rem;
        margin-bottom: 20px;
    }
}