/* ============================================================
   lapagestyle.css  v2.0
   Libro Azul – Cartrade
   ============================================================ */

/* ─── Variables ──────────────────────────────────────────── */
:root {
    --ed-bg:          #f5f7fb;
    --ed-surface:     #ffffff;
    --ed-surface-2:   #f0f4fa;
    --ed-text:        #0f172a;
    --ed-text-soft:   #475569;
    --ed-text-muted:  #64748b;
    --ed-line:        #dbe4f0;
    --ed-primary:     #0f172a;
    --ed-primary-2:   #1e293b;
    --ed-accent:      #2563eb;
    --ed-success:     #0f766e;
    --ed-warn:        #b45309;
    --ed-shadow:      0 20px 60px rgba(15,23,42,.08);
    --ed-shadow-soft: 0 12px 30px rgba(15,23,42,.06);
    --ed-radius-xl:   28px;
    --ed-radius-lg:   22px;
    --ed-radius-md:   16px;
    --ed-radius-sm:   12px;
    --ed-shell:       1200px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ed-text);
    background: var(--ed-bg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ─── Page wrapper ───────────────────────────────────────── */
.ed-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left,  rgba(37,99,235,.08),  transparent 28%),
        radial-gradient(circle at top right, rgba(15,118,110,.06), transparent 26%),
        var(--ed-bg);
}

/* ─── Shell ──────────────────────────────────────────────── */
.ed-shell {
    width: min(100% - 32px, var(--ed-shell));
    margin: 0 auto;
}

/* ─── Sections ───────────────────────────────────────────── */
.ed-section       { padding: 42px 0; }
.ed-section--tight{ padding: 22px 0 12px; }

/* ─── Kicker ─────────────────────────────────────────────── */
.ed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--ed-accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ed-kicker--light {
    background: rgba(255,255,255,.14);
    color: #dbeafe;
}

/* ─── Section head ───────────────────────────────────────── */
.ed-section-head            { max-width: 840px; margin-bottom: 28px; }
.ed-section-head h2         { margin: 14px 0; font-size: clamp(1.9rem,3vw,3rem); line-height: 1.1; letter-spacing: -.03em; }
.ed-section-head p          { margin: 0; font-size: 1.04rem; color: var(--ed-text-soft); }

/* ─── Intro ──────────────────────────────────────────────── */
.ed-intro { max-width: 860px; margin: 0; font-size: 1.12rem; color: var(--ed-text-soft); }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.ed-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 18px 0 0;
    font-size: .86rem;
    color: var(--ed-text-muted);
}
.ed-breadcrumb a { color: var(--ed-accent); }
.ed-breadcrumb a:hover { text-decoration: underline; }

/* ─── Hero ───────────────────────────────────────────────── */
.ed-hero { padding: 32px 0 28px; }

.ed-hero__grid {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr);
    gap: 24px;
    align-items: stretch;
}

.ed-hero__content {
    background: linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.78));
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: var(--ed-shadow);
    border-radius: 36px;
    padding: 34px;
    backdrop-filter: blur(10px);
}

.ed-hero__title {
    margin: 18px 0;
    font-size: clamp(2.2rem,5vw,4rem);
    line-height: .98;
    letter-spacing: -.05em;
    color: var(--ed-text);
}
.ed-hero__title span { display: block; color: var(--ed-primary-2); }

.ed-hero__lead {
    max-width: 760px;
    margin: 0;
    font-size: 1.08rem;
    color: var(--ed-text-soft);
}

.ed-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ed-hero__meta {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    margin-top: 28px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.ed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    font-size: .98rem;
    font-weight: 700;
    transition: .25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.ed-btn:hover { transform: translateY(-1px); }

.ed-btn--primary {
    background: var(--ed-primary);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15,23,42,.18);
}
.ed-btn--ghost {
    background: #fff;
    color: var(--ed-primary);
    border-color: var(--ed-line);
}
.ed-btn--light {
    background: #fff;
    color: var(--ed-primary);
}
.ed-btn--outline-light {
    background: transparent;
    border-color: rgba(255,255,255,.34);
    color: #fff;
}

