/* ============================================================
   MotosCR v2 — Sistema de diseño Apple-style
   Paleta: gris muy claro + acento rojo carrera + tipografía Inter
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg:          #FAFAFA;
    --bg-elev:    #FFFFFF;
    --bg-soft:    #F2F2F4;
    --text:       #1D1D1F;
    --text-soft:  #424245;
    --text-mute:  #86868B;
    --border:     #D2D2D7;
    --border-soft:#E5E5EA;

    --accent:     #E63946;
    --accent-h:   #C42836;
    --accent-soft:#FCE7E9;

    --success:    #22C55E;
    --warning:    #F59E0B;
    --danger:     #EF4444;
    --info:       #3B82F6;

    --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --radius-sm:  8px;
    --radius:     14px;
    --radius-lg:  22px;
    --radius-xl:  32px;

    --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
    --shadow:     0 4px 14px rgba(0,0,0,0.06);
    --shadow-lg:  0 14px 40px rgba(0,0,0,0.08);
    --shadow-xl:  0 24px 60px rgba(0,0,0,0.12);

    --max-w: 1280px;
    --gutter: 24px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; display: block; }

/* ============================================================
   RESET DE INPUTS / SELECTS / TEXTAREAS (cross-browser)
   ============================================================ */
input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bg-elev);
}

/* Caret personalizado para selects */
select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px !important;
    cursor: pointer;
}

/* Focus state global */
input:focus,
select:focus,
textarea:focus {
    outline: 0;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--accent);
}

.text-mute { color: var(--text-mute); }
.text-soft { color: var(--text-soft); }

/* ============================================================
   LAYOUT BASE
   ============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 140px 0; }

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-lg { padding: 96px 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.brand .accent { color: var(--accent); }

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: color .25s var(--ease);
    position: relative;
}

.nav a:hover { color: var(--text); }

.nav a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -22px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    margin: 5px auto;
    transition: transform .25s var(--ease);
}

@media (max-width: 880px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
    .nav.open {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-elev);
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: var(--shadow);
    }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s var(--ease);
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-h);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(230,57,70,0.28);
}

.btn-dark {
    background: var(--text);
    color: #fff;
}

.btn-dark:hover { background: #000; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-soft);
    border-color: var(--text);
}

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

.btn-block { width: 100%; }

.btn-wa {
    background: #25D366;
    color: #fff;
}
.btn-wa:hover { background: #1ebe5b; transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F4F6 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(230,57,70,0.08), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(29,29,31,0.05), transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.hero h1 {
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.hero .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-soft);
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 64px;
    max-width: 600px;
}

.hero-stats .stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.hero-stats .stat-lbl {
    font-size: 0.83rem;
    color: var(--text-mute);
    margin-top: 6px;
}

/* ============================================================
   CARDS DE MOTOS
   ============================================================ */
.moto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.moto-card {
    background: var(--bg-elev);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .35s var(--ease);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
}

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

.moto-card .img {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #F0F0F2 0%, #E5E5EA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.moto-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.moto-card:hover .img img { transform: scale(1.05); }

.moto-card .img-placeholder {
    color: var(--text-mute);
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    opacity: 0.3;
}

.moto-card .body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.moto-card .marca-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
}

.moto-card h3 {
    font-size: 1.25rem;
    margin: 6px 0 12px;
}

.moto-card .desc {
    font-size: 0.9rem;
    color: var(--text-mute);
    margin-bottom: 16px;
    flex: 1;
}

.moto-card .price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.moto-card .price-old {
    text-decoration: line-through;
    font-size: 0.95rem;
    color: var(--text-mute);
    font-weight: 400;
    margin-right: 8px;
}

