/* ═══════════════════════════════════════════
   AutoExpert – Modern Design
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --blue-900: #0B1D3A;
    --blue-800: #0F2748;
    --blue-700: #12326C;
    --blue-600: #1E40AF;
    --blue-500: #3B82F6;
    --blue-400: #60A5FA;
    --blue-100: #DBEAFE;
    --blue-50: #EFF6FF;

    --orange-500: #F97316;
    --orange-600: #EA580C;

    --green-500: #10B981;
    --green-600: #059669;
    --green-400: #34D399;

    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --white: #fff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────
   GRADIENT TEXT
   ───────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--blue-400), var(--green-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 35%, var(--blue-700) 70%, #1a3f80 100%);
    color: #fff;
    text-align: center;
    padding: 60px 24px 90px;
    position: relative;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: white;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: floatShape 16s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 60%;
    opacity: 0.04;
    animation: floatShape 12s ease-in-out infinite;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

.hero-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
}

/* Logo */
.logo-img {
    height: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: fadeInDown 0.8s ease;
}

.beta-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    animation: fadeInDown 0.8s ease 0.1s both;
}

.hero h1 {
    font-size: clamp(30px, 5.5vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0 auto 38px;
    line-height: 1.75;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(249, 115, 22, 0.45);
}

.btn-cta svg {
    transition: transform 0.3s;
}

.btn-cta:hover svg {
    transform: translateY(3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────
   FEATURES
   ───────────────────────────────────────── */
.features {
    background: var(--gray-50);
    padding: 80px 24px 90px;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 800;
    color: var(--gray-900);
    max-width: 650px;
    margin: 0 auto 52px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px 28px 34px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--green-400));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    background: linear-gradient(135deg, var(--blue-100), #E0F2FE);
    transform: scale(1.08);
}

.feature-icon {
    font-size: 30px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-700);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.65;
}

/* ─────────────────────────────────────────
   CALCULATOR
   ───────────────────────────────────────── */
.calculator-section {
    background: var(--gray-50);
    padding: 10px 24px 80px;
}

.calculator-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.08);
}

.calculator-header {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    color: #fff;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-body {
    padding: 32px 36px 16px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    gap: 16px;
}

.form-row label {
    flex: 0 0 150px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: right;
    padding-right: 4px;
}

.form-row .req {
    color: #EF4444;
    font-weight: 700;
}

.form-row .input-wrap {
    flex: 1;
}

/* Inputs */
select,
input[type="number"] {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--transition);
}

/* Tom Select Overrides */
.ts-wrapper .ts-control {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    box-shadow: none;
    transition: all var(--transition);
}
.ts-wrapper.single .ts-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.ts-wrapper.focus .ts-control {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: var(--white);
}
.ts-wrapper.disabled .ts-control {
    opacity: 0.45;
    cursor: not-allowed;
}
.ts-dropdown {
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    margin-top: 4px;
    padding: 0;
    overflow: hidden;
}
.ts-dropdown .option {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--gray-800);
}
.ts-dropdown .option:hover,
.ts-dropdown .active {
    background-color: var(--blue-50);
    color: var(--blue-700);
}
.ts-control > input {
    font-size: 14px;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

select:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: var(--white);
}

select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Km slider */
.km-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.km-group input[type="number"] {
    width: 120px;
    flex-shrink: 0;
}

.km-group input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg, var(--blue-100), var(--gray-200));
    border-radius: 6px;
    outline: none;
}

.km-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.km-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.5);
}

/* Footer / button */
.calculator-footer {
    padding: 4px 36px 32px;
    text-align: center;
}

.required-note {
    color: #EF4444;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: left;
}

.btn-cotizar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 44px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}

.btn-cotizar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}

.btn-cotizar:active:not(:disabled) {
    transform: translateY(0);
}

.btn-cotizar:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.check-icon {
    flex-shrink: 0;
}

.btn-cotizar.loading .check-icon {
    display: none;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-cotizar.loading .spinner {
    display: inline-block;
}

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

/* ─────────────────────────────────────────
   RESULTS
   ───────────────────────────────────────── */
#results-area {
    max-width: 1000px;
    margin: 28px auto 0;
}

.result-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid;
    animation: slideUpFade 0.5s ease;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-offer {
    border-left-color: var(--green-500);
}

.result-alert {
    border-left-color: #EF4444;
    background: #FEF2F2;
    color: #991B1B;
    font-weight: 600;
}

.result-section h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--blue-700);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--gray-500);
    font-weight: 500;
}

.result-value {
    font-weight: 700;
    color: var(--gray-900);
}

.result-row.highlight {
    background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
    padding: 10px 12px;
    border-radius: 8px;
    margin: 4px -12px;
    border-bottom: none;
}

.result-row.highlight .result-label {
    font-weight: 700;
    color: var(--blue-700);
}

.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    margin-top: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.result-table th {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.result-table tbody tr:hover {
    background: var(--blue-50);
}

.result-table tbody tr:last-child td {
    border-bottom: none;
}

.offer-table th:first-child,
.offer-table td:first-child {
    background: var(--gray-50);
    font-weight: 700;
    color: var(--gray-700);
}

.offer-table {
    margin-top: 20px;
}

.offer-details {
    margin-bottom: 14px;
}

.alert-icon {
    margin-right: 6px;
}

/* Definition Cards */
.definition-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 24px;
}

