/* Inver Rodri R.L. — hoja de estilos v3. Estética limpia (referencias: Tesla y Samsung): mucho blanco, paneles con esquinas
   redondeadas, botones píldora y tipografía Inter. Modo claro y oscuro (html.oscuro). */
:root {
  --marino: #0e1b33; --ambar: #e08020; --ambar-o: #b8621a; --verde: #2e8b4e;      /* colores del logo */
  --fondo: #fff; --fondo-2: #f4f4f4; --superficie: #fff; --panel: #f4f4f4;          /* cambian con el tema */
  --texto: #171a20; --texto-2: #393c41; --gris: #5c5e62; --linea: rgba(23, 26, 32, .1);
  --negro: #171a20; --blanco: #fff;                                                   /* botón principal: se invierten en oscuro */
  --sombra: 0 24px 48px -24px rgba(23, 26, 32, .3);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radio: 24px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
html.oscuro {
  --fondo: #000; --fondo-2: #0e0e10; --superficie: #151517; --panel: #1c1c1f;
  --texto: #f4f4f4; --texto-2: #d4d5d7; --gris: #9d9ea3; --linea: rgba(255, 255, 255, .12);
  --negro: #f4f4f4; --blanco: #0e0e10;
  --ambar-o: #f0a054; --sombra: 0 24px 48px -24px rgba(0, 0, 0, .85);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .4s, color .4s; }
body.bloqueado { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.06; }
h1 em, h2 em { font-style: normal; color: var(--gris); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--negro); color: var(--blanco); }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--negro); color: var(--blanco); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.ic, .linea-ic, .duo-ic { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- textos de apoyo ---------- */
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: 14px; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--texto-2); max-width: 40em; }