/* ─── Meta cards ─────────────────────────────────────────── */
.ed-meta-card {
    padding: 18px;
    border-radius: 18px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
}
.ed-meta-card strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.ed-meta-card span   { display: block; font-size: .94rem; color: var(--ed-text-muted); }

/* ─── Panel card (hero aside) ────────────────────────────── */
.ed-hero__panel { min-width: 0; }
.ed-panel-card {
    height: 100%;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg,#0f172a,#1e293b);
    color: #fff;
    box-shadow: var(--ed-shadow);
    display: flex;
    flex-direction: column;
}
.ed-panel-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #93c5fd;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.ed-panel-card h2 { margin: 0 0 16px; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.03em; color: #6495ed; }
.ed-panel-cta {
    display: inline-block;
    margin-top: auto;
    padding-top: 20px;
    font-size: .92rem;
    font-weight: 700;
    color: #93c5fd;
    transition: opacity .2s;
}
.ed-panel-cta:hover { opacity: .78; }

.ed-bullet-list { margin: 0; padding: 0; list-style: none; }
.ed-bullet-list li {
    position: relative;
    padding-left: 18px;
    margin: 0 0 12px;
    color: rgba(255,255,255,.86);
}
.ed-bullet-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .72em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #60a5fa;
}

/* ─── Stats row ──────────────────────────────────────────── */
.ed-stats-row {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}
.ed-stat {
    padding: 20px;
    border-radius: var(--ed-radius-md);
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
}
.ed-stat strong { display: block; font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 6px; color: var(--ed-accent); }
.ed-stat span   { font-size: .88rem; color: var(--ed-text-muted); line-height: 1.4; }