.moto-card .meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-mute);
    margin: 12px 0 16px;
    flex-wrap: wrap;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px) {
    .form-grid.cols-2 { grid-template-columns: 1fr; }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label,
.field-lbl {
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea,
.input-base {
    padding: 14px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: all .2s var(--ease);
    width: 100%;
}

.field input[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field-help {
    font-size: 0.78rem;
    color: var(--text-mute);
}

.field-error {
    font-size: 0.82rem;
    color: var(--danger);
}

/* Checkbox */
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.check input[type="checkbox"] {
    margin: 3px 0 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.check span { font-size: 0.9rem; }

/* ============================================================
   ALERTS / MESSAGES
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    border: 1px solid transparent;
    margin-bottom: 16px;
}

.alert-success { background: #DCFCE7; border-color: #86EFAC; color: #065F46; }
.alert-danger  { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.alert-warning { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.alert-info    { background: #DBEAFE; border-color: #93C5FD; color: #1E3A8A; }

/* ============================================================
   SECCIONES PÚBLICAS GENÉRICAS
   ============================================================ */
.section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 48px;
    max-width: 700px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

.section-head h2 { margin: 0; }

/* ============================================================
   FOOTER (acceso admin discreto aquí)
   ============================================================ */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-soft);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mute);
    margin-bottom: 18px;
    font-weight: 600;
}

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

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    font-size: 0.92rem;
    color: var(--text-soft);
    transition: color .2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand .accent { color: var(--accent); }

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-mute);
    max-width: 360px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.84rem;
    color: var(--text-mute);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-mute);
    transition: color .2s;
}
.footer-legal-links a:hover { color: var(--text); }

.footer-admin-link {
    font-size: 0.78rem;
    color: var(--text-mute);
    opacity: 0.6;
    transition: opacity .2s;
}
.footer-admin-link:hover { opacity: 1; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    z-index: 60;
    transition: transform .3s var(--ease);
}

.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 580px;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    z-index: 100;
    transform: translateY(120%);
    transition: transform .5s var(--ease-out);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-mute);
    margin-bottom: 16px;
}

.cookie-banner .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner .actions .btn { flex: 1; min-width: 110px; }

/* ============================================================
   ANIMACIONES SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
    .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex.gap { gap: 16px; }
.flex.between { justify-content: space-between; align-items: center; }
.flex.center { justify-content: center; align-items: center; }
.flex.col { flex-direction: column; }
.flex.wrap { flex-wrap: wrap; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.tcenter { text-align: center; }

/* ============================================================
   PILLS / TAGS / BADGES
   ============================================================ */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg-soft);
    color: var(--text-soft);
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 500;
}