/* ---------- botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; background: var(--negro); color: var(--blanco); font: 600 15px/1 var(--sans); cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s, border-color .25s, opacity .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .55); opacity: .93; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-suave { background: var(--panel); color: var(--texto); }
.btn-claro { background: #fff; color: #171a20; }
.btn-vidrio { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-vidrio:hover { background: rgba(255, 255, 255, .28); opacity: 1; }
.btn-wa { background: var(--verde); color: #fff; }
.btn-fantasma { background: transparent; color: var(--texto); border-color: var(--texto); }
.btn-fantasma:hover { background: var(--texto); color: var(--fondo); opacity: 1; }
.link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-weight: 500; font-size: 15px; color: var(--texto); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; cursor: pointer; transition: color .25s; }
.link:hover { color: var(--gris); }
.icono-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s; }
.icono-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icono-btn .ic { width: 20px; height: 20px; }
.ic-luna { display: none; }
html.oscuro .ic-sol { display: none; }
html.oscuro .ic-luna { display: block; }

/* ---------- bienvenida ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--fondo); color: var(--texto); transition: opacity .7s var(--ease) .1s, visibility 0s .9s; }
.intro.fuera { opacity: 0; visibility: hidden; }
.intro.oculto { display: none; }
.intro-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro img { width: 72px; height: 72px; animation: introLogo .9s var(--ease) both; }
.intro-nombre { font-size: 13px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; margin-top: 22px; padding-left: .42em; animation: introSube .9s var(--ease) .25s both; }
.intro-nombre span { color: var(--gris); }
.intro-lema { font-size: 14px; color: var(--gris); margin-top: 8px; animation: introSube .9s var(--ease) .4s both; }
.intro-barra { width: 120px; height: 2px; border-radius: 2px; background: var(--linea); margin-top: 28px; overflow: hidden; }
.intro-barra i { display: block; height: 100%; background: var(--texto); transform-origin: left; animation: introBarra 1.3s var(--ease) .3s both; }
@keyframes introLogo { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes introSube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes introBarra { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- cursor (solo con mouse) ---------- */
.cursor { display: none; }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button, body.cursor-on label, body.cursor-on .vehiculo { cursor: none; }
body.cursor-on input, body.cursor-on select, body.cursor-on textarea { cursor: auto; }
body.cursor-on .cursor { display: block; }
.cursor-punto, .cursor-aro { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-punto { width: 6px; height: 6px; background: var(--ambar); }
.cursor-aro { width: 32px; height: 32px; border: 1px solid color-mix(in srgb, var(--gris) 60%, transparent); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor.grande .cursor-aro { width: 56px; height: 56px; background: rgba(224, 128, 32, .1); border-color: rgba(224, 128, 32, .4); }
.cursor.texto .cursor-aro { width: 0; height: 0; }

/* ---------- encabezado ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .35s, box-shadow .35s; }
.hdr.solid, .hdr.menu-abierto { background: color-mix(in srgb, var(--fondo) 84%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--linea); }
.hdr-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.brand-sub { display: none; }
.nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; transition: background .25s; }
.nav a:not(.btn):hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-cta { display: none; }
.hdr-acc { display: flex; align-items: center; gap: 6px; }
.hdr-cta { margin-right: 6px; }
.hdr-cta .ic { width: 16px; height: 16px; }
.menu-btn { display: none; }

/* ---------- portada ---------- */
.hero { padding: calc(64px + clamp(40px, 7vw, 88px)) 0 0; }
.hero-txt { text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); letter-spacing: -.04em; margin-bottom: 18px; }
.hero .lead { margin: 0 auto 28px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-panel { position: relative; width: 100%; margin-top: clamp(32px, 5vw, 56px); border-radius: var(--radio); overflow: hidden; background: var(--panel); aspect-ratio: 16 / 8.2; min-height: 440px; max-height: 80vh; }
.foto-marco { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.foto-marco img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 1.4s var(--ease); }
.hero-panel:hover .foto-marco img { transform: scale(1.03); }
.foto-marco::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 32%, transparent 52%, rgba(0, 0, 0, .55)); pointer-events: none; }
.foto-sello { position: absolute; z-index: 1; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #171a20; font-size: 12.5px; font-weight: 600; }
.foto-sello .ic { width: 15px; height: 15px; }
.hero-abajo { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.hero-abajo > * { pointer-events: auto; }
.buscador { display: flex; align-items: center; gap: 8px; width: min(560px, 100%); padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #171a20; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); transition: box-shadow .3s; }
.buscador:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5), 0 18px 40px -20px rgba(0, 0, 0, .7); }
.buscador .ic { color: #5c5e62; }
.buscador input { flex: 1; min-width: 0; border: 0; background: transparent; color: #171a20; font: 500 15.5px var(--sans); padding: 8px 0; outline: none; }
.buscador input::placeholder { color: #8a8c90; }
.buscador .btn { background: #171a20; color: #fff; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-chips button { border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .25s; }
.hero-chips button:hover { background: rgba(255, 255, 255, .3); }

/* ---------- destacado (panel grande, rota solo) ---------- */
.muestra { padding-top: 16px; }
.destacado { position: relative; width: 100%; border-radius: var(--radio); overflow: hidden; background: #171a20; color: #fff; aspect-ratio: 16 / 7.2; min-height: 460px; max-height: 80vh; }
.destacado[hidden] { display: none; }
.destacado-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.destacado::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .25) 55%, transparent 100%), linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 40%); pointer-events: none; }
.destacado-txt { position: absolute; z-index: 2; left: clamp(24px, 4vw, 56px); top: 50%; transform: translateY(-50%); max-width: 540px; }
.destacado-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: 14px; }
.destacado-tag .ic { width: 13px; height: 13px; fill: var(--ambar); stroke: var(--ambar); }
.destacado-nom { font-size: clamp(1.8rem, 3.6vw, 3.1rem); color: #fff; }
.destacado-cat { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.destacado-precio { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; margin: 6px 0 24px; }
.destacado-precio small { font-size: 12px; font-weight: 600; letter-spacing: .1em; margin-left: 8px; opacity: .7; }
.destacado-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.destacado-nav { position: absolute; z-index: 2; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); display: flex; align-items: center; gap: 14px; }
.destacado.solo .destacado-nav { display: none; }
.destacado-flecha { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s; }
.destacado-flecha:hover { background: rgba(255, 255, 255, .3); }
.destacado-puntos { display: flex; gap: 6px; }
.destacado-puntos button { width: 22px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background .3s, width .3s; }
.destacado-puntos button.on { width: 36px; background: #fff; }
.destacado.cambia .destacado-txt { animation: aparece .6s var(--ease); }
.destacado.cambia .destacado-foto { animation: fundido .7s ease; }
@keyframes aparece { from { opacity: 0; transform: translateY(calc(-50% + 10px)); } to { opacity: 1; transform: translateY(-50%); } }

/* ---------- cifras ---------- */
.cifras { padding: clamp(56px, 7vw, 96px) 0 0; }
.cifras-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.cifra { padding: 8px 12px; }
.cifra-num { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.cifra-num small { font-size: .7em; color: var(--ambar-o); }
.cifra-tit { margin-top: 12px; font-size: 14px; font-weight: 600; }
.cifra-det { margin-top: 2px; font-size: 13px; color: var(--gris); }

/* ---------- secciones ---------- */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec-alt { background: var(--fondo-2); }
.sec-taller { padding-top: 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); }
.sec-head h2, .duo h2, .contacto h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }
.sec-head p { color: var(--gris); font-size: 1.05rem; }

/* ---------- inventario ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; justify-content: safe center; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid transparent; background: var(--superficie); color: var(--texto-2); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chips button:hover { border-color: var(--texto); color: var(--texto); }
.chips button.on { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
.chips button small { opacity: .6; margin-left: 4px; font-weight: 500; }
.barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 20px; }
.resultado { font-size: 14px; color: var(--gris); }
.resultado b { color: var(--texto); }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; }
.filtro-buscar, .filtro-sel { display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--superficie); border: 1px solid var(--linea); border-radius: 999px; padding: 0 16px; min-height: 44px; transition: border-color .25s; }
.filtro-buscar:focus-within, .filtro-sel:focus-within { border-color: var(--texto); }
.filtro-buscar .ic { color: var(--gris); }
.filtro-buscar input { flex: 1; min-width: 160px; border: 0; background: transparent; color: var(--texto); font: 500 14.5px var(--sans); outline: none; padding: 10px 0; }
.filtro-sel span { font-size: 12px; font-weight: 500; color: var(--gris); white-space: nowrap; }
.filtro-sel select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--texto); font: 600 14px var(--sans); outline: none; padding: 10px 0; cursor: pointer; }
.filtro-sel select option { background: var(--superficie); color: var(--texto); }
.grid-vehiculos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vehiculo { display: flex; flex-direction: column; background: var(--superficie); border-radius: var(--radio); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); animation: entra .6s var(--ease) both; }
.vehiculo:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
@keyframes entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.v-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
.v-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vehiculo:hover .v-foto img { transform: scale(1.05); }
.v-cond, .v-etq { position: absolute; z-index: 1; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.v-cond { left: 14px; background: rgba(255, 255, 255, .92); color: #171a20; }
.v-cond.usado { background: rgba(23, 26, 32, .78); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.v-etq { right: 14px; background: var(--ambar); color: #fff; }
.v-fotos-n { position: absolute; z-index: 1; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(23, 26, 32, .6); color: #fff; font-size: 12px; font-weight: 500; }
.v-fotos-n .ic { width: 14px; height: 14px; }
.v-cuerpo { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.v-marca { font-size: 12.5px; font-weight: 500; color: var(--gris); }
.v-modelo { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.25; margin: 4px 0 8px; }
.v-precio { font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.v-precio small { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--gris); margin-left: 6px; }
.v-datos { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 14px 0 18px; font-size: 13px; color: var(--texto-2); }
.v-datos span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.v-datos span .ic { width: 16px; height: 16px; color: var(--gris); }
.v-datos span b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-acciones { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.v-acciones .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.v-acciones .btn-fantasma { border-color: var(--linea); }
.v-acciones .btn-fantasma:hover { border-color: var(--texto); }
.vacio { text-align: center; padding: 56px 20px; border: 1px dashed var(--linea); border-radius: var(--radio); background: var(--superficie); }
.vacio[hidden] { display: none; }
.vacio-tit { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.encargo { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 40px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radio); background: var(--negro); color: var(--blanco); }
.encargo h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 8px; }
.encargo p { color: color-mix(in srgb, var(--blanco) 70%, transparent); max-width: 40em; }
.encargo .btn { background: var(--blanco); color: var(--negro); }

/* ---------- fabricacion ---------- */
.fab-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
.fab-head .sec-head { text-align: left; margin: 0; }
.plano { margin: 0; background: #171a20; color: #fff; border-radius: var(--radio); padding: clamp(18px, 2.4vw, 28px); }
html.oscuro .plano { background: var(--panel); }
.plano svg { width: 100%; height: auto; }
.plano figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); text-align: center; }
.pl-linea, .pl-acento, .pl-rueda, .pl-cota { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pl-linea { stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; }
.pl-acento { stroke: var(--ambar); stroke-width: 1.8; }
.pl-rueda { stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; fill: #171a20; }
html.oscuro .pl-rueda { fill: var(--panel); }
.pl-cota { stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.pl-cota text { fill: rgba(255, 255, 255, .7); stroke: none; font: 500 10.5px var(--sans); letter-spacing: .04em; }
.pl-tit { fill: rgba(255, 255, 255, .35); font: 600 8.5px var(--sans); letter-spacing: .28em; }
.plano.vis .pl-linea path, .plano.vis .pl-linea rect, .plano.vis .pl-acento > * { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trazo 2.4s var(--ease) forwards; }
.plano.vis .pl-acento > * { animation-delay: .9s; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.lineas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.linea { position: relative; display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radio); padding: 30px 28px 28px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.linea:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.linea-n { position: absolute; top: 28px; right: 26px; font-size: 13px; font-weight: 600; color: var(--gris); }
.linea-ic { width: 40px; height: 40px; color: var(--texto); stroke-width: 1.3; margin-bottom: 22px; transition: transform .5s var(--ease); }
.linea:hover .linea-ic { transform: translateX(4px); }
.linea h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 10px; }
.linea p { color: var(--gris); font-size: .95rem; margin-bottom: 22px; }
.linea .link { margin-top: auto; align-self: flex-start; }
.tag { position: absolute; top: 24px; right: 56px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); border: 1px solid color-mix(in srgb, var(--verde) 40%, transparent); padding: 4px 10px; border-radius: 999px; }

/* taller y suministros */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-col { border-radius: var(--radio); padding: clamp(28px, 4vw, 52px); background: var(--panel); }
.duo-col:first-child { background: var(--marino); color: #fff; }
.duo-col:first-child .eyebrow { color: rgba(255, 255, 255, .6); }
.duo-col:first-child h2 em { color: rgba(255, 255, 255, .55); }
.duo-ic { width: 40px; height: 40px; color: var(--ambar); stroke-width: 1.3; margin-bottom: 22px; }
.duo p:not(.eyebrow) { color: var(--gris); margin-bottom: 22px; max-width: 34em; }
.duo-col:first-child p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }
.checks { display: grid; gap: 12px; margin-bottom: 26px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; }
.checks .ic { color: var(--ambar); width: 18px; height: 18px; }
.duo-col:first-child .link { color: #fff; }
.duo-col:first-child .link:hover { color: rgba(255, 255, 255, .7); }

/* proceso */
.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pasos li { padding: 24px 8px 0 0; border-top: 2px solid var(--texto); }
.paso-n { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--gris); margin-bottom: 18px; }
.pasos h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 8px; }
.pasos p { color: var(--gris); font-size: .95rem; }

/* contacto */
.contacto-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contacto-txt p:not(.eyebrow) { color: var(--gris); font-size: 1.05rem; margin-bottom: 30px; }
.canales { display: grid; gap: 14px; }
.canales a, .canales span { display: flex; align-items: center; gap: 14px; font-weight: 500; transition: color .25s; }
.canales a:hover { color: var(--gris); }
.canal-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--superficie); display: grid; place-items: center; flex: none; }
.canal-ic .ic { width: 19px; height: 19px; }
.canal-t small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; background: var(--superficie); border-radius: var(--radio); padding: clamp(24px, 3.5vw, 40px); }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo-full { grid-column: 1 / -1; }
.campo label { font-size: 13px; font-weight: 500; color: var(--texto-2); }
.campo label span { color: var(--gris); font-weight: 400; }
.campo input, .campo select, .campo textarea { width: 100%; background: var(--fondo-2); border: 1px solid transparent; color: var(--texto); font: 500 15.5px/1.5 var(--sans); padding: 12px 16px; border-radius: 12px; transition: border-color .25s, background .25s; }
.campo select { cursor: pointer; text-overflow: ellipsis; }
.campo select option { color: var(--texto); background: var(--superficie); }
.campo textarea { resize: vertical; min-height: 110px; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--gris); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--texto); background: var(--superficie); }
.form .btn { margin-top: 4px; }
.form-err { grid-column: 1 / -1; color: #d2451e; font-size: 14px; font-weight: 500; }
.form-err:empty, .form-nota:empty { display: none; }
.form-nota { font-size: 13px; color: var(--gris); text-align: center; }

/* pie */
.pie { background: var(--fondo-2); color: var(--gris); padding: 64px 0 0; font-size: 14px; border-top: 1px solid var(--linea); }
.pie-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-bottom: 48px; }
.pie-marca { display: flex; align-items: flex-start; gap: 16px; }
.pie-marca img { width: 44px; height: 44px; }
.pie-marca .brand-name { color: var(--texto); margin-top: 6px; }
.pie-legal { font-size: 13px; margin-top: 8px; line-height: 1.55; max-width: 26em; }
.pie-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pie-nav h4 { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: var(--texto); margin-bottom: 14px; }
.pie-nav a, .pie-nav span { display: block; padding: 4px 0; transition: color .25s; }
.pie-nav a:hover { color: var(--texto); }
.pie-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--linea); padding-top: 20px; padding-bottom: 28px; font-size: 13px; }
.pie-base a:hover { color: var(--texto); }

