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

:root {
    --brand:    #0f766e;
    --brand-2:  #f59e0b;
    --brand-light: #ecfdf9;
    --brand-border: #99e6d8;
    --ink:      #0d1117;
    --ink-2:    #1f2937;
    --muted:    #6b7280;
    --muted-2:  #9ca3af;
    --line:     #e5e7eb;
    --line-2:   #f3f4f6;
    --soft:     #f8fafc;
    --paper:    #ffffff;
    --danger:   #dc2626;
    --success:  #047857;
    --wa-green: #16a34a;

    --shadow-xs:  0 1px 3px rgba(17,24,39,.06), 0 1px 2px rgba(17,24,39,.04);
    --shadow-sm:  0 4px 12px rgba(17,24,39,.08), 0 2px 6px rgba(17,24,39,.05);
    --shadow-md:  0 8px 24px rgba(17,24,39,.10), 0 4px 10px rgba(17,24,39,.06);
    --shadow-lg:  0 20px 48px rgba(17,24,39,.13), 0 8px 18px rgba(17,24,39,.07);

    --radius:   10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f0f4f4;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
svg { flex-shrink: 0; }

/* ─────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .72rem;
    margin-bottom: 4px;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px clamp(16px, 5vw, 64px);
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid rgba(229,231,235,.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -.01em;
    font-size: 1.05rem;
    color: var(--ink);
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.site-nav a { padding: 8px 12px; border-radius: var(--radius); transition: background .15s; }
.site-nav a:not(.nav-cta):hover { background: var(--line-2); }
.nav-cta {
    background: var(--ink);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: background .15s, box-shadow .15s;
}
.nav-cta:hover { background: var(--ink-2); box-shadow: var(--shadow-sm); }
main { min-height: 70vh; }

/* ─────────────────────────────────────────
   SOLD BANNER
───────────────────────────────────────── */
.sold-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    text-align: center;
    background: var(--ink);
    color: white;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .01em;
}

/* ─────────────────────────────────────────
   VEHICLE HERO SECTION
───────────────────────────────────────── */
.catalog-hero, .form-hero, .vehicle-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto;
}
.catalog-hero, .form-hero {
    display: grid;
    gap: 20px;
    align-items: end;
    padding: clamp(26px, 6vw, 56px) 0 10px;
}
.catalog-hero h1, .form-hero h1 {
    max-width: 800px;
    margin: 8px 0 12px;
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.03em;
}
.catalog-hero p, .form-hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
}

.vehicle-hero {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

/* Gallery when embedded inside vehicle-hero */
.gallery-inline {
    width: 100%;
    margin: 0;
}

/* HERO MEDIA */
.hero-media {
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #d4dfe0;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform .5s ease;
}
.hero-media:hover img { transform: scale(1.02); }

/* HERO SUMMARY CARD */
.hero-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}
.hero-summary h1 {
    margin: 6px 0 2px;
    font-size: clamp(1.9rem, 6vw, 3.6rem);
    line-height: 1.0;
    letter-spacing: -.03em;
    font-weight: 900;
}
.version-line {
    margin: 6px 0 14px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}
.price-line {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--brand);
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

/* QUICK SPECS */
.quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.quick-specs span {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    gap: 0 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 500;
    transition: border-color .2s, box-shadow .2s;
}
.quick-specs span:hover {
    border-color: var(--brand-border);
    box-shadow: var(--shadow-xs);
}
.qs-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
}
.qs-icon svg { width: 16px; height: 16px; }
.quick-specs b {
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ─────────────────────────────────────────
   WHATSAPP BUTTONS
───────────────────────────────────────── */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-weight: 700;
    font-size: .96rem;
    letter-spacing: .01em;
    box-shadow: 0 8px 20px rgba(22,163,74,.30);
    transition: transform .15s, box-shadow .15s;
    width: 100%;
    margin-top: 4px;
}
.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(22,163,74,.38);
}
.whatsapp-button:active { transform: translateY(0); }

.mobile-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    background: linear-gradient(145deg, #25d366, #16a34a);
    color: white;
    box-shadow: 0 6px 24px rgba(22,163,74,.45), 0 2px 8px rgba(22,163,74,.25);
    transition: transform .18s ease, box-shadow .18s ease;
}
.mobile-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(22,163,74,.52), 0 4px 12px rgba(22,163,74,.28);
}
.mobile-whatsapp:active { transform: scale(.94); }

