:root {
    --primary: #275a37;
    --primary-hover: #1f472b;
    --dark: #1E2824;
    --accent: #A2E2A8;
    --accent-hover: #86ce8d;
    --bg-color: #F8FAF9;
    --white: #ffffff;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --text-primary: #3C4C43;
    --text-secondary: #64748b;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --container-width: 1100px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Header */
.app-header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
}

.header-divider {
    height: 30px;
    width: 1px;
    background-color: var(--gray-200);
}

.header-title-area {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-title i {
    color: var(--primary);
}

.header-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.header-right {
    margin-left: auto;
}

.header-law {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: normal;
}

/* Stepper */
.stepper-container {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
}

.stepper-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    position: relative;
    flex: 1;
}

.step-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: var(--white);
    transition: all 0.3s;
}

.stepper-item.active .step-counter {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 10px rgba(3, 166, 44, 0.4);
}

.stepper-item.completed .step-counter {
    border-color: var(--primary);
    background-color: var(--white);
    color: var(--primary);
}

.step-name {
    font-size: 0.9rem;
    font-weight: bold;
}

.stepper-item.active .step-name {
    color: var(--primary);
}

.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background-color: var(--gray-200);
    z-index: -1;
}

.stepper-item.completed:not(:last-child)::after {
    background-color: var(--primary);
}

/* Main layout */
.app-main {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.step-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-section.active-step {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: normal;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #2b3831;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-400);
    color: var(--dark);
}

.btn-outline:hover {
    background-color: var(--gray-200);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Hero Banner */
.hero-banner {
    display: flex;
    background-color: var(--primary-hover);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    color: var(--white);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.hero-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    width: max-content;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.hero-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.benefit-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.b-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.b-value {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Existing sections overrides */
.qualification-section {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-heading {
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.qual-card {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.qual-yes {
    background-color: #f7fff7;
    border-color: var(--accent);
}

.qual-no {
    background-color: #fffafa;
    border-color: #ffcccc;
}

.qual-yes .qual-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.qual-no .qual-title {
    color: #e63946;
    margin-bottom: 1rem;
}

.qual-card ul {
    list-style: none;
    font-size: 0.9rem;
}

.qual-card li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qual-yes .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

.qual-no .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e63946;
}

.car-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.car-card {
    border-radius: 8px;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.car-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    font-size: 0.9rem;
}

.plans-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.plan-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
    display: flex;
    flex-direction: column;
}

.premium-plan {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #f7fff7 0%, var(--white) 100%);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 99px;
}

.plan-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--gray-100);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.premium-icon {
    background-color: var(--accent);
    color: var(--dark);
}

.plan-title {
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 0.25rem;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-price {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.plan-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    gap: 0.75rem;
    color: var(--text-primary);
}

.plan-features i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 0.85rem;
}

/* Form structure */
.form-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
}

.subsection-title {
    color: var(--primary);
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group.half {
    flex: 1;
}

.form-group.full {
    width: 100%;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-group label .required {
    color: #e63946;
}

.form-group input,
.form-group select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 166, 44, 0.2);
}

/* Accordeon */
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--gray-100);
    padding: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark);
}

.accordion-content {
    padding: 0 1.5rem;
    display: none;
    background-color: var(--white);
}

.accordion-content.open {
    display: block;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
    position: relative;
}

.checkbox-container.checked {
    background-color: var(--accent);
    border-color: var(--primary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    margin-right: 12px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container.checked .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-container.checked .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 0.8rem;
    font-family: sans-serif;
}

/* Alerts and info blocks */
.info-alert {
    background-color: #f8fafc;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-alert h4 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.info-alert p {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.info-alert hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1rem 0;
}

.danger {
    color: #e63946;
}

.success {
    color: var(--primary);
}

.info-footer {
    background-color: var(--accent);
    color: var(--dark);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1.5rem;
}

/* Upload area */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: var(--primary);
}

.upload-content i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.upload-content label {
    display: block;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.upload-content span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ai-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.ai-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stat-box {
    background-color: var(--gray-100);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.stat-box span {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.3rem;
}

.stat-box strong {
    color: var(--dark);
    font-size: 1.1rem;
}

/* Calculation blocks */
.total-saving-box {
    background-color: var(--accent);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.total-saving-box span {
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.total-saving-box strong {
    font-size: 2.5rem;
    color: var(--dark);
    display: block;
    margin-bottom: 1rem;
}

.total-saving-box p {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.calculo-desc {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.vehicle-calc-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.vehicle-calc-card h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.badge {
    background-color: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.calc-side {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.calc-side.electric {
    background-color: #f0fdf4;
    border: 1px solid var(--accent);
}

.calc-title {
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.calc-result {
    text-align: right;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.view-steps-link {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-family: 'Inter', sans-serif;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.results-table th {
    background-color: var(--gray-100);
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-family: 'Arial Rounded MT Bold';
}

.results-table tfoot td {
    background-color: var(--gray-100);
    border-top: 2px solid var(--dark);
}

.badge-success {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Actions row */
.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 1.5rem;
}

/* Payment summary */
.payment-box {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.payment-plan-name {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.payment-amount {
    font-size: 3rem;
    color: var(--dark);
    font-weight: normal;
    margin-bottom: 1rem;
}

.payment-box hr {
    border: none;
    border-top: 1px solid var(--gray-300);
    margin: 1rem 0;
}

.payment-desc {
    color: var(--gray-500);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

/* Footer */
.app-footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 2rem 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
}

/* FAB */
.fab-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 99px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    z-index: 100;
}

.fab-contact:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* Timeline and Comparative Table Components */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 1.25rem;
    border: 4px solid var(--bg-color);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.timeline-content h4 {
    color: var(--dark);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--gray-600);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline-content small {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(39, 90, 55, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 1rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
        border-width: 2px;
    }

    .hero-banner {
        flex-direction: column;
    }

    .hero-image {
        min-height: 200px;
    }

    .plans-section,
    .qual-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .car-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .stepper-wrapper {
        padding: 0 0.5rem;
    }

    .step-name {
        display: none;
    }
}