/* ─── TOC ────────────────────────────────────────────────── */
.ed-toc {
    padding: 28px;
    border: 1px solid var(--ed-line);
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    box-shadow: var(--ed-shadow-soft);
    backdrop-filter: blur(8px);
}
.ed-toc__head            { margin-bottom: 18px; }
.ed-toc__head h2         { margin: 14px 0 0; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.03em; }
.ed-toc__grid            { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.ed-toc__item {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    color: var(--ed-text-soft);
    font-weight: 600;
    transition: .22s ease;
}
.ed-toc__item:hover { border-color: #bfdbfe; background: #f8fbff; color: var(--ed-accent); transform: translateY(-2px); }

/* ─── Card grid ──────────────────────────────────────────── */
.ed-card-grid    { display: grid; gap: 18px; }
.ed-card-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }

.ed-info-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
}
.ed-info-card__tag {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ed-info-card__tag--yes { color: var(--ed-success); }
.ed-info-card__tag--no  { color: #dc2626; }
.ed-info-card h3 { margin: 0 0 10px; font-size: 1.32rem; line-height: 1.15; letter-spacing: -.02em; }
.ed-info-card p  { margin: 0; color: var(--ed-text-soft); }

/* ─── Feature grid ───────────────────────────────────────── */
.ed-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.ed-feature-card {
    position: relative;
    padding: 24px;
    min-height: 220px;
    border-radius: 24px;
    background: linear-gradient(180deg,#ffffff,#f8fbff);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
}
.ed-feature-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--ed-accent);
    font-size: .95rem;
    font-weight: 800;
}
.ed-feature-card h3 { margin: 0 0 10px; font-size: 1.22rem; line-height: 1.18; letter-spacing: -.02em; }
.ed-feature-card p  { margin: 0; color: var(--ed-text-soft); }

/* ─── Highlight ──────────────────────────────────────────── */
.ed-highlight {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
    gap: 18px;
    align-items: stretch;
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(135deg,#0f172a,#1e3a8a 70%,#1d4ed8);
    color: #fff;
    box-shadow: var(--ed-shadow);
}
.ed-highlight h2 { margin: 14px 0 12px; font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1.06; letter-spacing: -.03em; color: #fff; }
.ed-highlight p  { margin: 0; color: rgba(255,255,255,.86); font-size: 1.04rem; }
.ed-highlight__side { display: grid; gap: 14px; }

.ed-mini-stat {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
}
.ed-mini-stat strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.ed-mini-stat span   { display: block; color: rgba(255,255,255,.78); }

/* ─── Steps ──────────────────────────────────────────────── */
.ed-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ed-step-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
}
.ed-step-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--ed-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}
.ed-step-card h3 { margin: 0 0 10px; font-size: 1.26rem; line-height: 1.15; letter-spacing: -.02em; }
.ed-step-card p  { margin: 0; color: var(--ed-text-soft); }

/* ─── Split ──────────────────────────────────────────────── */
.ed-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ed-box   { height: 100%; padding: 28px; border-radius: 28px; border: 1px solid var(--ed-line); box-shadow: var(--ed-shadow-soft); }
.ed-box--soft    { background: linear-gradient(180deg,#ffffff,#f8fbff); }
.ed-box--warning { background: linear-gradient(180deg,#fffaf5,#fff7ed); border-color: #fed7aa; }
.ed-box h2 { margin: 14px 0 16px; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; }

.ed-check-list { list-style: none; padding: 0; margin: 0; }
.ed-check-list li {
    position: relative;
    padding-left: 30px;
    margin: 0 0 14px;
    color: var(--ed-text-soft);
}
.ed-check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .2em;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #dcfce7;
    box-shadow: inset 0 0 0 5px #16a34a;
}
.ed-check-list--warning li::before { background: #ffedd5; box-shadow: inset 0 0 0 5px #f59e0b; }

/* ─── Compare table ──────────────────────────────────────── */
.ed-compare-table {
    border: 1px solid var(--ed-line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--ed-surface);
    box-shadow: var(--ed-shadow-soft);
}
.ed-compare-table__head,
.ed-compare-table__row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    align-items: center;
}
.ed-compare-table__head {
    background: var(--ed-surface-2);
    padding: 12px 20px;
    border-bottom: 1px solid var(--ed-line);
    font-size: .85rem;
    font-weight: 700;
    color: var(--ed-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ed-compare-table__head div:not(:first-child) { text-align: center; }

.ed-compare-table__row { padding: 12px 20px; border-bottom: 1px solid var(--ed-line); font-size: .95rem; }
.ed-compare-table__row:last-child { border-bottom: none; }
.ed-compare-table__row--alt { background: #fafbff; }
.ed-compare-table__row div:not(:first-child) { text-align: center; }
.ed-compare-table__row div:first-child { color: var(--ed-text-soft); }
.ed-compare-table__col--featured { color: var(--ed-accent); font-weight: 600; }

.ed-ct-yes     { color: #16a34a; font-weight: 700; }
.ed-ct-no      { color: #94a3b8; }
.ed-ct-neutral { color: var(--ed-text-muted); }

.ed-compare-note {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: .95rem;
    color: var(--ed-text-soft);
}

/* ─── CTA ────────────────────────────────────────────────── */
.ed-cta {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 32px;
    border-radius: 32px;
    background: linear-gradient(135deg,#0f172a,#111827 50%,#1e293b);
    color: #fff;
    box-shadow: var(--ed-shadow);
}
.ed-cta__content h2 { margin: 14px 0 10px; font-size: clamp(1.8rem,3vw,2.7rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; }
.ed-cta__content p  { margin: 0; max-width: 760px; color: rgba(255,255,255,.82); }
.ed-cta__actions    { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Discovery ──────────────────────────────────────────── */
.ed-discovery {
    padding: 32px;
    border-radius: 32px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
    backdrop-filter: blur(8px);
}
.ed-discovery__head         { max-width: 860px; margin-bottom: 26px; }
.ed-discovery__head h2      { margin: 14px 0 12px; font-size: clamp(1.8rem,3vw,2.7rem); line-height: 1.08; letter-spacing: -.03em; }
.ed-discovery__head p       { margin: 0; color: var(--ed-text-soft); font-size: 1.02rem; }
.ed-discovery__grid         { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }

.ed-discovery-card {
    padding: 24px;
    border-radius: 24px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
    min-width: 0;
}
.ed-discovery-card__top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ed-discovery-card__icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--ed-accent);
    font-size: .9rem;
    font-weight: 800;
}
.ed-discovery-card h3 { margin: 0 0 6px; font-size: 1.18rem; line-height: 1.15; letter-spacing: -.02em; }
.ed-discovery-card p  { margin: 0; color: var(--ed-text-muted); font-size: .95rem; }

/* ─── Link lists / Post list ─────────────────────────────── */
.ed-link-list,
.ed-post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.ed-link-list li a,
.ed-post-list li a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--ed-line);
    background: #fbfdff;
    transition: .22s ease;
}
.ed-post-list li a { display: block; }

.ed-link-list li a:hover,
.ed-post-list li a:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    background: #f8fbff;
    box-shadow: 0 12px 24px rgba(15,23,42,.06);
}
.ed-link-list li a span  { color: var(--ed-text); font-weight: 600; line-height: 1.35; }
.ed-link-list li a small { flex: 0 0 auto; color: var(--ed-text-muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.ed-post-list li a strong{ display: block; margin-bottom: 6px; color: var(--ed-text); font-size: 1rem; line-height: 1.35; }
.ed-post-list li a span  { display: block; color: var(--ed-text-muted); font-size: .92rem; line-height: 1.5; }

.ed-empty {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed var(--ed-line);
    color: var(--ed-text-muted);
    font-size: .94rem;
}

/* ─── Timeline ───────────────────────────────────────────── */
.ed-timeline { position: relative; display: grid; gap: 16px; }
.ed-timeline::before {
    content: "";
    position: absolute;
    left: 16px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg,#bfdbfe,#dbe4f0);
}
.ed-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    gap: 18px;
    align-items: flex-start;
}
.ed-timeline__dot {
    width: 32px; height: 32px;
    margin-top: 8px;
    border-radius: 50%;
    background: #fff;
    border: 8px solid #dbeafe;
    box-shadow: 0 0 0 1px #bfdbfe;
    position: relative;
    z-index: 1;
}
.ed-timeline__body {
    padding: 24px;
    border-radius: 22px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
}
.ed-timeline__body h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.15; }
.ed-timeline__body p  { margin: 0; color: var(--ed-text-soft); }

/* ─── FAQ Accordion ──────────────────────────────────────── */
.ed-faq { display: grid; gap: 12px; }

.ed-faq__item {
    border-radius: 18px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
    overflow: hidden;
}

.ed-faq__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--ed-text);
    text-align: left;
    line-height: 1.3;
    transition: background .18s;
}
.ed-faq__q:hover { background: #f8fbff; }

.ed-faq__icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #eff6ff;
    position: relative;
    transition: background .18s, transform .25s;
}
.ed-faq__icon::before,
.ed-faq__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--ed-accent);
    border-radius: 2px;
}
.ed-faq__icon::before { width: 10px; height: 2px; }
.ed-faq__icon::after  { width: 2px;  height: 10px; transition: transform .25s; }

.ed-faq__q[aria-expanded="true"] .ed-faq__icon { background: #dbeafe; }
.ed-faq__q[aria-expanded="true"] .ed-faq__icon::after { transform: scaleY(0); }

.ed-faq__a {
    padding: 0 24px 20px;
    border-top: 1px solid var(--ed-line);
}
.ed-faq__a p { margin: 16px 0 0; font-size: .98rem; color: var(--ed-text-soft); line-height: 1.65; }

/* ─── Seminuevos ─────────────────────────────────────────── */
.ed-market-cars {
    padding: 32px;
    border-radius: 32px;
    background: linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.82));
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
    backdrop-filter: blur(8px);
}
.ed-market-cars__head {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 24px;
}
.ed-market-cars__copy h2 { margin: 14px 0 12px; font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.08; letter-spacing: -.03em; }
.ed-market-cars__copy p  { margin: 0; color: var(--ed-text-soft); font-size: 1.02rem; }
.ed-market-cars__grid    { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ed-market-cars__empty   { padding: 18px 20px; border-radius: 18px; background: #f8fafc; border: 1px dashed var(--ed-line); }
.ed-market-cars__empty p { margin: 0; color: var(--ed-text-muted); font-size: .95rem; }

/* ─── Car card ───────────────────────────────────────────── */
.ed-car-card { min-width: 0; }
.ed-car-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    box-shadow: var(--ed-shadow-soft);
    transition: .24s ease;
}
.ed-car-card__link:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15,23,42,.10); border-color: #bfdbfe; }

.ed-car-card__media { position: relative; aspect-ratio: 16/10; background: #eef2f7; overflow: hidden; }
.ed-car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ed-car-card__link:hover .ed-car-card__media img { transform: scale(1.03); }

.ed-car-card__badge {
    position: absolute;
    top: 14px; left: 14px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,.84);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.ed-car-card__body    { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1 1 auto; }
.ed-car-card__top     { display: grid; gap: 10px; }
.ed-car-card__top h3  { margin: 0; font-size: 1.14rem; line-height: 1.2; letter-spacing: -.02em; }
.ed-car-card__price   { font-size: 1.28rem; font-weight: 800; line-height: 1; color: var(--ed-primary); }
.ed-car-card__version { margin: 0; color: var(--ed-text-soft); font-size: .94rem; line-height: 1.45; min-height: 2.7em; }

.ed-car-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-car-card__meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--ed-line);
    color: var(--ed-text-muted);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
}
.ed-car-card__footer { margin-top: auto; padding-top: 4px; }
.ed-car-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ed-accent);
    font-size: .92rem;
    font-weight: 700;
}
.ed-car-card__cta::after { content: "→"; font-size: 1rem; transition: transform .2s ease; }
.ed-car-card__link:hover .ed-car-card__cta::after { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width:1100px) {
    .ed-hero__grid,
    .ed-highlight,
    .ed-cta { grid-template-columns: 1fr; }

    .ed-feature-grid,
    .ed-toc__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

    .ed-discovery__grid  { grid-template-columns: 1fr; }
    .ed-stats-row        { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ed-market-cars__grid{ grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:900px) {
    .ed-card-grid--2,
    .ed-steps,
    .ed-split { grid-template-columns: 1fr; }

    .ed-feature-grid { grid-template-columns: 1fr 1fr; }

    .ed-hero__content,
    .ed-panel-card,
    .ed-highlight,
    .ed-cta,
    .ed-toc,
    .ed-discovery { padding: 24px; border-radius: 24px; }

    .ed-section { padding: 34px 0; }

    .ed-market-cars { padding: 24px; border-radius: 24px; }
    .ed-market-cars__head { grid-template-columns: 1fr; align-items: start; }

    /* FAQ: 2 cols → 1 col */
    .ed-faq { grid-template-columns: 1fr; }

    .ed-compare-table__head,
    .ed-compare-table__row { grid-template-columns: 1.4fr 1fr 1fr; font-size: .88rem; }
}

@media (max-width:640px) {
    .ed-shell { width: min(100% - 20px, var(--ed-shell)); }

    .ed-feature-grid,
    .ed-toc__grid { grid-template-columns: 1fr; }

    .ed-stats-row { grid-template-columns: 1fr 1fr; }

    .ed-hero__title        { font-size: 2.2rem; }
    .ed-section-head h2,
    .ed-highlight h2,
    .ed-cta__content h2,
    .ed-discovery__head h2 { font-size: 1.9rem; }

    .ed-btn { width: 100%; }
    .ed-hero__actions,
    .ed-cta__actions { flex-direction: column; }

    .ed-hero__meta    { grid-template-columns: 1fr; }

    .ed-meta-card,
    .ed-feature-card,
    .ed-step-card,
    .ed-info-card,
    .ed-faq__item,
    .ed-timeline__body,
    .ed-discovery-card { border-radius: 18px; }

    .ed-discovery-card { padding: 18px; }

    .ed-link-list li a { flex-direction: column; align-items: flex-start; }
    .ed-link-list li a small { white-space: normal; }

    .ed-market-cars__grid { grid-template-columns: 1fr; }
    .ed-market-cars       { padding: 20px; border-radius: 20px; }
    .ed-car-card__link    { border-radius: 18px; }
    .ed-car-card__body    { padding: 16px; }
    .ed-market-cars__copy h2 { font-size: 1.85rem; }

    /* Tabla comparativa: ocultar col Libro Azul en mobile muy pequeño */
    .ed-compare-table__head div:nth-child(2),
    .ed-compare-table__row  div:nth-child(2) { display: none; }
    .ed-compare-table__head,
    .ed-compare-table__row { grid-template-columns: 1.6fr 1fr; }

    .ed-compare__card--featured { transform: none; }
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}