/* ─────────────────────────────────────────
   GALLERY SECTION
───────────────────────────────────────── */
.gallery-section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
}
.thumb-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(110px, 150px);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.thumb-row::-webkit-scrollbar { height: 4px; }
.thumb-row::-webkit-scrollbar-track { background: transparent; }
.thumb-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.thumb-button {
    position: relative;
    height: 82px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--line-2);
    scroll-snap-align: start;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    flex-shrink: 0;
}
.thumb-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.thumb-button.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}
.thumb-button img { width: 100%; height: 100%; object-fit: cover; }
.thumb-num {
    position: absolute;
    bottom: 4px;
    right: 5px;
    background: rgba(0,0,0,.52);
    color: white;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.2;
}
.gallery-counter {
    margin-top: 6px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    text-align: right;
    padding-right: 2px;
}

/* ─────────────────────────────────────────
   CONTENT SECTIONS
───────────────────────────────────────── */
.content-section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: clamp(22px, 4vw, 36px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.content-section h2 {
    margin: 4px 0 18px;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    font-weight: 800;
}

/* SECTION HEAD with icon */
.section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.section-head > div { flex: 1; }
.section-head h2 { margin: 4px 0 0; }
.section-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand);
    margin-top: 2px;
}
.section-icon svg { width: 20px; height: 20px; }

/* ─────────────────────────────────────────
   HIGHLIGHTS
───────────────────────────────────────── */
.highlights-section { }
.highlight-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.highlight-grid span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--brand-light);
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    color: #065f46;
    font-size: .85rem;
    font-weight: 600;
}
.highlight-grid span svg { color: var(--brand); }

/* ─────────────────────────────────────────
   SPLIT CONTENT (Descripción + Contacto)
───────────────────────────────────────── */
.split-content { display: grid; gap: 20px; }
.lead-copy {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
.seller-note {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.seller-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand);
    margin-bottom: 4px;
}
.seller-note strong { font-size: .95rem; font-weight: 800; color: var(--ink); }
.seller-note p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* ─────────────────────────────────────────
   EQUIPMENT GRID
───────────────────────────────────────── */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.equipment-grid article {
    padding: 18px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.equipment-grid article:hover {
    border-color: var(--brand-border);
    box-shadow: var(--shadow-xs);
}
.equipment-grid h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: .92rem;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.eq-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--brand-light);
    color: var(--brand);
    flex-shrink: 0;
}
.eq-icon svg { width: 14px; height: 14px; }
.equipment-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.equipment-grid li {
    font-size: .88rem;
    color: var(--ink-2);
    padding-left: 14px;
    position: relative;
    line-height: 1.4;
}
.equipment-grid li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--brand);
}
.equipment-grid p { color: var(--muted-2); margin: 0; font-size: .86rem; }

/* ─────────────────────────────────────────
   SPEC LIST
───────────────────────────────────────── */
.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px;
}
.spec-list div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border-radius: var(--radius);
    transition: background .15s;
}
.spec-list div:hover { background: var(--soft); }
.spec-list span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.spec-list strong {
    color: var(--ink);
    font-size: .96rem;
    font-weight: 700;
}

/* ─────────────────────────────────────────
   CATALOG PAGE
───────────────────────────────────────── */
.filter-bar {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 24px;
    display: grid;
    gap: 10px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
input, select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    outline: none;
    font-size: .9rem;
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 118px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.vehicle-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.vehicle-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #d4dfe0;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.vehicle-card:hover .card-image img { transform: scale(1.05); }
.featured-pill, .sold-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--brand-2);
    color: #111827;
    font-weight: 800;
    font-size: .74rem;
    letter-spacing: .02em;
}
.sold-pill { left: auto; right: 10px; background: rgba(0,0,0,.75); color: white; backdrop-filter: blur(4px); }
.card-body { padding: 16px 18px 18px; }
.card-body h2 { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.card-body p { margin: 3px 0 8px; color: var(--muted); font-size: .86rem; }
.card-body strong { font-size: 1.18rem; font-weight: 900; color: var(--brand); }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}

