/* ==========================================================================
   Moto Partes y Repuestos Atenas — estilos principales (diseño aprobado: demo/diseno-aprobado.html)
   Taller de barrio con orden de catálogo: franja de asfalto arriba, fichas de repuesto
   con su código y medida, secciones por mostrador (repuestos, taller, lavado).
   Colores: cambiar solo las variables de :root (y las del modo oscuro).
   ========================================================================== */

:root {
    /* Colores del logo de Moto Partes y Repuestos Atenas: amarillo, azul marino y rojo del número */
    --bg: #f3f3f6;
    --surface: #ffffff;
    --ink: #17182a;
    --muted: #5b5e72;
    --line: #d9dae3;
    --accent: #f2c318;        /* amarillo: rellenos (botones, franjas, etiquetas) */
    --accent-ink: #17182a;    /* texto sobre el amarillo */
    --accent-text: #2b2d5c;   /* el amarillo no se lee como texto sobre blanco: azul marino */
    --steel: #3b4b9a;         /* azul del casco para datos técnicos (códigos, tiempos) */
    --rojo: #d9233c;          /* rojo del número de la moto */
    --pedido: #9a6700;
    --asphalt: #1c1d33;       /* franjas oscuras en azul marino (iguales en ambos temas) */
    --asphalt-ink: #f3f3f6;
    --asphalt-muted: #a9abc2;
    --asphalt-line: #2c2e4d;
    --vehiculo: #2b2d5c;
    --wa: #1f9d55;
    --chip: #ebecf2;
    --ok: #1f9d55;
    --error: #b3261e;
    --f-display: "Saira Condensed", "Arial Narrow", Impact, sans-serif;
    --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --r: 6px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #11121c; --surface: #1b1c2b; --ink: #ecedf3; --muted: #a3a6ba; --line: #2c2e42;
        --accent: #f5cb2e; --accent-ink: #17182a; --accent-text: #f5cb2e; --steel: #9fb0f0; --rojo: #ff6b7d;
        --pedido: #f5cb2e; --chip: #24263a; --wa: #2bb866; --ok: #2bb866; --error: #ff8a80; --vehiculo: #8f9bd6;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #11121c; --surface: #1b1c2b; --ink: #ecedf3; --muted: #a3a6ba; --line: #2c2e42;
    --accent: #f5cb2e; --accent-ink: #17182a; --accent-text: #f5cb2e; --steel: #9fb0f0; --rojo: #ff6b7d;
    --pedido: #f5cb2e; --chip: #24263a; --wa: #2bb866; --ok: #2bb866; --error: #ff8a80; --vehiculo: #8f9bd6;
    color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .h2, .h3 { font-family: var(--f-display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: .01em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.wrap--texto { max-width: 780px; }
.mono { font-family: var(--f-mono); font-size: .82rem; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

.screen-reader-text, .skip-link:not(:focus) {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--surface); padding: 8px 14px; border-radius: var(--r); }

/* ---------- Botones ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: var(--r); padding: .7em 1.2em; font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--line { border-color: currentColor; background: transparent; color: inherit; }
.btn--grande { padding: .9em 1.4em; font-size: 1.05rem; }

/* ---------- Encabezado ---------- */

.top { background: var(--asphalt); color: var(--asphalt-muted); font-size: .85rem; }
.top .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-block: 7px; }
.top a { color: var(--asphalt-ink); text-decoration: none; white-space: nowrap; }
.top a:hover { text-decoration: underline; }
.top__der { display: inline-flex; align-items: center; gap: 12px; }
.top__red { display: inline-grid; place-items: center; }
.top__red .icon { width: 16px; height: 16px; }

.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar .head { top: 32px; }
@media (max-width: 782px) { .admin-bar .head { top: 0; } }
.head .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.logo__img { width: 56px; height: 56px; flex: none; }
.logo b { font-family: var(--f-display); font-size: 1.55rem; text-transform: uppercase; line-height: .9; letter-spacing: .02em; display: block; }
.logo small { display: block; font-family: var(--f-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }
.logo--imagen img { max-height: 52px; width: auto; }
.nav .menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .95rem; }
.nav a { display: block; text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }
.nav a[aria-current="page"], .nav .current-menu-item > a, .nav .current_page_item > a { border-color: var(--accent); color: var(--accent-text); }
/* Menú en su propia fila; el nombre se acomoda en dos líneas antes de empujar el botón de WhatsApp */
@media (max-width: 1080px) {
    .head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
    .nav { grid-column: 1 / -1; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
    .nav .menu { gap: 18px; padding-bottom: 2px; }
    .nav a { white-space: nowrap; }
}
@media (max-width: 440px) {
    .head .wrap { column-gap: 12px; }
    .head__wa { padding: .6em; }
    .logo small { letter-spacing: .1em; }
    .head__wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .logo b { font-size: 1.3rem; }
}

/* ---------- Encabezado de páginas internas ---------- */

.page-top { background: var(--asphalt); color: var(--asphalt-ink); padding-block: 56px 64px; position: relative; }
.page-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(115deg, var(--asphalt-line) 0 10px, transparent 10px 20px); }
.page-top h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }
.page-top p { color: var(--asphalt-muted); max-width: 40em; font-size: 1.08rem; margin: 14px 0 0; }
.page-top .hero__kicker { color: var(--accent); margin: 0 0 12px; }

/* ---------- Portada ---------- */

.hero { background: var(--asphalt); color: var(--asphalt-ink); position: relative; overflow: hidden; }
.hero::after { /* banda de dibujo de llanta */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
    background: repeating-linear-gradient(115deg, var(--asphalt-line) 0 14px, transparent 14px 28px), repeating-linear-gradient(65deg, var(--asphalt-line) 0 14px, transparent 14px 28px);
    opacity: .9;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding-block: 64px 80px; }
.hero__kicker { font-family: var(--f-mono); color: var(--accent); font-size: .85rem; letter-spacing: .08em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--asphalt-muted); font-size: 1.1rem; max-width: 34em; margin: 18px 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 64px; } }

