/* assets/css/calculator-style-improved.css */
/* Importar fuentes de Google Fonts para mejor tipografía */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables CSS para consistencia */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-active: #1d4ed8;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.calculator-container {
    max-width: 800px;
    width: 100%;
    margin: 30px auto;
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.calculator-header .back-to-home-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.calculator-header .back-to-home-btn:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.calculator-header .back-to-home-btn i {
    margin-right: 8px;
    font-size: 14px;
}

.calculator-container h1 {
    font-family: "Poppins", sans-serif;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.calculator-container > .calculator-header > p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5;
}

.calc-step {
    display: none;
    padding: 30px 0;
    margin-bottom: 20px;
}

.calc-step.active-step {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

.calc-step h2 {
    font-family: "Poppins", sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    text-align: left;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 400;
    line-height: 1.6;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.options-group label {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.options-group label:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.options-group label:has(input:checked) {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--primary-color);
    color: var(--text-primary);
    font-weight: 500;
}

.options-group input[type="radio"],
.options-group input[type="checkbox"] {
    margin-right: 16px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.options-group label a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.options-group label a:hover {
    color: var(--primary-hover);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    gap: 16px;
}

/* Estilos mejorados para botones */
.button, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 0;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-width: 120px;
    height: 48px;
    letter-spacing: -0.01em;
}

.button.primary, button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.button.primary:hover, button.primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-active) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.button.primary:active, button.primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.button:not(.primary), button:not(.primary) {
    background: var(--card-background);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.button:not(.primary):hover, button:not(.primary):hover {
    background: #f8fafc;
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#prev-step:disabled {
    background: #f3f4f6;
    color: var(--text-muted);
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.price-preview {
    text-align: right;
    margin-top: 30px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success-color);
    padding: 16px 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: var(--radius-md);
    border: 1px solid #86efac;
}

.price-preview strong {
    font-size: 1.5rem;
    font-weight: 700;
}

#summary-step h2 {
    color: var(--success-color);
    border-bottom-color: var(--success-color);
}

#summary-details {
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

#summary-details div {
    margin-bottom: 20px;
}

#summary-details div:last-child {
    margin-bottom: 0;
}

#summary-details div strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

#summary-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

#summary-details li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

#summary-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 600;
}

.final-price {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    text-align: center;
    color: var(--success-color);
    margin-top: 30px;
    margin-bottom: 16px;
    font-weight: 700;
    padding: 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--success-color);
}

.final-price strong {
    font-size: 2.5rem;
    display: block;
    margin-top: 8px;
}

.disclaimer {
    font-size: 0.875rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    line-height: 1.6;
}

#contact-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 24px auto 0;
    font-size: 1.125rem;
    font-weight: 600;
    height: 56px;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

#contact-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Responsive design mejorado */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .calculator-container {
        margin: 20px auto;
        padding: 24px;
    }
    
    .calculator-container h1 {
        font-size: 2rem;
    }
    
    .calc-step h2 {
        font-size: 1.5rem;
    }
    
    .navigation-buttons {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
    
    .price-preview {
        text-align: center;
        margin-top: 24px;
        font-size: 1.125rem;
    }
    
    .final-price {
        font-size: 1.75rem;
    }
    
    .final-price strong {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 20px;
    }
    
    .options-group label {
        font-size: 0.9rem;
        padding: 16px;
    }
    
    .options-group input[type="radio"],
    .options-group input[type="checkbox"] {
        margin-right: 12px;
        width: 16px;
        height: 16px;
    }
    
    .calculator-container h1 {
        font-size: 1.75rem;
    }
    
    .calc-step h2 {
        font-size: 1.375rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .calc-step.active-step {
        animation: none;
    }
    
    .button, button {
        transition: none;
    }
    
    .options-group label {
        transition: none;
    }
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0f172a;
        --card-background: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --border-hover: #475569;
    }
    
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .options-group label:hover {
        background: #334155;
    }
    
    .options-group label:has(input:checked) {
        background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
        color: white;
    }
}