/* ─────────────────────────────────────────
   BUTTON SHARED STYLES
───────────────────────────────────────── */
.hero-button, .primary-submit, .filter-bar button, .quick-actions button, .small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: white;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 4px 14px rgba(15,118,110,.20);
    transition: background .15s, box-shadow .15s, transform .15s;
}
.hero-button:hover, .primary-submit:hover { background: #0d6b64; box-shadow: 0 6px 18px rgba(15,118,110,.28); transform: translateY(-1px); }
.hero-button { width: max-content; }

/* ─────────────────────────────────────────
   FORM PANEL
───────────────────────────────────────── */
.form-hero-panel {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.form-hero-panel span { color: var(--muted); }

/* ─────────────────────────────────────────
   VEHICLE FORM
───────────────────────────────────────── */
.vehicle-form {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto 56px;
}
.progress-shell {
    position: sticky;
    top: 62px;
    z-index: 15;
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}
.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transition: width .25s ease;
}
.form-section, .admin-edit-section {
    margin-bottom: 14px;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.form-section h2, .admin-edit-section h2 { margin: 0 0 16px; font-size: 1.15rem; }
.form-grid { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 650; font-size: .9rem; }
.help { color: var(--muted); margin-top: -4px; font-size: .82rem; }
.field-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}
.field-block > span { width: 100%; font-weight: 700; }
.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    font-weight: 600;
    font-size: .9rem;
}
.choice input, .check-card input { width: auto; min-height: auto; }
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.check-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    font-weight: 600;
    font-size: .88rem;
    transition: border-color .15s, background .15s;
}
.check-card:has(input:checked) { border-color: var(--brand-border); background: var(--brand-light); }
.upload-zone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 160px;
    padding: 24px;
    border: 2px dashed #9ca3af;
    border-radius: var(--radius);
    background: var(--soft);
    text-align: center;
    transition: border-color .2s, background .2s;
}
.upload-zone.dragover { border-color: var(--brand); background: var(--brand-light); }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-counter { margin-top: 10px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.preview-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--line-2);
}
.preview-card img { width: 100%; height: 100%; object-fit: cover; }
.preview-card button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(17,24,39,.78);
    color: white;
    font-size: .78rem;
    display: grid;
    place-items: center;
}
.primary-submit { width: 100%; min-height: 52px; margin-top: 8px; font-size: 1rem; }
.alert {
    width: min(980px, calc(100% - 32px));
    margin: 14px auto;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
}
.alert p { margin: 0 0 4px; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #bbf7d0; }
.empty-state {
    grid-column: 1 / -1;
    padding: 40px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--muted);
}
.page-empty { width: min(780px, calc(100% - 32px)); margin: 64px auto; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: white;
    margin-top: 40px;
}

/* Brand-color accent line — reads --brand from admin's dynamic CSS variable */
.footer-brand-line {
    height: 3px;
    background: var(--brand);
    width: 100%;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px clamp(20px, 6vw, 80px) 36px;
    gap: 32px;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 640px;
}