.buscador { background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); min-width: 0; }
.buscador h2 { font-size: 1.7rem; text-transform: uppercase; }
.buscador p { margin: 0; color: var(--muted); font-size: .92rem; }
.buscador .mono { color: var(--steel); }

.campo { display: grid; gap: 5px; min-width: 0; }
.campo label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.campo textarea { resize: vertical; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .fila { grid-template-columns: 1fr; } }
.form__hp { position: absolute; left: -9999px; }

/* Mostradores (accesos de la portada) */
.mostradores { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--surface); }
.mostradores a { display: grid; gap: 4px; padding: 22px 20px; text-decoration: none; border-right: 1px solid var(--line); align-content: start; }
.mostradores a:last-child { border-right: 0; }
.mostradores a:hover { background: var(--chip); }
.mostradores b { font-family: var(--f-display); font-size: 1.45rem; text-transform: uppercase; line-height: 1.1; }
.mostradores span { color: var(--muted); font-size: .9rem; }
.mostradores i { font-style: normal; font-family: var(--f-mono); font-size: .75rem; color: var(--accent-text); }
@media (max-width: 760px) {
    .mostradores { grid-template-columns: 1fr 1fr; }
    .mostradores a:nth-child(2) { border-right: 0; }
    .mostradores a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Secciones ---------- */

.sec { padding-block: 72px; }
.sec--gris { background: var(--surface); border-block: 1px solid var(--line); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec__head h2, .sec__head .h2 { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; }
.sec__head p { margin: 6px 0 0; color: var(--muted); max-width: 40em; }
.eyebrow { font-family: var(--f-mono); color: var(--accent-text); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 560px) { .sec { padding-block: 52px; } }

.cta-banda { background: var(--accent); color: var(--accent-ink); }
.cta-banda .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 36px; }
.cta-banda h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }

/* Por qué nosotros */
.razones { background: var(--asphalt); color: var(--asphalt-ink); }
.razones__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.razon b { display: block; font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 6px; line-height: 1.1; }
.razon p { margin: 0; color: var(--asphalt-muted); font-size: .95rem; }
.razon .mono, .razones .eyebrow { color: var(--accent); }
@media (max-width: 860px) { .razones__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .razones__grid { grid-template-columns: 1fr; } }