/* whatsapp flotante */
.wa-flot { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--verde); color: #fff; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .5); transition: transform .35s var(--ease); }
.wa-flot .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.wa-flot:hover { transform: translateY(-3px) scale(1.04); }
.wa-flot[hidden] { display: none; }
.wa-flot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--verde); animation: pulso 2.6s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }

/* ficha del vehiculo */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fundido .3s ease both; }
.modal-caja { position: relative; width: 100%; max-width: 1120px; max-height: 92vh; overflow: auto; background: var(--superficie); border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); animation: subeModal .5s var(--ease) both; }
@keyframes fundido { from { opacity: 0; } }
@keyframes subeModal { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--superficie); color: var(--texto); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.ficha { display: grid; grid-template-columns: 1.15fr 1fr; }
.ficha-galeria { background: var(--panel); }
.ficha-principal { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ficha-principal > button.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ficha-principal img { width: 100%; height: 100%; object-fit: cover; animation: fundido .4s ease; }
.gal-flecha { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #171a20; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.gal-flecha.izq { left: 14px; } .gal-flecha.der { right: 14px; }
.gal-cont { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(23, 26, 32, .7); color: #fff; font-size: 12px; font-weight: 500; }
.ficha-mini { display: flex; gap: 10px; padding: 12px; overflow-x: auto; }
.ficha-mini button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; width: 84px; flex: none; cursor: pointer; background: none; opacity: .65; transition: opacity .3s, border-color .3s; }
.ficha-mini button.on, .ficha-mini button:hover { opacity: 1; }
.ficha-mini button.on { border-color: var(--texto); }
.ficha-mini img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ficha-info { padding: clamp(26px, 4vw, 44px); }
.ficha-info .v-marca { display: block; }
.ficha-info h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 6px 0 10px; }
.ficha-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--gris); margin-bottom: 16px; }
.ficha-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ficha-meta .ic { width: 15px; height: 15px; }
.ficha-precio { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 16px; }
.ficha-precio small { font-size: 12px; font-weight: 600; color: var(--gris); margin-left: 8px; letter-spacing: .08em; }
.ficha-desc { color: var(--texto-2); margin-bottom: 20px; }
.ficha-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0 0 20px; }
.ficha-specs div { padding: 10px 0; border-top: 1px solid var(--linea); }
.ficha-specs dt { font-size: 12px; font-weight: 500; color: var(--gris); }
.ficha-specs dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.ficha-equipo h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.ficha-equipo ul { display: grid; gap: 8px; margin-bottom: 24px; font-size: 14.5px; color: var(--texto-2); }
.ficha-equipo li { display: flex; gap: 10px; align-items: flex-start; }
.ficha-equipo li .ic { color: var(--verde); margin-top: 3px; width: 16px; height: 16px; }
.ficha-acciones { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: 0; padding: 14px 0 4px; background: linear-gradient(transparent, var(--superficie) 30%); }
.ficha-acciones .btn-wa { flex: 1 1 220px; }
.ficha-acciones .btn-fantasma { border-color: var(--linea); }
.ficha-acciones .btn-fantasma:hover { border-color: var(--texto); }
.ficha-id { margin-top: 12px; font-size: 12px; color: var(--gris); }