.footer-title {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    font-weight: 800;
    color: white;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.footer-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-desc {
    margin: 0;
    color: #9ca3af;
    font-size: clamp(.88rem, 2.5vw, 1rem);
    line-height: 1.6;
    max-width: 420px;
    text-align: left;
}

/* WhatsApp circle icon button */
.footer-wa {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: white;
    border: 1px solid rgba(255,255,255,.14);
    transition: background .2s, transform .18s;
}
.footer-wa:hover {
    background: #16a34a;
    border-color: #16a34a;
    transform: scale(1.08);
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    width: 100%;
    justify-content: center;
}

.footer-copy {
    color: #6b7280;
    font-size: .82rem;
}

.footer-admin-link {
    color: #4b5563;
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.footer-admin-link:hover {
    color: #9ca3af;
    background: rgba(255,255,255,.06);
}

/* ─────────────────────────────────────────
   AUTH / INSTALL
───────────────────────────────────────── */
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f4f7f7, #e2f0ef);
}
.login-card {
    width: min(440px, 100%);
    display: grid;
    gap: 14px;
    padding: 28px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.login-card h1 { margin: 0; font-size: 1.6rem; }
.install-card { width: min(620px, 100%); }

/* ─────────────────────────────────────────
   ADMIN PANEL
───────────────────────────────────────── */
.admin-body { display: grid; min-height: 100vh; background: #f3f4f6; }
.admin-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    background: var(--ink);
    color: white;
}
.admin-logo { flex: 0 0 auto; font-weight: 900; padding: 10px; font-size: .95rem; }
.admin-sidebar nav { display: flex; gap: 4px; }
.admin-sidebar a { white-space: nowrap; padding: 9px 12px; border-radius: var(--radius); color: #d1d5db; font-size: .88rem; font-weight: 600; }
.admin-sidebar a:hover { background: rgba(255,255,255,.10); color: white; }
.admin-main { padding: 18px; }
.admin-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.admin-title h1 { margin: 4px 0 0; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.metric-grid article, .admin-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.metric-grid article { display: grid; gap: 6px; padding: 18px; }
.metric-grid span { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.metric-grid strong { font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; }
.admin-panel { padding: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 1rem; }
.small-button { min-height: 36px; padding: 7px 12px; font-size: .86rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
.admin-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.table-thumb { width: 68px; height: 52px; object-fit: cover; border-radius: var(--radius); }
.status-badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-weight: 800; font-size: .76rem; }
.table-actions { display: flex; gap: 10px; font-weight: 700; color: var(--brand); font-size: .88rem; }
.admin-search, .quick-actions { display: grid; gap: 10px; margin-bottom: 16px; }
.admin-form { display: grid; gap: 14px; }
.switch-line { align-self: end; min-height: 44px; }
.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.admin-image-card {
    display: grid;
    gap: 6px;
    padding: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.admin-image-card.dragging { opacity: .5; }
.admin-image-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.danger-zone { width: 100%; margin: 16px 0 40px; }
.danger-zone button {
    width: 100%;
    min-height: 44px;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    background: #fef2f2;
    color: var(--danger);
    font-weight: 800;
    font-size: .9rem;
}

/* ─────────────────────────────────────────
   RESPONSIVE — DESKTOP
───────────────────────────────────────── */
@media (min-width: 720px) {
    .catalog-hero, .form-hero { grid-template-columns: 1fr auto; }
    .filter-bar { grid-template-columns: 1.4fr repeat(4, 1fr) auto; }
    /* Desktop: vehicle-hero is a 2-column grid */
    .vehicle-hero { 
        display: grid; 
        grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr); 
        align-items: start; 
    }
    .hero-media { grid-column: 1 / 2; grid-row: 1 / 2; }
    .hero-summary { grid-column: 2 / 3; grid-row: 1 / 3; }
    .gallery-inline { grid-column: 1 / 2; grid-row: 2 / 3; }
    .hero-media, .hero-media img { min-height: 560px; }
    .split-content { grid-template-columns: 1fr 280px; }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .wide { grid-column: 1 / -1; }
    .admin-search, .quick-actions { grid-template-columns: 1fr 220px auto; }
    /* Hide circular FAB on desktop */
    .mobile-whatsapp { display: none; }
    .gallery-section { margin-top: 0; }
}

@media (min-width: 980px) {
    .admin-body { grid-template-columns: 240px 1fr; }
    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        display: block;
        overflow: visible;
        padding: 20px;
    }
    .admin-sidebar nav { display: grid; margin-top: 18px; }
    .admin-main { padding: 28px; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────── */
@media (max-width: 719px) {
    /* Mobile: hero stack as flex-column with gallery between image and info */
    .vehicle-hero {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .hero-media { order: 1; min-height: 240px; border-radius: var(--radius); }
    .gallery-inline { order: 2; }
    .hero-summary { order: 3; padding: 20px; border-radius: var(--radius); }
    .hero-media img { min-height: 240px; }
    .hero-summary h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .price-line { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .quick-specs { grid-template-columns: 1fr 1fr; gap: 8px; }
    .gallery-section { margin-top: 0; }
    .thumb-button { height: 72px; }
    .content-section { padding: 18px; border-radius: var(--radius); }
    .section-icon { width: 38px; height: 38px; border-radius: 10px; }
    .section-icon svg { width: 17px; height: 17px; }
    .equipment-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .equipment-grid article { padding: 14px; }
    .spec-list { grid-template-columns: 1fr 1fr; }
    .site-footer { padding-bottom: 32px; }
}

@media (max-width: 480px) {
    .site-header { align-items: center; padding: 10px 16px; }
    .brand span { font-size: .95rem; }
    .site-nav { font-size: .82rem; gap: 4px; }
    .site-nav a { padding: 6px 8px; }
    .hero-summary h1 { font-size: clamp(1.5rem, 9vw, 2rem); }
    .quick-specs { grid-template-columns: 1fr; }
    .equipment-grid { grid-template-columns: 1fr; }
    .spec-list { grid-template-columns: 1fr; }
    .hero-button { width: 100%; justify-content: center; }
    .highlight-grid span { font-size: .82rem; padding: 7px 11px; }
}