.def-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.def-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.def-content h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--blue-800);
    margin-bottom: 6px;
}

.def-content p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.55;
    margin-bottom: 12px;
}

.def-content p:last-child {
    margin-bottom: 0;
}

/* Status Legend Cards */
.status-legend-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.legend-card {
    background: var(--gray-50);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.legend-header {
    padding: 12px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.legend-header.regular {
    background: #E74C3C;
}

.legend-header.normal {
    background: #F39C12;
}

.legend-header.excelente {
    background: #4A9F60;
}

.legend-body {
    padding: 20px 20px 16px;
}

.legend-stars {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.legend-stars.regular {
    color: #E74C3C;
}

.legend-stars.normal {
    color: #F39C12;
}

.legend-stars.excelente {
    color: #4A9F60;
}

.legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legend-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}

.legend-list li:last-child {
    margin-bottom: 0;
}

.legend-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gray-500);
}

/* PDF Download Button */
.pdf-download {
    margin-top: 22px;
    text-align: center;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(30, 64, 175, 0.4);
}

.btn-pdf svg {
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   ENDORSEMENT
   ───────────────────────────────────────── */
.endorsement {
    background: linear-gradient(135deg, var(--blue-50), #E0F2FE);
    padding: 64px 24px;
    text-align: center;
}

.endorsement-inner {
    max-width: 680px;
    margin: 0 auto;
}

.endorsement-badge {
    font-size: 38px;
    margin-bottom: 18px;
}

.endorsement p {
    font-size: 17px;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.8;
}

.endorsement strong {
    color: var(--blue-700);
    font-weight: 800;
    font-style: normal;
}

/* ─────────────────────────────────────────
   TRUST
   ───────────────────────────────────────── */
.trust {
    background: var(--white);
    padding: 80px 24px 90px;
    text-align: center;
}

.trust-inner {
    max-width: 700px;
    margin: 0 auto;
}

.trust h2 {
    font-size: clamp(24px, 4.5vw, 34px);
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 40px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.trust-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.trust-card:hover {
    background: var(--green-400);
    color: var(--white);
    border-color: var(--green-400);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.trust-card:hover .trust-check {
    background: var(--white);
    color: var(--green-600);
}

.trust-check {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--green-500);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--transition);
}

.trust-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    transition: color var(--transition);
}

.trust-card:hover span {
    color: var(--white);
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    text-align: center;
    padding: 32px 24px;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-logo {
    height: 36px;
    opacity: 0.7;
    filter: brightness(2);
}

.aeade-logo {
    height: 48px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 20px 60px;
        min-height: 0;
    }

    .logo-img {
        height: 60px;
        margin-bottom: 28px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .form-row label {
        text-align: left;
        flex: none;
    }

    .form-row .input-wrap {
        width: 100%;
    }

    .calculator-body,
    .calculator-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .km-group {
        flex-direction: column;
        align-items: stretch;
    }

    .km-group input[type="number"] {
        width: 100%;
    }

    .trust-card {
        padding: 14px 18px;
    }

    /* Mobile Transpose for Offer Table */
    .offer-table {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: var(--gray-200);
        border: 1px solid var(--gray-200);
        margin-top: 16px;
    }

    .offer-table thead,
    .offer-table tbody,
    .offer-table tr {
        display: contents;
    }

    .offer-table th,
    .offer-table td {
        border: none !important;
        padding: 10px 4px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Assign orders to transpose the matrix */
    /* Row 1: Precio, Venta, Toma */
    .offer-table th:nth-child(1) { order: 1; }
    .offer-table tbody tr:nth-child(1) td:nth-child(1) { order: 2; }
    .offer-table tbody tr:nth-child(2) td:nth-child(1) { order: 3; }

    /* Row 2: Excelente */
    .offer-table th:nth-child(4) { order: 4; }
    .offer-table tbody tr:nth-child(1) td:nth-child(4) { order: 5; }
    .offer-table tbody tr:nth-child(2) td:nth-child(4) { order: 6; }

    /* Row 3: Normal */
    .offer-table th:nth-child(3) { order: 7; }
    .offer-table tbody tr:nth-child(1) td:nth-child(3) { order: 8; }
    .offer-table tbody tr:nth-child(2) td:nth-child(3) { order: 9; }

    /* Row 4: Regular */
    .offer-table th:nth-child(2) { order: 10; }
    .offer-table tbody tr:nth-child(1) td:nth-child(2) { order: 11; }
    .offer-table tbody tr:nth-child(2) td:nth-child(2) { order: 12; }

    /* Swap styles so Venta/Toma look like headers */
    .offer-table th:nth-child(1),
    .offer-table tbody tr:nth-child(1) td:nth-child(1),
    .offer-table tbody tr:nth-child(2) td:nth-child(1) {
        background: linear-gradient(135deg, var(--blue-900), var(--blue-700)) !important;
        color: #fff !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Excelente/Normal/Regular become row labels */
    .offer-table th:nth-child(2),
    .offer-table th:nth-child(3),
    .offer-table th:nth-child(4) {
        background: var(--gray-50) !important;
        color: var(--gray-700) !important;
        font-weight: 700 !important;
        text-transform: none;
        letter-spacing: normal;
    }

    /* Price cells */
    .offer-table tbody td:not(:first-child) {
        background: var(--white);
    }

    .definition-cards,
    .status-legend-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}