/* RSautos — negro principal, carbón, blanco y un solo acento rojo (Manual de identidad v1.0).
   Títulos, nombres de modelo y precios en Conthrax; lectura en Work Sans.
   Trato visual: limpio y amable, tarjetas redondeadas, una idea por pantalla. */
@font-face { font-family: Conthrax; src: url("../fonts/conthrax-semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  --negro: #000;
  --sup: #0F0F0F;
  --sup-2: #1A1A1A;
  --blanco: #fff;
  --texto: #D2D2D2;
  --gris: #8E8E8E;
  --rojo: #ED0000;
  --linea: rgba(255, 255, 255, .1);
  --linea-2: rgba(255, 255, 255, .22);
  --ancho: 1240px;
  --borde: clamp(20px, 5vw, 64px);
  --r: 20px;
  --r-m: 16px;
  --sale: cubic-bezier(.16, 1, .3, 1);
  --entra: cubic-bezier(.7, 0, .84, 0);
  --cab: 64px;
  --ctx: Conthrax, "Work Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--cab) + 16px); -webkit-text-size-adjust: 100%; background: var(--negro); }
body { margin: 0; background: var(--negro); color: var(--texto); font: 400 17px/1.55 "Work Sans", -apple-system, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rojo); color: #fff; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.salto { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; }
.salto:focus { top: 12px; }

/* Voces */
.nom { font-family: var(--ctx); font-weight: 600; text-transform: uppercase; color: #fff; line-height: 1; }
.nom em, .nom .var, .otros em { font-style: normal; color: var(--rojo); }
.sobre { font-family: var(--ctx); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: #ff3c3c; margin-bottom: 16px; }
.tit--s { font-size: clamp(20px, 2.2vw, 28px); }
.tit { font-family: var(--ctx); color: #fff; font-weight: 600; font-size: clamp(25px, 3.5vw, 46px); line-height: 1.14; letter-spacing: -.005em; text-wrap: balance; }
.baj { font-size: clamp(18px, 1.7vw, 21px); color: var(--gris); max-width: 44ch; margin-top: 16px; text-wrap: pretty; }
.masc { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.masc > span { display: block; }
.js [data-ver].masc > span { transform: translateY(110%); transition: transform 1.1s var(--sale); }
.js [data-ver].masc.visto > span { transform: none; }
.js [data-sube] { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform 1s var(--sale); }
.js [data-sube].visto { opacity: 1; transform: none; }

.precio { display: inline-block; background: var(--rojo); color: #fff; font-family: var(--ctx); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; line-height: 1; padding: 9px 12px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background-color .25s, color .25s, transform .2s var(--sale); }
.btn:active { transform: scale(.96); }
.btn--rojo { background: var(--rojo); color: #fff; }
.btn--rojo:hover { background: #fff; color: #000; }
.btn--vidrio { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--vidrio:hover { background: rgba(255, 255, 255, .22); }
.btn--grande { min-height: 56px; padding: 0 30px; font-size: 17px; }
.ir { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ir::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; rotate: 45deg; transition: translate .3s var(--sale); }
.ir:hover::after, a:hover > .ir::after, .tarj:hover .ir::after { translate: 5px 0; }
.ir--rojo { color: #FF4B4B; }

/* Cortina de carga */
.carga { display: none; }
.js .carga { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; align-content: center; gap: 26px; transition: opacity .6s, visibility 0s .6s; }
.carga img { width: 170px; height: auto; }
.carga__barras { display: flex; gap: 6px; }
.carga__barras i { width: 46px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.carga__barras i::after { content: ""; position: absolute; inset: 0; background: var(--rojo); transform: scaleX(0); transform-origin: 0 50%; animation: barra .34s linear forwards; }
.carga__barras i:nth-child(2)::after { animation-delay: .34s; } .carga__barras i:nth-child(3)::after { animation-delay: .68s; }
@keyframes barra { to { transform: scaleX(1); } }
.js .lista .carga { opacity: 0; visibility: hidden; }

/* Cabecera */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--linea); }
.cab__av { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--rojo); transform: scaleX(0); transform-origin: 0 50%; }
.cab__in { max-width: calc(var(--ancho) + 2 * var(--borde)); margin: 0 auto; padding: 0 var(--borde); height: var(--cab); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cab__logo img { height: 30px; width: auto; }
.cab__nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); font-size: 15px; }
.cab__nav a:not(.btn) { color: var(--texto); text-decoration: none; padding: 8px 0; transition: color .2s; }
.cab__nav a:not(.btn):hover, .cab__nav a[aria-current] { color: #fff; }
.cab__cta { min-height: 38px; padding: 0 18px; font-size: 15px; }
.cab__menu { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.cab__menu span:not(.oculto) { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--sale); }
.cab__menu span:nth-child(1) { top: 17px; } .cab__menu span:nth-child(2) { top: 26px; }
.cab__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.cab__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Escenario ---------- */
.esc { --alto-titulo: 20vh; position: relative; background: #000; overflow: hidden; min-height: calc(100svh - var(--cab)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(280px, 1fr) auto auto; text-align: center; }
.esc__luz { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(52% 36% at 50% 72%, rgba(255, 255, 255, .13), transparent 70%),
  radial-gradient(40% 26% at 50% 86%, rgba(237, 0, 0, .12), transparent 70%); }
.esc__top { grid-row: 1; position: relative; z-index: 3; padding: clamp(24px, 4vh, 44px) var(--borde) 0; }
.esc__top h1 { font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; color: #fff; }
.esc__top h1 span { color: var(--gris); }

.esc__tarima { grid-row: 2; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; padding-top: clamp(4px, 1.4vh, 16px); }
/* Título oficial del modelo */
.marca { display: flex; align-items: center; justify-content: center; gap: 2.2%; container-type: inline-size; }
.marca img { width: 100%; height: auto; }
.marca em { font-family: var(--ctx); font-weight: 600; font-style: normal; text-transform: uppercase; color: var(--rojo); line-height: .72; }
.marca:has(em) img { width: 73%; }
.marca em { font-size: 6.6cqw; }
.marca--txt { display: block; container-type: normal; }
.esc__nombre .marca--txt { width: auto; font-size: clamp(38px, 9vw, 120px); line-height: 1; }
.esc__nombre { position: relative; z-index: 1; padding: 0 var(--borde); display: grid; justify-items: center; }
.esc__nombre .marca { width: min(100%, calc(var(--alto-titulo, 22vh) * var(--ar)), 1180px); }
.esc__auto { position: relative; z-index: 2; display: grid; place-items: end center; margin-top: clamp(-36px, -3vh, -8px); min-height: 0; padding: 0 var(--borde) 2.5vh; }
.esc__auto img { position: relative; z-index: 2; width: auto; height: auto; max-width: min(90vw, 860px); max-height: min(44vh, 480px); transform-origin: 50% 85%; scale: var(--escala, 1); will-change: transform; filter: drop-shadow(0 30px 24px rgba(0, 0, 0, .85)); }
.esc__aro { position: absolute; z-index: 1; left: 50%; bottom: 0; width: min(88vw, 820px); translate: -50% 4%; overflow: visible; pointer-events: none; }
.esc__aro ellipse { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.esc__aro .a3 { stroke: var(--rojo); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 80 1200; animation: gira 7s linear infinite; }
@keyframes gira { to { stroke-dashoffset: -1280; } }
.esc__rafagas i { position: absolute; z-index: 3; left: 0; height: 1px; width: 36vw; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; pointer-events: none; }
.esc__rafagas i:nth-child(1) { top: 40%; } .esc__rafagas i:nth-child(2) { top: 55%; width: 22vw; } .esc__rafagas i:nth-child(3) { top: 68%; width: 46vw; background: linear-gradient(90deg, transparent, var(--rojo), transparent); }
.esc__rafagas i:nth-child(4) { top: 78%; width: 18vw; }

.esc__info { grid-row: 3; position: relative; z-index: 3; padding: 18px var(--borde) clamp(16px, 2.6vh, 28px); display: grid; justify-items: center; gap: 16px; }
.esc__frase { display: grid; gap: 6px; }
.esc__lema { color: var(--texto); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.3; }
.esc__precio { font-family: var(--ctx); font-weight: 600; text-transform: uppercase; color: #fff; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips { gap: 6px 22px; }
.chips li { position: relative; padding: 0 0 0 16px; font-size: 15px; color: var(--gris); }
.chips li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--rojo); }
.esc__acc { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; }

/* Selector de modelo: control segmentado */
.esc__tabs { grid-row: 4; position: relative; z-index: 3; justify-self: center; min-width: 0; max-width: calc(100% - 2 * var(--borde)); margin-bottom: 24px; display: flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--linea); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: none; }
.esc__tabs::-webkit-scrollbar { display: none; }
.esc__pulgar { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; transition: transform .6s var(--sale), width .6s var(--sale); pointer-events: none; }
.esc__pulgar b { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rojo); transform: scaleX(0); transform-origin: 0 50%; }
.esc__pulgar.corre b { animation: avance 7s linear forwards; }
.esc.en-pausa .esc__pulgar b { animation-play-state: paused; }
@keyframes avance { to { transform: scaleX(1); } }
.esc__tabs button { position: relative; flex: none; background: none; border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--gris); white-space: nowrap; transition: color .3s; }
.esc__tabs button:hover, .esc__tabs button[aria-selected="true"] { color: #fff; }

.js .esc__top, .js .esc__info, .js .esc__tabs, .js .esc__aro, .js .mh__pie, .js .migas { opacity: 0; }
.js .lista .esc__top, .js .lista .esc__info, .js .lista .esc__tabs, .js .lista .esc__aro, .js .lista .mh__pie, .js .lista .migas { opacity: 1; transition: opacity 1s .8s; }
.js body:not(.lista) .esc__nombre, .js body:not(.lista) .esc__auto img, .js body:not(.lista) .mh .esc__nombre { visibility: hidden; }

/* ---------- Secciones ---------- */
.sec { max-width: calc(var(--ancho) + 2 * var(--borde)); margin: 0 auto; padding: clamp(88px, 11vw, 160px) var(--borde) 0; }
.sec__cab { margin-bottom: clamp(36px, 4.5vw, 64px); }
.sec__cab--centro { text-align: center; } .sec__cab--centro .baj { margin-inline: auto; }
.tarj { position: relative; background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; --mx: 50%; --my: 0%; transition: border-color .35s; }
.tarj::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, .08), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tarj:hover { border-color: var(--linea-2); } .tarj:hover::before { opacity: 1; }

/* Ayuda para elegir */
.guia__ops { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.guia__ops button { min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--sup-2); border: 1px solid var(--linea); cursor: pointer; font-size: 16px; font-weight: 500; color: #fff; transition: background-color .25s, border-color .25s, transform .2s var(--sale); }
.guia__ops button:hover { border-color: var(--linea-2); }
.guia__ops button:active { transform: scale(.96); }
.guia__ops button[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.guia__res { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.guia__res .tarj { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 8px; padding: 20px 28px 20px 12px; text-decoration: none; text-align: left; }
.guia__res img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; scale: var(--escala, 1); filter: drop-shadow(0 16px 12px rgba(0, 0, 0, .7)); }
.guia__res h3 { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.1; margin-bottom: 10px; }
.guia__res p { font-size: 16px; margin-bottom: 12px; }
.guia__res .tarj { animation: llega .7s var(--sale) both; }
.guia__res .tarj:nth-child(2) { animation-delay: .08s; }
@keyframes llega { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* Gama: tarjetas que se deslizan */
.riel-cab { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.flechas { display: flex; gap: 10px; }
.flechas button { width: 44px; height: 44px; border-radius: 50%; background: var(--sup-2); border: 1px solid var(--linea); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .25s, transform .2s var(--sale), opacity .25s; }
.flechas button::before { content: ""; width: 9px; height: 9px; border: solid #fff; border-width: 2px 2px 0 0; rotate: 45deg; translate: -2px 0; }
.flechas button:first-child::before { rotate: -135deg; translate: 2px 0; }
.flechas button:hover { background: #333; } .flechas button:active { transform: scale(.92); }
.flechas button:disabled { opacity: .35; cursor: default; }
.riel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--borde) 8px; margin: 0 calc(-1 * var(--borde)); scroll-padding-inline: var(--borde); cursor: grab; }
.riel::-webkit-scrollbar { display: none; }
.riel.arrastra { cursor: grabbing; scroll-snap-type: none; }
.riel.arrastra a { pointer-events: none; }
.mod { flex: 0 0 min(84vw, 400px); scroll-snap-align: start; display: flex; flex-direction: column; padding: 0 0 28px; }
.mod__img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(60% 46% at 50% 74%, rgba(255, 255, 255, .11), transparent 72%); }
.mod__img img { width: 92%; max-height: 82%; object-fit: contain; scale: var(--escala, 1); filter: drop-shadow(0 20px 16px rgba(0, 0, 0, .75)); pointer-events: none; }
.mod__img::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--rojo), transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--sale); }
.mod:hover .mod__img::after { transform: none; }
.mod__txt { padding: 0 28px; display: grid; gap: 6px; flex: 1; align-content: start; }
.mod__tipo { color: var(--gris); font-size: 15px; }
.mod h3 { margin: 8px 0 8px; }
.mod h3 a { display: block; }
.mod h3 .marca--txt { font-size: 21px; width: auto; }
.mod__nota { justify-self: start; margin-bottom: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(237, 0, 0, .7); color: #fff; font-size: 14px; }
.mod h3 .marca { justify-content: flex-start; width: min(100%, calc(22px * var(--ar)), 240px); }
.mod h3 a { text-decoration: none; } .mod h3 a::after { content: ""; position: absolute; inset: 0; }
.mod ul { font-size: 16px; display: grid; gap: 4px; margin: 6px 0 14px; }
.mod li { padding-left: 22px; position: relative; }
.mod li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 9px; height: 5px; border: solid var(--rojo); border-width: 0 0 2px 2px; rotate: -45deg; }
.mod__pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 28px; margin-top: 8px; }

/* Pasos */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: paso; }
.pasos li { padding: 32px 28px 30px; counter-increment: paso; display: grid; gap: 10px; align-content: start; }
.pasos li::after { content: counter(paso); order: -1; font-family: var(--ctx); font-weight: 600; font-size: 44px; line-height: 1; color: var(--rojo); margin-bottom: 14px; }
.pasos h3, .serv h3 { font-family: var(--ctx); color: #fff; font-size: 18px; font-weight: 600; line-height: 1.25; }
.js .pasos li:nth-child(2) { transition-delay: .1s; } .js .pasos li:nth-child(3) { transition-delay: .2s; }

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cifras > div { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--r); }
.cifras dd { font-family: var(--ctx); font-weight: 600; color: #fff; font-size: clamp(32px, 4vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cifras dd i { font-style: normal; font-size: .3em; font-weight: 600; letter-spacing: .06em; margin-left: .4em; color: var(--rojo); text-transform: uppercase; }
.cifras dt { color: var(--texto); font-size: 15px; line-height: 1.35; }
.sec--cifras { padding-top: clamp(24px, 4vw, 48px); }

/* PHEV */
.phev__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; margin-bottom: 16px; padding: clamp(24px, 4vw, 56px); }
.phev__modos { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 28px; }
.phev__modos button { min-height: 40px; padding: 0 14px; white-space: nowrap; background: none; border: 0; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--gris); transition: background-color .3s, color .3s; }
.phev__modos button:hover { color: #fff; }
.phev__modos button[aria-selected="true"] { background: #fff; color: #000; }
.phev__exp { min-height: 4.8em; margin: 20px 0 24px; max-width: 44ch; color: #fff; font-size: 18px; }
.phev__dib svg { width: 100%; height: auto; display: block; }
.phev__dib { position: relative; border-radius: 18px; overflow: hidden; --px: 0; --py: 0; background:
  radial-gradient(58% 46% at 50% 66%, rgba(255, 255, 255, .1), transparent 70%),
  radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 22px 22px, #050505;
  border: 1px solid var(--linea); }
.phev__dib svg { width: 100%; height: auto; display: block; }
/* Profundidad: el auto y sus componentes se desplazan distinto al mover el cursor */
.d-capa { transition: transform .5s var(--sale); }
.d-capa--auto { transform: translate(calc(var(--px) * -10px), calc(var(--py) * -6px)); }
.d-capa--sis { transform: translate(calc(var(--px) * 14px), calc(var(--py) * 8px)); }
.d-barrido { animation: barrido-x 5.5s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes barrido-x { from { transform: translateX(0); } to { transform: translateX(1700px); } }
.d-piso { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 4 6; }
.d-eje { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 5; stroke-linecap: round; }
.d-base path { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; stroke-linecap: round; }
.d-base path:last-child { stroke: rgba(255, 60, 60, .55); stroke-dasharray: 3 7; }
.d-cara { fill: url(#g-cara); stroke: rgba(255, 255, 255, .75); stroke-width: 1.4; stroke-linejoin: round; transition: stroke .5s, filter .5s; }
.d-cara--lado { fill: rgba(255, 255, 255, .1); } .d-cara--frente { fill: rgba(255, 255, 255, .05); }
.d-cuerpo { fill: #141414; stroke: rgba(255, 255, 255, .75); stroke-width: 1.4; transition: stroke .5s, filter .5s; }
.d-tapa { fill: #232323; stroke: rgba(255, 255, 255, .75); stroke-width: 1.4; }
.d-comp circle { fill: #111; stroke: rgba(255, 255, 255, .7); stroke-width: 1.6; }
.d-comp .d-det { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; transition: stroke .5s; }
.d-comp .d-celda { fill: rgba(255, 255, 255, .12); transition: fill .5s; }
.d-comp .d-guia { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 1.2; stroke-dasharray: 3 6; }
.d-comp text { font: 500 27px "Work Sans", Arial, sans-serif; fill: var(--gris); text-anchor: middle; transition: fill .5s; }
.d-comp { transition: opacity .5s; }
.d-comp.activo .d-cara, .d-comp.activo .d-cuerpo { stroke: #fff; filter: drop-shadow(0 0 9px rgba(255, 255, 255, .6)); }
.d-comp.activo .d-det { stroke: rgba(255, 255, 255, .85); }
.d-comp.activo text, .d-enchufe text { fill: #fff; }
.d-comp.activo .d-celda { fill: #ff2020; filter: drop-shadow(0 0 6px #ff2020); animation: celda 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes celda { 50% { fill: #700000; } }
.d-comp.apagado { opacity: .3; }
.d-enchufe circle { stroke: #ff3c3c; }
.d-flujos path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 18 30; opacity: 0; transition: opacity .5s; animation: flujo .9s linear infinite; filter: url(#g-brillo); }
.d-flujos path.e { stroke: #ff2a2a; }
.d-flujos path.m { stroke: #fff; }
.d-flujos path.on { opacity: 1; }
@keyframes flujo { to { stroke-dashoffset: -48; } }
.phev__ley { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; font-size: 14px; color: var(--gris); }
.phev__ley i { display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: #ff2a2a; box-shadow: 0 0 8px #ff2a2a; vertical-align: middle; margin-right: 8px; }
.phev__ley .l-m { background: #fff; box-shadow: 0 0 8px #fff; }

/* Servicios: cuadrícula */
.serv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.serv li { padding: 32px 28px 28px; display: grid; gap: 10px; align-content: start; min-height: 240px; }
.ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid var(--linea); margin-bottom: 18px; transition: background-color .3s, border-color .3s; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .r { stroke: #ff3c3c; }
.tarj:hover .ico { background: var(--rojo); border-color: var(--rojo); } .tarj:hover .ico .r { stroke: #fff; }
.serv p { max-width: 40ch; }
.serv a { margin-top: 8px; justify-self: start; }
.serv a::before { content: ""; position: absolute; inset: 0; }
.js .serv li:nth-child(even) { transition-delay: .1s; }

/* Fichas: lista agrupada */
.fichas { border-radius: var(--r); background: var(--sup); border: 1px solid var(--linea); overflow: hidden; }
.fichas li + li { border-top: 1px solid var(--linea); }
.fichas a { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 18px 28px; text-decoration: none; transition: background-color .25s; }
.fichas a:hover { background: var(--sup-2); }
.fichas span:first-child { font-weight: 500; font-size: 18px; color: #fff; }
.fichas small { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--gris); }
.fichas--mod { margin-top: 16px; }

/* Nosotros y agencias */
.nos__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; margin-bottom: 16px; }
.nos__txt p:not(.sobre) { margin-top: 18px; max-width: 50ch; }
.nos__txt .tit + p { margin-top: 26px; color: #fff; font-size: 19px; }
.radar { position: relative; aspect-ratio: 1; width: min(100%, 440px); justify-self: center; }
.radar svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.radar circle.r, .radar line { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.radar__barrido { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 78%, rgba(237, 0, 0, .34)); animation: barrido 6s linear infinite; }
@keyframes barrido { to { rotate: 360deg; } }
.radar .p { fill: var(--rojo); } .radar .o { fill: none; stroke: var(--rojo); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: onda 2.4s ease-out infinite; }
.radar .o2 { animation-delay: 1.2s; }
@keyframes onda { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.radar text { font: 600 14px var(--ctx); text-transform: uppercase; fill: #fff; }
.radar text.c { fill: var(--gris); font-size: 12px; font-weight: 400; }
.sedes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sede { padding: 0; display: flex; flex-direction: column; }
.sede figure { height: clamp(200px, 24vw, 320px); overflow: hidden; }
.sede img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.sede__txt { padding: 26px 28px 28px; display: grid; gap: 6px; }
.sede h3 { font-size: 22px; margin-bottom: 8px; }
.sede__ref { color: var(--gris); font-size: 15px; }
.sede a { justify-self: start; margin-top: 12px; }
.sede a::before { content: ""; position: absolute; inset: 0; }
.js .sede:nth-child(2) { transition-delay: .12s; }
.horario { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; padding-top: 28px; }
.horario div { display: flex; gap: 10px; }
.horario dt { color: var(--gris); } .horario dd { color: #fff; font-variant-numeric: tabular-nums; }

/* Contacto */
.cont__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.cont__datos { margin-top: 36px; display: grid; gap: 20px; }
.cont__datos dt { color: var(--gris); font-size: 15px; margin-bottom: 2px; }
.cont__datos dd { font-size: 21px; font-weight: 600; color: #fff; display: flex; flex-wrap: wrap; gap: 4px 24px; font-variant-numeric: tabular-nums; }
.cont__datos a { text-decoration: none; transition: color .2s; } .cont__datos a:hover { color: #FF4B4B; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; padding: clamp(22px, 3vw, 36px); }
.campo { display: grid; gap: 8px; } .campo--ancho, .form__fin, .form__error { grid-column: 1 / -1; }
.campo label { font-size: 15px; font-weight: 500; color: #fff; } .campo label span { color: var(--gris); font-weight: 400; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 52px; padding: 12px 16px; background: #000; border: 1px solid var(--linea-2); border-radius: var(--r-m); color: #fff; transition: border-color .2s, box-shadow .2s; }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%); background-size: 6px 6px; background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-repeat: no-repeat; padding-right: 42px; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--gris); }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 0; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.campo [aria-invalid="true"] { border-color: var(--rojo); }
.form__error { color: #FF6B6B; font-size: 15px; }
.form__listo { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; padding: 8px 0; }
.form__listo[hidden] { display: none; }
.form.enviado > :not(.form__listo) { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form__fin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__fin p { font-size: 14px; max-width: 32ch; color: var(--gris); }

/* Vidrio líquido: translúcido, con desenfoque y brillo en el borde superior */
.vidrio, .cifras > div, .wa {
  background: linear-gradient(140deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .09));
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 22px rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .45);
}
/* Luces que se mueven detrás de las cifras, para que el vidrio tenga algo que refractar */
.cifras { position: relative; isolation: isolate; }
.cifras::before, .cifras::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.cifras::before { width: 34%; height: 130%; left: 4%; top: -15%; background: rgba(237, 0, 0, .55); animation: deriva 14s ease-in-out infinite alternate; }
.cifras::after { width: 26%; height: 100%; right: 8%; top: 0; background: rgba(255, 255, 255, .2); animation: deriva 18s ease-in-out infinite alternate-reverse; }
@keyframes deriva { to { transform: translateX(120%); } }

/* WhatsApp fijo */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 8px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .6s var(--sale), border-color .3s; }
.wa svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #fff; fill: #000; transition: background-color .3s, fill .3s; }
.wa:hover { border-color: rgba(255, 255, 255, .45); } .wa:hover svg { background: var(--rojo); fill: #fff; }
.wa:active { transform: scale(.96); }
.js body:not(.lista) .wa { transform: translateY(90px); }

/* Pie: compacto, con la firma RSautos | Mitsubishi como protagonista */
.pie { background: #000; border-top: 1px solid var(--linea); margin-top: clamp(72px, 8vw, 112px); padding: 44px var(--borde) 24px; font-size: 15px; color: var(--gris); }
.pie__in, .pie__base, .pie__legal { max-width: var(--ancho); margin-inline: auto; }
.pie__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; }
.pie__firma { display: flex; align-items: center; gap: 26px; margin-bottom: 16px; }
.pie__rs { height: 52px; width: auto; } .pie__mm { height: 104px; width: auto; }
.pie__sep { width: 1px; height: 64px; background: rgba(255, 255, 255, .4); }
.pie__contacto { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 4vw, 56px); }
.pie__contacto span { display: block; font-size: 14px; margin-bottom: 2px; }
.pie__contacto a { color: #fff; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pie a { text-decoration: none; transition: color .2s; } .pie a:hover { color: #ff3c3c; }
.pie__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--linea); }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.pie__enlaces a { display: inline-block; padding: 6px 0; }
.pie__enlaces a:hover { color: #fff; }
.pie__legal { margin-top: 12px; font-size: 13px; padding-right: 150px; }

/* ---------- Página de modelo ---------- */
.mh { position: relative; background: #000; overflow: hidden; text-align: center; }
.mh .esc__luz { background: radial-gradient(52% 30% at 50% 62%, rgba(255, 255, 255, .13), transparent 70%), radial-gradient(40% 22% at 50% 74%, rgba(237, 0, 0, .12), transparent 70%); }
.mh__in { position: relative; max-width: calc(var(--ancho) + 2 * var(--borde)); margin: 0 auto; padding: 20px var(--borde) 0; }
.migas { display: flex; justify-content: center; gap: 10px; font-size: 15px; margin-bottom: clamp(12px, 2.4vw, 28px); color: var(--gris); }
.migas a { text-decoration: none; } .migas a:hover, .migas span:last-child { color: #fff; }
.mh__tarima { position: relative; margin: 0 calc(-1 * var(--borde)); }
.mh__auto { position: relative; z-index: 2; display: grid; place-items: center; margin-top: clamp(-30px, -2.5vh, -6px); padding-bottom: 3vh; }
.mh__auto img { position: relative; z-index: 2; width: auto; max-width: min(92vw, 940px); max-height: 52vh; scale: var(--escala, 1); transform-origin: 50% 80%; filter: drop-shadow(0 30px 24px rgba(0, 0, 0, .85)); }
.mh__auto .esc__aro { translate: -50% -6%; }
.js .mh__auto img { transform: translateX(calc(var(--mira) * -110vw)) skewX(calc(var(--mira) * -6deg)); }
.js .lista .mh__auto img { transform: none; transition: transform 1.4s var(--sale) .45s; }
.mh__pie { display: grid; justify-items: center; gap: 16px; padding-top: 20px; }
.mh__res { max-width: 50ch; color: var(--gris); font-size: 17px; margin-top: 12px; text-wrap: pretty; }

.vers { border-radius: var(--r); background: var(--sup); border: 1px solid var(--linea); overflow: hidden; }
.vers li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; padding: 22px 28px; }
.vers li + li { border-top: 1px solid var(--linea); }
.vers span { color: #fff; font-size: clamp(19px, 1.9vw, 24px); font-weight: 600; letter-spacing: -.02em; }

/* Edición especial */
.edi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.edi figure { aspect-ratio: 3 / 4; overflow: hidden; }
.edi img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.edi__txt { padding: clamp(24px, 4vw, 56px); display: grid; gap: 6px; justify-items: start; }
.edi__nota { color: var(--gris); margin: 14px 0 22px; }
.edi__datos { margin: 18px 0 24px; display: grid; gap: 10px; width: 100%; }
.edi__datos div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding-top: 10px; border-top: 1px solid var(--linea); }
.edi__datos dt { color: var(--gris); } .edi__datos dd { color: #fff; }

.cat .riel figure { flex: 0 0 min(80vw, 480px); scroll-snap-align: start; border-radius: var(--r); overflow: hidden; border: 1px solid var(--linea); }
.cat .riel img { width: 100%; height: auto; pointer-events: none; }
.cat--banner img { width: 100%; height: auto; border-radius: var(--r); }

.specs { border-radius: var(--r); background: var(--sup); border: 1px solid var(--linea); overflow: hidden; }
.specs details + details { border-top: 1px solid var(--linea); }
.specs summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 28px; font-family: var(--ctx); font-size: 15px; font-weight: 600; color: #fff; position: relative; transition: background-color .25s; }
.specs summary:hover { background: var(--sup-2); }
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after { content: ""; position: absolute; right: 30px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--gris); border-bottom: 2px solid var(--gris); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--sale); }
.specs details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.specs dl { padding: 0 28px 20px; }
.specs dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.specs dt { color: var(--gris); } .specs dd { color: #fff; font-variant-numeric: tabular-nums; }

.otros { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.otros a { display: grid; gap: 2px; text-decoration: none; padding: 12px 18px 20px; border-radius: 16px; }
.otros img { aspect-ratio: 3 / 2; width: 100%; object-fit: contain; scale: var(--escala, 1); }
.otros span { font-family: var(--ctx); font-weight: 600; text-transform: uppercase; color: #fff; font-size: 13px; line-height: 1.2; } .otros small { font-size: 14px; color: var(--gris); }

/* ---------- Adaptación ---------- */
@media (max-width: 1000px) {
  .otros { grid-template-columns: repeat(3, 1fr); }
  .cifras { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cab__menu { display: block; }
  .cab__nav { position: absolute; top: var(--cab); left: 0; right: 0; background: #000; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--borde) 24px; font-size: 20px; border-bottom: 1px solid var(--linea); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--sale), visibility 0s .45s; }
  .cab__nav.abierto { clip-path: inset(0); visibility: visible; transition: clip-path .45s var(--sale); }
  .cab__nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--linea); }
  .cab__cta { margin-top: 20px; min-height: 52px; font-size: 17px; }
  .phev__in, .nos__in, .cont__in, .edi { grid-template-columns: 1fr; }
  .edi figure { aspect-ratio: 4 / 5; }
  .pasos { grid-template-columns: 1fr; }
  .guia__ops { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--borde)); padding-inline: var(--borde); }
  .guia__ops::-webkit-scrollbar { display: none; } .guia__ops button { flex: none; }
  .riel-cab .flechas { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .esc { grid-template-rows: auto minmax(230px, 1fr) auto auto; }
  .esc__auto img { max-height: 30vh; }
  .esc { --alto-titulo: 12vh; }
  .esc__tabs { justify-self: stretch; max-width: none; margin-inline: var(--borde); }
  .chips li { font-size: 14px; }
  .serv, .sedes { grid-template-columns: 1fr; }
  .serv li { min-height: 0; }
  .guia__res .tarj { grid-template-columns: 1fr; padding: 8px 24px 26px; }
  .form { grid-template-columns: 1fr; }
  .form__fin .btn { width: 100%; }
  .otros { grid-template-columns: 1fr 1fr; }
  .pie__rs { height: 40px; } .pie__mm { height: 84px; } .pie__sep { height: 52px; } .pie__firma { gap: 18px; }
  .pie__contacto { flex-direction: column; gap: 14px; }
  .pie__legal { padding-right: 0; padding-bottom: 64px; }
  .wa { right: 12px; bottom: 12px; height: 48px; padding: 0 6px; }
  .wa span { display: none; }
  .esc__acc .btn { min-height: 46px; padding: 0 20px; }
  .sec { padding-top: 80px; }
  .mod { flex-basis: 82vw; }
  .phev__in { padding: 22px 18px; }
  .phev__modos { display: flex; }
  .phev__modos button { flex: 1; padding: 0 8px; font-size: 14px; }
  .d-comp text { font-size: 44px; }
  .cifras { gap: 10px; } .sedes { gap: 12px; }
  .horario { justify-content: flex-start; }
  .fichas a { grid-template-columns: 1fr auto; padding: 16px 20px; } .fichas small { display: none; }
  .specs dl div { grid-template-columns: 1fr; gap: 2px; }
  .cifras > div { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .masc > span, .js .mh__auto img, .js [data-sube] { transform: none !important; opacity: 1 !important; }
  .js .carga { display: none; }
  .radar__barrido { display: none; }
}