/* visor de fotos */
.visor { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(0, 0, 0, .94); padding: 24px; animation: fundido .3s ease; }
.visor[hidden] { display: none; }
.visor img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.visor-x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.visor-pie { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: 14px; }

/* avisos */
.avisos { position: fixed; left: 50%; bottom: 26px; z-index: 130; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.aviso { padding: 12px 20px; border-radius: 999px; background: var(--negro); color: var(--blanco); font-size: 14px; font-weight: 500; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .55); animation: avisoEntra .4s var(--ease) both; }
.aviso.sale { animation: avisoSale .4s var(--ease) forwards; }
@keyframes avisoEntra { from { opacity: 0; transform: translateY(14px); } }
@keyframes avisoSale { to { opacity: 0; transform: translateY(14px); } }

/* aparicion al hacer scroll */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.vis { opacity: 1; transform: none; }

/* ---------- pantallas medianas y celulares ---------- */
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; left: 0; right: 0; top: 64px; transform: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(16px, 3vw, 40px) 24px; background: var(--fondo); border-bottom: 1px solid var(--linea); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .3s, translate .3s var(--ease), visibility .3s; }
  .nav.abierto { opacity: 1; visibility: visible; translate: 0 0; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--linea); border-radius: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
  .nav a:not(.btn):hover { background: none; }
  .nav-cta { display: inline-flex; margin-top: 20px; }
  .hdr-cta { display: none; }
  .grid-vehiculos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 960px) {
  .fab-head { grid-template-columns: 1fr; }
  .fab-head .sec-head { text-align: center; margin: 0 auto; }
  .cifras-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .duo { grid-template-columns: 1fr; }
  .contacto-in { grid-template-columns: 1fr; }
  .pie-in { grid-template-columns: 1fr; gap: 36px; }
  .ficha { grid-template-columns: 1fr; }
  .destacado-txt { top: auto; bottom: 88px; transform: none; right: clamp(24px, 4vw, 56px); }
  .destacado.cambia .destacado-txt { animation-name: aparece2; }
  .destacado-nav { right: auto; left: clamp(24px, 4vw, 56px); bottom: clamp(20px, 3vw, 36px); }
}
@keyframes aparece2 { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .hero { padding-top: calc(64px + 32px); }
  .hero-panel { aspect-ratio: 4 / 5; min-height: 0; max-height: none; }
  .foto-marco img { object-position: center 30%; }
  .foto-sello { left: 14px; top: 14px; }
  .buscador { padding-left: 14px; }
  .buscador .btn { padding: 0 14px; }
  .destacado { aspect-ratio: 4 / 5; min-height: 0; max-height: none; }
  .destacado-txt { bottom: 84px; }
  .destacado-nom { font-size: clamp(1.5rem, 7vw, 1.8rem); }
  .destacado-cta .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
  .cifra-num { font-size: 1.9rem; }
  .chips { justify-content: flex-start; }
  .grid-vehiculos, .lineas, .pasos { grid-template-columns: 1fr; }
  .barra { flex-direction: column; align-items: stretch; }
  .filtros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filtro-buscar { grid-column: 1 / -1; }
  .filtro-buscar input { min-width: 0; }
  .filtro-sel { justify-content: space-between; }
  .linea { padding: 26px 22px 24px; }
  .form { grid-template-columns: 1fr; }
  .pie-nav { grid-template-columns: 1fr 1fr; }
  .wa-flot { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .modal { padding: 0; align-items: end; }
  .modal-caja { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .ficha-specs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .intro { display: none; }
}