.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.success { background: #DCFCE7; color: #065F46; }
.pill.warning { background: #FEF3C7; color: #92400E; }
.pill.danger { background: #FEE2E2; color: #991B1B; }
.pill.info { background: #DBEAFE; color: #1E3A8A; }

/* ============================================================
   TABLAS
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    background: var(--bg-elev);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

table.data th,
table.data td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

table.data th {
    font-weight: 600;
    color: var(--text-soft);
    background: var(--bg-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(0,0,0,0.015); }

/* ============================================================
   PROMOS / MARCAS BAR
   ============================================================ */
.brands-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    padding: 32px 0;
}

.brand-logo {
    height: 48px;
    opacity: 0.65;
    filter: grayscale(100%);
    transition: all .3s;
}

.brand-logo:hover { opacity: 1; filter: grayscale(0); }

.brand-name-fallback {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-mute);
    transition: color .3s;
}

.brand-name-fallback:hover { color: var(--text); }

.promo-card {
    background: linear-gradient(135deg, var(--text) 0%, #2C2C2E 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.promo-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(230,57,70,0.25), transparent 70%);
    pointer-events: none;
}

.promo-card .pill { background: var(--accent); color: #fff; }
.promo-card h3 { color: #fff; }
.promo-card p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.promo-card .dates { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   TOOLBAR DE FILTROS — CORREGIDO
   ============================================================ */
.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    align-items: center;
}

.toolbar .filter {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: all .2s var(--ease);
}

.toolbar .filter:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.toolbar .filter input,
.toolbar .filter select {
    border: 0;
    background: transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    min-width: 180px;
    padding: 12px 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.toolbar .filter select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.toolbar .filter input::placeholder {
    color: var(--text-mute);
}

/* ============================================================
   PASOS (steps) form multi-paso
   ============================================================ */
.steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 140px;
}

.step .num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-mute);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all .3s;
    flex-shrink: 0;
}

.step.active .num,
.step.done .num {
    background: var(--accent);
    color: #fff;
}

.step .label {
    font-size: 0.85rem;
    color: var(--text-mute);
    font-weight: 500;
}

.step.active .label { color: var(--text); font-weight: 600; }

.step-pane { display: none; }
.step-pane.active { display: block; animation: fadeIn .4s var(--ease-out); }

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

/* ============================================================
   SLOTS DE TALLER
   ============================================================ */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.slot {
    padding: 12px;
    text-align: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all .2s;
}

.slot:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.slot.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================================
   GALERÍA DE FOTOS (detalle moto)
   ============================================================ */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gallery .main {
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    overflow: hidden;
}

.gallery .main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery .thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery .thumb {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border .2s;
}

.gallery .thumb.active { border-color: var(--accent); }

.gallery .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   COLORES VARIANTES
   ============================================================ */
.colors-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all .2s;
    position: relative;
}

.color-chip.active {
    border-color: var(--text);
    transform: scale(1.1);
}

.color-chip.active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
    font-weight: bold;
    font-size: 0.85rem;
}

/* ============================================================
   PANEL — usado en formularios y secciones
   ============================================================ */
.panel {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.panel h3 { margin-top: 0; }
/* ============================================================
   MotosCR v3 — Estilos adicionales
   Append al final de site.css
   ============================================================ */

/* ============================================================
   HERO CON CARRUSEL (Swiper)
   ============================================================ */
.hero-carousel {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
}

.hero-carousel .swiper {
    height: 88vh;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
}

.hero-slide-overlay .container {
    position: relative;
    z-index: 2;
}

.hero-slide-overlay .eyebrow { color: #fff; opacity: 0.85; }

.hero-slide-overlay h1 {
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.05;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 24px;
}

.hero-slide-overlay .lead {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 560px;
    margin-bottom: 32px;
}

/* Swiper navigation */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    backdrop-filter: blur(8px);
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after { font-size: 18px; }

.hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 10px;
    height: 10px;
}
.hero-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 32px;
    border-radius: 5px;
}

/* ============================================================
   TABS DE ESTILOS (catálogo público)
   ============================================================ */
.estilo-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: thin;
}

.estilo-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    cursor: pointer;
    transition: all .25s var(--ease);
    white-space: nowrap;
}

.estilo-tab:hover {
    border-color: var(--text);
    color: var(--text);
}

.estilo-tab.active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.estilo-tab .tab-count {
    margin-left: 4px;
    opacity: 0.6;
    font-size: 0.82em;
}

/* ============================================================
   ICONOS DE REDES SOCIALES (footer)
   ============================================================ */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s var(--ease);
}

.social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   MAPA LEAFLET (contacto)
   ============================================================ */
#map {
    border-radius: var(--radius-lg);
}

.leaflet-container {
    font-family: var(--font-body);
}

/* ============================================================
   PRECIO Y BADGE EN MOTO-CARD
   ============================================================ */
.moto-card .body > div:last-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
/* ============================================================
   MotosCR v3.1 — fixes
   APPEND al final del site.css existente (después del v3 anterior)
   ============================================================ */

/* FIX: íconos sociales en footer no deben ocupar todo el ancho */
.footer .social-icons {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 12px;
}

.footer .social-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    max-width: 36px;
    flex: 0 0 36px !important;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-soft);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all .25s var(--ease);
    padding: 0;
    text-decoration: none;
}

.footer .social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer .social-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
}

/* Wizard tab activo via hash en URL */
.wizard-pane:target {
    display: block;
}

/* Botón flotante WhatsApp tamaño correcto */
.wa-float {
    width: 56px !important;
    height: 56px !important;
}
.wa-float svg {
    width: 28px !important;
    height: 28px !important;
}