/* ---------- Catálogo ---------- */

.buscar { display: flex; gap: 8px; width: min(100%, 360px); }
.buscar input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.buscar .btn { padding: .6em .9em; }
.buscar .btn .icon { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: 600 .88rem var(--f-body); border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.catalogo { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pieza { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pieza__foto { display: block; margin: -18px -18px 4px; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.pieza__foto img { width: 100%; height: 100%; object-fit: contain; }
.pieza__foto--vacia { display: grid; place-items: center; background: var(--chip); }
.pieza__foto--vacia img { width: 72px; height: 72px; opacity: .22; filter: grayscale(1); }
.pieza__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pieza__cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pieza__cod { color: var(--steel); }
.pieza h3 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.pieza h3 a { text-decoration: none; }
.pieza h3 a:hover { text-decoration: underline; }
.pieza__spec { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; flex: 1; }
.pieza__spec span { background: var(--chip); border-radius: 4px; padding: 2px 8px; }
.pieza__pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.pieza .btn { padding: .55em .9em; font-size: .85rem; }
.precio { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.precio--consultar { font-size: 1.15rem; color: var(--muted); }
.stock { font-size: .78rem; font-weight: 600; }
.stock--si { color: var(--wa); }
.stock--pedido { color: var(--pedido); }

.vacio { margin: 32px 0 0; padding: 22px; border: 1px dashed var(--line); border-radius: var(--r); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.vacio p { margin: 0; color: var(--muted); max-width: 46em; }
.vacio b { color: var(--ink); }

/* Repuestos por encargo (al final de la tienda) */
.pedido { background: var(--asphalt); color: var(--asphalt-ink); }
.pedido__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pedido h2 { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; margin: 6px 0 14px; }
.pedido__grid > div p { color: var(--asphalt-muted); max-width: 38em; }
.pedido .eyebrow { color: var(--accent); }
@media (max-width: 860px) { .pedido__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Paginación */
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Ficha de producto */
.migas { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.migas a { color: var(--muted); }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ficha__foto { background: #fff; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.ficha__foto img { width: 100%; height: 100%; object-fit: contain; }
.ficha__sin-foto { display: grid; justify-items: center; gap: 10px; color: #5d6167; font-size: .9rem; }
.ficha__sin-foto img { width: 96px; height: 96px; opacity: .25; filter: grayscale(1); }
.ficha__info { display: grid; gap: 14px; align-content: start; }
.ficha__info h1 { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; }
.ficha__info .pieza__spec .mono, .ficha__info .pieza__spec { font-size: .9rem; }
.ficha__precio { display: flex; align-items: baseline; gap: 16px; padding-block: 12px; border-block: 1px dashed var(--line); }
.ficha__precio .precio { font-size: 2.4rem; }
.ficha__precio .stock { font-size: .9rem; }
.ficha__info .btn--wa { justify-self: start; }
.ficha__nota { margin: 0; color: var(--muted); font-size: .92rem; }
.ficha__texto { margin-top: 40px; max-width: 780px; }
@media (max-width: 760px) { .ficha { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Taller ---------- */

.taller { background: var(--surface); border-block: 1px solid var(--line); }
.taller__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.servicios { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.servicios li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.servicios b { font-size: 1.05rem; }
.servicios span { color: var(--muted); font-size: .92rem; grid-column: 1; }
.servicios .mono { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; color: var(--steel); font-style: normal; }
.taller__texto { margin-top: 28px; }

.cita { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; position: sticky; top: 92px; min-width: 0; }
.cita h3 { font-size: 1.8rem; text-transform: uppercase; }
.cita__ok, .cita__error { margin: 0; background: var(--chip); border-left: 4px solid var(--ok); padding: 12px 14px; font-size: .92rem; border-radius: 4px; }
.cita__error { border-left-color: var(--error); }
.cita__ok { display: grid; gap: 10px; justify-items: start; }
.cita__ok p { margin: 0; }
.cita__nota { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .taller__grid { grid-template-columns: 1fr; } .cita { position: static; } }

/* ---------- Lavado ---------- */

.paquetes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.paquete { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; }
.paquete--dest { border: 2px solid var(--accent-text); }
.paquete h2, .paquete .h3 { font-size: 1.7rem; text-transform: uppercase; }
.paquete p { margin: 0; color: var(--muted); }
.paquete .precio { font-size: 2.4rem; }
.paquete .precio small { font-family: var(--f-body); font-size: .85rem; color: var(--muted); font-weight: 400; }
.paquete ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.tag { justify-self: start; background: var(--rojo); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; }
.lavado__texto { margin-top: 32px; max-width: 780px; }
@media (max-width: 860px) { .paquetes { grid-template-columns: 1fr; } }

/* ---------- Lavacar Atenas: logo propio solo en su página ---------- */

.lavacar__cabeza { align-items: center; }
.lavacar__logo { width: 150px; height: auto; flex: none; }
.lavacar__titulos { flex: 1 1 320px; }
@media (prefers-color-scheme: dark) {
    /* Las letras negras del logo no se leen sobre fondo oscuro */
    :root:not([data-theme="light"]) .lavacar__logo { background: #fff; border-radius: var(--r); padding: 10px; }
}
:root[data-theme="dark"] .lavacar__logo { background: #fff; border-radius: var(--r); padding: 10px; }
@media (max-width: 560px) { .lavacar__logo { width: 120px; } }

/* ---------- Reserva del lavacar (5 pasos) ---------- */

.reserva { display: grid; gap: 20px; }
.reserva__aviso { margin: 0; }
.reserva__progreso { display: none; list-style: none; margin: 0; padding: 0; gap: 6px; counter-reset: none; }
.js .reserva__progreso { display: flex; flex-wrap: wrap; }
.reserva__progreso li { flex: 1 1 0; min-width: 0; }
.reserva__progreso button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; border-bottom: 3px solid var(--line); background: none; color: var(--muted); font: 600 .88rem var(--f-body); text-align: left; cursor: pointer; white-space: nowrap; }
.reserva__progreso button:disabled { cursor: default; }
.reserva__progreso span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); font-size: .78rem; flex: none; }
.reserva__progreso .is-hecho button { color: var(--ink); border-color: var(--accent-text); }
.reserva__progreso .is-hecho span { background: var(--accent-text); color: var(--surface); }
.reserva__progreso .is-actual button { color: var(--ink); border-color: var(--accent); }
.reserva__progreso .is-actual span { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) {
    .reserva__progreso { gap: 4px; }
    .reserva__progreso button { justify-content: center; padding: 8px 4px; font-size: 0; }
    .reserva__progreso span { font-size: .78rem; }
    .reserva__progreso .is-actual button { font-size: .8rem; }
    .reserva__progreso .is-actual { flex: 2.4 1 0; }
}

.reserva__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.reserva__pasos { display: grid; gap: 28px; min-width: 0; }
.js .reserva__pasos { gap: 20px; }
.paso { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.js .paso:not(.is-actual) { display: none; }
.paso legend { display: flex; align-items: center; gap: 10px; font: 700 1.8rem/1.1 var(--f-display); text-transform: uppercase; padding: 0; margin-bottom: 14px; }
.paso__num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; flex: none; }
.paso__ayuda { margin: 0; color: var(--muted); font-size: .92rem; }

/* Opciones (vehículo y paquete): tarjeta con radio escondido */
.opciones { display: grid; gap: 12px; }
.opciones--vehiculo { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 12px; }
@media (max-width: 520px) { .opciones--vehiculo { grid-template-columns: 1fr 1fr; } .opciones--vehiculo .opcion__caja b { padding: 6px 10px; font-size: .82rem; } }
.opciones--paquete { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.opcion { position: relative; display: grid; cursor: pointer; }
.opcion[hidden], .extra[hidden] { display: none; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion__caja { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; align-content: start; transition: border-color .15s, box-shadow .15s; }
/* Vehículos: ilustración de lado y etiqueta en pastilla (como la referencia del cliente) */
.opciones__grupo { font: 600 .8rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 -4px; }
.opciones--vehiculo .opcion__caja { justify-items: center; text-align: center; padding: 8px 6px 12px; border: 0; background: none; gap: 6px; }
.opciones--vehiculo .opcion__caja b { display: inline-block; padding: 6px 12px; border: 2px solid var(--accent-text); border-radius: 18px; line-height: 1.3; background: var(--surface); font-size: .86rem; max-width: 100%; transition: background .15s, color .15s; }
.vehiculo { width: 100%; max-width: 180px; height: auto; color: var(--vehiculo); transition: transform .2s, color .2s; }
.vehiculo .v-cuerpo { fill: currentColor; }
.vehiculo .v-vidrio { fill: #cfe1ef; opacity: .9; }
.vehiculo .v-linea { fill: none; stroke: rgba(0, 0, 0, .18); stroke-width: 1.5; stroke-linecap: round; }
.vehiculo .v-marco { fill: none; stroke: #4a4c63; stroke-width: 5; stroke-linecap: round; }
.vehiculo .v-motor { fill: #4a4c63; }
.vehiculo .v-llanta { fill: #1c1d33; }
.vehiculo .v-rin { fill: #c9cbd6; }
.vehiculo .v-sombra { fill: rgba(0, 0, 0, .12); }
.opciones--vehiculo .opcion:hover .opcion__caja { border-color: transparent; }
.opciones--vehiculo .opcion:hover .vehiculo { transform: translateX(4px); }
.opciones--vehiculo .opcion input:checked + .opcion__caja { box-shadow: none; }
.opciones--vehiculo .opcion input:checked + .opcion__caja .vehiculo { color: var(--accent); filter: drop-shadow(0 0 0 var(--accent-text)); }
.opciones--vehiculo .opcion input:checked + .opcion__caja b { background: var(--accent-text); color: var(--surface); }
.opcion:hover .opcion__caja { border-color: var(--muted); }
.opcion input:checked + .opcion__caja { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent); }
.opcion input:focus-visible + .opcion__caja { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.opcion .paquete { padding: 20px; }
.opcion .paquete--dest { border-color: var(--accent-text); }
.opcion .paquete .h3 { font: 700 1.6rem/1 var(--f-display); text-transform: uppercase; }
.opcion .paquete .precio { font-size: 1.8rem; }
.paquete__detalle { color: var(--muted); font-size: .92rem; }

/* Adicionales */
.extras { display: grid; gap: 8px; }
.extra { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; cursor: pointer; }
.extra input { width: 20px; height: 20px; accent-color: var(--accent-text); }
.extra:has(input:checked) { border-color: var(--accent-text); box-shadow: inset 4px 0 0 var(--accent); }
.extra__texto { display: grid; }
.extra__texto small { color: var(--muted); }
.extra__precio { font: 700 1.2rem var(--f-display); white-space: nowrap; }

/* Días y horas */
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.dia { flex: none; width: 64px; display: grid; justify-items: center; gap: 0; padding: 8px 4px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); color: var(--ink); cursor: pointer; font-family: var(--f-body); }
.dia b { font: 700 1.6rem/1.1 var(--f-display); }
.dia small { font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.dia[aria-pressed="true"] { border-color: var(--accent-text); background: var(--accent-text); color: var(--surface); }
.dia[aria-pressed="true"] small { color: inherit; opacity: .8; }
.dia:disabled { opacity: .4; cursor: not-allowed; }
.horas { display: flex; flex-wrap: wrap; gap: 8px; }
.horas__dia { flex-basis: 100%; margin: 6px 0 0; font-weight: 600; }
.js .horas__dia { display: none; }
.js .horas:not(.is-visible) { display: none; }
.hora { position: relative; cursor: pointer; }
.hora input { position: absolute; opacity: 0; pointer-events: none; }
.hora span { display: block; min-width: 76px; text-align: center; padding: 9px 12px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); font: 500 .95rem var(--f-mono); }
.hora input:checked + span { border-color: var(--accent-text); background: var(--accent); color: var(--accent-ink); }
.hora input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.hora--llena { cursor: not-allowed; }
.hora--llena span { opacity: .45; text-decoration: line-through; }
.hora--llena small { font-family: var(--f-body); text-decoration: none; }

.reserva__nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reserva__nav [data-siguiente] { margin-left: auto; }
.reserva__falta { flex-basis: 100%; margin: 0; color: var(--error); font-size: .9rem; text-align: right; }

/* Resumen */
.reserva__resumen { position: sticky; top: 92px; background: var(--asphalt); color: var(--asphalt-ink); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; }
.reserva__resumen h3 { font-size: 1.5rem; text-transform: uppercase; color: var(--accent); }
.reserva__resumen dl { margin: 0; display: grid; gap: 8px; }
.reserva__resumen dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--asphalt-muted); }
.reserva__resumen dd { margin: 0; }
.reserva__total { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px dashed var(--asphalt-line); padding-top: 12px; }
.reserva__total b { font: 700 1.9rem var(--f-display); color: var(--accent); }
.reserva__nota { margin: 0; font-size: .82rem; color: var(--asphalt-muted); }
@media (max-width: 960px) {
    .reserva__cuerpo { grid-template-columns: 1fr; }
    .reserva__resumen { position: static; }
    .reserva__resumen dl { grid-template-columns: auto 1fr; gap: 4px 12px; }
}

/* ---------- Conócenos ---------- */

.historia { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.historia--sola { grid-template-columns: 1fr; max-width: 780px; }
.historia .entry-content p { max-width: 62ch; }
.historia .entry-content > p:first-child { font-size: 1.2rem; font-weight: 500; }
.cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cifra { background: var(--surface); padding: 22px; }
.cifra b { display: block; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cifra span { color: var(--muted); font-size: .9rem; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: paso; }
.pasos li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; counter-increment: paso; display: grid; gap: 6px; align-content: start; }
.pasos li::before { content: counter(paso, decimal-leading-zero); font-family: var(--f-mono); color: var(--accent-text); font-size: .85rem; }
.pasos b { font-family: var(--f-display); font-size: 1.3rem; text-transform: uppercase; }
.pasos span { color: var(--muted); font-size: .88rem; }
.equipo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin: 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.4rem; color: var(--accent-text); object-fit: cover; }
.persona b { display: block; }
.persona span:not(.avatar) { color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .historia { grid-template-columns: 1fr; } .equipo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pasos { grid-template-columns: 1fr 1fr; } }

/* Testimonios */
.testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.testimonio { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.testimonio__estrellas { margin: 0; color: #e0a800; letter-spacing: 2px; }
.testimonio__texto { margin: 0; flex: 1; }
.testimonio__texto p { margin: 0 0 .6em; }
.testimonio .persona { border: 0; padding: 0; background: none; }

/* ---------- Contacto ---------- */

.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.negocios { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; align-content: start; }
.datos__negocio { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; border-bottom: 3px solid var(--accent); padding-bottom: 6px; justify-self: stretch; }
.datos__negocio small { display: block; font-family: var(--f-body); font-size: .85rem; font-weight: 400; text-transform: none; color: var(--muted); margin-top: 4px; }
.datos__dir { grid-column: 1 / -1; margin: 0; display: grid; gap: 2px; justify-items: start; }
.datos__dir .btn { margin-top: 10px; }
.datos__dir b { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 520px) { .negocios { grid-template-columns: 1fr; } }
.datos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; align-content: start; }
.datos li { display: grid; gap: 2px; justify-items: start; }
.datos b { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.datos a:not(.btn) { text-decoration: none; }
.datos a:not(.btn):hover { text-decoration: underline; }
.horario { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; align-self: start; }
.horario td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.horario td:last-child { text-align: right; font-family: var(--f-mono); font-size: .88rem; }
.contacto__texto { margin-top: 32px; max-width: 780px; }
.mapa iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.3); }
@media (max-width: 760px) { .contacto { grid-template-columns: 1fr; } }

/* ---------- Contenido editable ---------- */

.entry-content > * + * { margin-top: 1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin-bottom: 0; }
.entry-content h2 { font-size: 2rem; text-transform: uppercase; margin-top: 1.4em; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.2em; }
.entry-content a { color: var(--steel); }
.entry-content img { border-radius: var(--r); }
.entry-content .wp-block-image { margin-block: 1.6em; }
.entrada__foto { margin-bottom: 28px; border-radius: var(--r); }

/* Galería del editor: cuadrícula pareja con fotos recortadas */
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-block: 1.6em; }
.entry-content .wp-block-gallery .wp-block-image { margin: 0; width: auto !important; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.entry-content .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .35s; }
.entry-content .wp-block-gallery figcaption { display: none; }
.con-visor { cursor: zoom-in; }
.con-visor:hover img { transform: scale(1.05); }

/* Blog */
.entradas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.entrada { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.entrada__media { margin: -20px -20px 4px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.entrada .h3 { font-size: 1.6rem; text-transform: uppercase; }
.entrada .h3 a { text-decoration: none; }
.entrada p { margin: 0; color: var(--muted); }

/* ---------- Compartir ---------- */

.compartir { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.entry-content .compartir { margin-top: 40px; }
.compartir__label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.compartir__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; transition: transform .15s; }
.compartir__btn:hover { transform: translateY(-1px); }
.compartir__btn--wa { background: var(--wa); }
.compartir__btn--fb { background: #1877f2; }
.compartir__btn--link { background: var(--asphalt); }
.compartir__ok { font-size: .85rem; font-weight: 600; color: var(--ok); }

/* ---------- Pie ---------- */

.pie { background: var(--asphalt); color: var(--asphalt-muted); font-size: .85rem; }
.pie .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-block: 24px; }
.pie a { color: var(--asphalt-ink); }
.pie__menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.pie__menu a { text-decoration: none; }
/* En celular el botón flotante de WhatsApp tapaba los créditos */
@media (max-width: 700px) { .pie .wrap { padding-bottom: 92px; } }

/* ---------- WhatsApp flotante ---------- */

.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); z-index: 30; transition: transform .3s ease, opacity .3s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
@media (max-width: 700px) {
    /* Se esconde mientras la persona baja por la página y vuelve al subir */
    .wa-float.is-oculto { transform: translateY(90px); opacity: 0; pointer-events: none; }
}

/* ---------- Visor de fotos ---------- */

.visor { position: fixed; inset: 0; z-index: 210; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(12, 13, 15, .94); }
.visor[hidden] { display: none; }
.visor__figura { margin: 0; grid-column: 2; text-align: center; }
.visor__main { flex: 1; }
img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: var(--r); }
.visor__pie { color: var(--asphalt-muted); margin-top: 12px; font-size: .95rem; }
.visor__cerrar, .visor__nav { border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%; display: grid; place-items: center; }
.visor__cerrar:hover, .visor__nav:hover { background: rgba(255, 255, 255, .28); }
.visor__cerrar { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; }
.visor__nav { width: 50px; height: 50px; justify-self: center; }
.visor__nav--prev { grid-column: 1; grid-row: 1; }
.visor__nav--next { grid-column: 3; grid-row: 1; }
.visor .icon { width: 28px; height: 28px; }
body.visor-abierto { overflow: hidden; }

/* ---------- Aviso de mantenimiento ---------- */

.aviso { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(12, 13, 15, .78); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.aviso[hidden] { display: none; }
.aviso.is-visible { opacity: 1; }
.aviso__box { position: relative; width: 100%; max-width: 540px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: var(--r); border-top: 6px solid var(--accent); padding: 40px 32px 32px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); transform: translateY(16px) scale(.97); transition: transform .3s ease; }
.aviso.is-visible .aviso__box { transform: none; }
.aviso__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.aviso__x .icon { width: 22px; height: 22px; }
.aviso__logo { width: min(320px, 80%); height: auto; margin: 0 auto 20px; }
.aviso__nombre { display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 1.9rem/1 var(--f-display); text-transform: uppercase; margin: 0 0 16px; }
.aviso__nombre { flex-direction: column; }
.aviso__logo-redondo { width: 140px; height: 140px; }
.aviso__tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--chip); color: var(--accent-text); font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.aviso__titulo { font-size: clamp(1.8rem, 5vw, 2.4rem); text-transform: uppercase; margin-bottom: .4em; }
.aviso__texto { color: var(--muted); margin: 0 0 24px; }
.aviso__acciones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
body.aviso-abierto { overflow: hidden; }
@media (max-width: 560px) {
    .aviso__box { padding: 36px 20px 24px; }
    .aviso__acciones .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
