:root {
  --bg: #f2f2f0;
  --text: #17191b;
  --muted: #4e5256;
  --accent: #b7192c;
  --line: #1a1e221f;
  --heading: "Archivo", Arial, sans-serif;
  font-family: Arial, sans-serif;
  color-scheme: light;
}
body { padding-bottom: 28px; }
.ambient { background: #efefed; }
.ambient > div { background: repeating-linear-gradient(135deg,transparent 0 100px,#25292d08 101px 102px,transparent 103px 145px),linear-gradient(155deg,#fff 20%,#e5e7e8 80%); }
.glass { border-radius: 9px; background: #ffffffe0; box-shadow: 0 10px 30px #181b2010; backdrop-filter: blur(12px); }
.header { position: fixed; inset: 16px 0 auto; height: auto; margin: 0; }
.bar, .header.compact .bar { border-radius: 8px; background: #fffffff2; }
.bar { padding-inline: 24px; }
.brand { color: #161719; font-family: var(--heading); font-weight: 900; font-style: italic; letter-spacing: -.055em; }
.brand small { color: #53565b; font: 700 .62rem Arial,sans-serif; letter-spacing: .16em; }
.brand img { object-fit: contain; }
.bar nav a { color: #34373b; border-radius: 4px; }
.bar nav a:hover, .bar nav a[aria-current] { color: #a21628; background: #eee; }
.progress { background: #c91e32; }
.home .hero { min-height: 100vh; min-height: 100svh; border: 0; border-radius: 0; background: #111214; color: #fff; backdrop-filter: none; }
.hero-content { padding: 115px 0 62px; }
.hero h1 { max-width: 12ch; font-size: clamp(3rem,7.4vw,7.3rem); letter-spacing: -.07em; }
.hero-photo { object-position: center 55%; }
.hero-shade { background: linear-gradient(90deg,#090b0df2 0%,#090b0dcc 23%,#090b0d35 61%,transparent 91%),linear-gradient(0deg,#090b0dba,transparent 34%); }
.hero .eyebrow { color: #fff; border-left: 3px solid #ea2e40; padding-left: 12px; }
.hero .intro { color: #f0eeee; }
.eyebrow,.category { color: #9e1525; letter-spacing: .11em; }
.home-content { padding-top: 10px; }
.quick a { border-radius: 7px; padding-block: 23px; }
.quick svg { color: #a9192a; }
.quick small { color: #54585b; }
.split figure { border-radius: 6px; }
.button { border: 1px solid transparent; border-radius: 5px; background: #a91628; color: #fff; box-shadow: none; }
.button:hover { background: #8d1121; box-shadow: none; transform: translateY(-2px); }
.button.outline { color: #222; background: transparent; border-color: #6c7076; box-shadow: none; }
.hero .button.outline { color: #fff; background: #15161960; border-color: #fff8; }
.social-dock { position: fixed; z-index: 12; right: max(18px,env(safe-area-inset-right)); bottom: max(18px,env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.social { border: 0; border-radius: 50%; background: #23272c; color: #fff; box-shadow: 0 4px 14px #0003; }
.social svg { width: 23px; height: 23px; }
.social.wa { background: #087748; }
.social.fb { background: #1657b4; }
.social.wa:hover,.social.wa:focus-visible { background: #065e38; }
.social.fb:hover,.social.fb:focus-visible { background: #10478e; }
.social-dock .social { width: 50px; height: 50px; }
.footer { padding-right: 75px; }
.footer .social { display: none; }
.location-photo figcaption { color: #fff; background: #181a1de0; }
.pin { background: #e34453; }
input,select,textarea { border: 1px solid #a3a7ac; border-radius: 5px; background: #fff; color: #1b1e21; }
:focus-visible { outline-color: #a41628; }
.hero :focus-visible,.social:focus-visible { outline-color: #608ee9; }
.loader { color: #fff; background: #141518; }
.loader strong span { color: #ef444f; }
.loader i { background: #e53c4d; }
.stock { padding-top: 130px; }
.service-heading { padding-bottom: 25px; }
.service-heading h1 { font-size: clamp(2.7rem,7vw,5.2rem); }
.service-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.service-form, .service-panel { padding: clamp(17px,3vw,32px); }
.service-panel h2 { font-size: clamp(1.5rem,3vw,2.3rem); }
.result { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 6px; }
.result p { white-space: pre-line; }
.result .error { color: #9e1525; }
.advanced { margin-top: 18px; }
.advanced summary { cursor: pointer; font-weight: 700; }
.advanced .filters { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
.advanced .button { margin-top: 12px; }
@media(max-width:680px) {
  .header { top: 8px; }
  .bar nav { justify-content: space-between; }
  .bar nav a { padding-inline: 4px; font-size: .8rem; }
  .hero-content { padding: 165px 0 92px; }
  .hero-photo { height: 74%; object-position: 66% center; }
  .hero-shade { background: linear-gradient(0deg,#0d0f11 12%,#0d0f11c9 32%,transparent 74%),linear-gradient(180deg,#0d0f1161,transparent 36%); }
  .social-dock { right: 10px; bottom: max(10px,env(safe-area-inset-bottom)); }
  .social-dock .social { width: 44px; height: 44px; }
  .service-layout { grid-template-columns: 1fr; }
  .service-panel { padding-right: 48px; }
  .advanced .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

:root {
  --heading: "Manrope", system-ui, sans-serif;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
h1,h2,h3 { font-weight: 800; letter-spacing: -.055em; }
h2 { line-height: 1.07; }
.brand { font-style: normal; letter-spacing: -.072em; }
.ambient { background: #f4f4f0; }
.ambient > div {
  inset: -25%;
  background:
    radial-gradient(ellipse at 75% 26%,#d9e1ec 0,transparent 38%),
    radial-gradient(ellipse at 23% 66%,#e6bfc0 0,transparent 42%),
    radial-gradient(ellipse at 64% 73%,#e5dfca 0,transparent 41%);
  transform: translate3d(0,var(--drift,0px),0) rotate(-8deg);
}
.ambient::after {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(ellipse at center,#fff9 0,transparent 55%);
  animation: ambient-glow 15s ease-in-out infinite alternate;
}
@keyframes ambient-glow {
  from { transform: translate(-20%,-12%); }
  to { transform: translate(19%,13%); }
}
.bar {
  width: min(calc(100% - 32px),1040px); min-height: 67px; padding: 5px 18px;
  border-radius: 25px; background: #fffffff0;
  transition: width .55s cubic-bezier(.22,1,.36,1),min-height .55s cubic-bezier(.22,1,.36,1),border-radius .45s,padding .45s;
}
.header.compact .bar { width: min(calc(100% - 24px),420px); min-height: 49px; padding: 2px 10px; border-radius: 28px; }
.bar .brand img { width: 49px; height: 49px; }
.header.compact .brand img { width: 35px; height: 35px; }
.header.compact .bar .brand { font-size: 1.16rem; }
.bar .brand { transition: font-size .45s; }
.header.compact .progress { animation: bar-sheen .58s ease-out both; }
@keyframes bar-sheen { 0% { opacity: .2; } 40% { opacity: 1; filter: drop-shadow(0 0 7px #c91e32); } 100% { opacity: .75; } }
.navigation { position: relative; }
.navigation summary {
  list-style: none; cursor: pointer; min-height: 41px; display: flex; align-items: center; gap: 11px;
  padding: 0 14px; background: #22262b; color: #fff; border-radius: 24px; font-weight: 700;
}
.navigation summary::-webkit-details-marker { display: none; }
.navigation summary i { position: relative; width: 16px; height: 16px; }
.navigation summary i::before,.navigation summary i::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .28s;
}
.navigation summary i::before { top: 4px; }
.navigation summary i::after { top: 10px; }
.navigation[open] summary i::before { transform: translateY(3px) rotate(45deg); }
.navigation[open] summary i::after { transform: translateY(-3px) rotate(-45deg); }
.menu-shell {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(310px,calc(100vw - 46px)); padding: 9px;
  background: #fdfdfbf5; border-radius: 21px; border: 1px solid #151b261e; box-shadow: 0 18px 50px #22273534;
}
.navigation[open] .menu-shell { animation: menu-enter .34s cubic-bezier(.22,1,.36,1) both; transform-origin: top right; }
@keyframes menu-enter { from { opacity: 0; transform: translateY(-10px) scale(.94); clip-path: inset(0 0 70% 8% round 21px); } }
.navigation nav { display: grid; width: auto; gap: 2px; }
.navigation nav a { font-size: 1rem; border-radius: 13px; padding: 10px 13px; }
.button { border-radius: 24px; }
.social-dock { display: flex; flex-direction: column; padding: 6px; gap: 4px; border-radius: 36px; background: #20252ded; border: 1px solid #fff4; box-shadow: 0 8px 24px #22273538; }
.social-dock .social { width: 40px; height: 40px; background: transparent; box-shadow: none; }
.social-dock .wa { color: #9ef1c1; }
.social-dock .fb { color: #b9ceff; }
.social-dock .social:hover,.social-dock .social:focus-visible { background: #fff2; transform: scale(1.08); }
.map-link { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: #a91628; transition: transform .22s; }
.map-link:hover { transform: translateY(-4px); }
.map-link svg,.facebook-load svg { width: 23px; height: 23px; }
.home-content { padding-top: clamp(42px,8vw,100px); }
.route { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.route-photo { overflow: hidden; border-radius: 44% 9% 28% 9% / 33% 8% 24% 8%; }
.route-photo img { width: 100%; height: auto; }
.route-copy { position: relative; z-index: 1; margin-left: -38px; margin-top: 92px; padding: clamp(23px,4vw,54px); background: #fffffff0; border-radius: 28px 60px 26px 38px; box-shadow: 0 20px 50px #28263618; }
.route-links { display: block; margin-top: 20px; }
.route-links a { display: block; padding: 11px 0; border-top: 1px solid var(--line); }
.route-links a:hover strong { color: var(--accent); }
.route-links strong,.route-links span { display: block; }
.route-links strong { font: 800 1.12rem var(--heading); }
.route-links span { color: var(--muted); margin-top: 3px; }
.reasons { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px,6vw,95px); }
.reasons header { padding-top: 26px; }
.reason-list { margin: 0; }
.facebook-section { padding: clamp(18px,4vw,48px); background: #fdfcf8d9; border-radius: 48px 12px 48px 20px; }
.stories { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px 30px; }
.story { padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.story:first-child { grid-row: span 2; background: #23272e; color: #fff; border-radius: 22px 22px 50px 22px; padding: clamp(14px,3vw,29px); display: grid; align-content: center; }
.story:first-child p { color: #dedfe4; }
.story:first-child .button.outline,.story:first-child .text-link { color: #fff; border-color: #fff8; }
.text-link { color: #911725; text-decoration: underline; text-underline-offset: .23em; font-weight: 700; }
.timeline { padding-top: 15px; border-top: 1px solid var(--line); margin-top: 16px; }
.timeline h3 { margin-bottom: 11px; }
.facebook-embed { flex: 0 0 100%; width: 100%; order: 3; }
.facebook-embed iframe { display: block; width: min(100%,500px); border: 0; background: #fff; border-radius: 12px; }
.location { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; grid-template-columns: .87fr 1.13fr; gap: clamp(20px,7vw,100px); }
.location .location-photo { border-radius: 10% 25% 10% 29%; }
.service .glass,.stock .glass,.vehicle { border-radius: 22px; }
@media(max-width: 680px) {
  .bar { flex-wrap: nowrap; }
  .route,.reasons,.stories,.location { grid-template-columns: 1fr; }
  .route-photo { margin-right: 16px; }
  .route-copy { margin: -25px 0 0 12px; }
  .reasons header { padding-top: 0; }
  .story:first-child { grid-row: auto; }
  .home-content,.stock { padding-right: 29px; width: calc(100% - 24px); }
  .social-dock .social { width: 36px; height: 36px; }
}
@media(prefers-reduced-motion:reduce) {
  .ambient > div { transform: none; }
}

/* Continuous layout for the home page */
.ambient { background: #f5f4f0; }
.ambient > div {
  inset: -36% -30%;
  background: radial-gradient(ellipse at 69% 55%,#c9ced4 0,transparent 32%),
    radial-gradient(ellipse at 30% 36%,#fff 12%,transparent 47%);
  transform: translate3d(var(--sweep-x,0px),var(--drift,0px),0) rotate(var(--sweep-angle,-14deg));
}
.ambient::after {
  inset: -30%;
  background: linear-gradient(122deg,transparent 31%,#fff8 47%,#d4a2a627 52%,transparent 59%);
  transform: translate3d(var(--sweep-x,0px),0,0);
  animation: none;
}
.home .hero { background: #17191c; }
.hero-photo { object-position: right center; }
.hero-shade { background: linear-gradient(90deg,#08090ce0,#08090ca1 29%,transparent 68%),linear-gradient(0deg,#0e11158a,transparent 29%); }
.hero h1 { font-family: "Source Sans 3", system-ui, sans-serif; font-size: clamp(3.4rem,7.7vw,7.5rem); font-weight: 700; max-width: none; letter-spacing: -.065em; line-height: .88; }
.hero h1 > span:nth-child(2) { color: #e3e3e0; }
.home-content { padding-top: clamp(35px,6vw,90px); }
.route { grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr); gap: clamp(24px,7vw,112px); }
.route-photo { order: 2; border-radius: 4px 4px 84px 4px; position: relative; }
.route-photo img { aspect-ratio: 5 / 4; object-fit: cover; }
.route-copy { margin: 0; padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.route-links a { padding-block: 15px; display: grid; }
.route-links a:last-child { border-bottom: 1px solid var(--line); }
.reasons { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: clamp(24px,6vw,95px); border-block: 1px solid var(--line); padding-block: clamp(26px,5vw,68px); }
.reasons header { padding-top: 0; }
.facebook-section { padding: 0; background: transparent; border-radius: 0; }
.stories { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(13px,2vw,32px); align-items: start; }
.story,.story:first-child { grid-row: auto; display: block; color: inherit; border-radius: 0; padding: 17px 0 0; background: transparent; border-top: 1px solid var(--line); }
.story h3 { font-size: clamp(1.35rem,2.4vw,2rem); }
.story:first-child p { color: var(--muted); }
.story:first-child p.eyebrow { color: #9e1525; }
.story:first-child .text-link { color: #911725; }
.facebook-embed { margin: 14px 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.facebook-embed iframe { width: 100%; max-width: none; height: 420px; border-radius: 0; }
.facebook-embed.video iframe { background: #15171a; }
.facebook-embed.page { max-width: 420px; }
.facebook-embed.page iframe { height: 480px; }
.timeline { padding-top: 24px; margin-top: 30px; }
.location { margin-top: clamp(50px,9vw,115px); }
.location .location-photo { border-radius: 4px 4px 4px 70px; }
.location-photo img { aspect-ratio: 5 / 4; }
.social-dock { background: transparent; border: 0; box-shadow: none; gap: 9px; padding: 0; }
.social-dock .social,.social { outline-offset: 3px; width: 48px; height: 48px; border-radius: 15px; background: #fff; color: #20242a; border: 1px solid #16191f26; box-shadow: 0 4px 18px #16191f25; }
.social-dock .wa,.social.wa { color: #09603c; }
.social-dock .fb,.social.fb { color: #184f9f; }
.social-dock .social:hover,.social:hover,.social-dock .social:focus-visible { background: #f9f9f7; color: #181c21; }
.social-dock .social svg,.social svg { width: 25px; height: 25px; }
@media (max-width: 880px) {
  .stories { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 681px) and (max-aspect-ratio: 4/3) {
  .hero-photo { top: 10%; height: auto; object-fit: contain; object-position: top center; }
  .hero-shade { background: linear-gradient(0deg,#17191c 27%,transparent 66%); }
  .home .hero { align-items: end; }
  .hero-content { padding-top: 48vh; }
}
@media (max-width: 680px) {
  .hero-photo { height: auto; width: 100%; top: 18%; object-fit: contain; object-position: center; }
  .hero-shade { background: linear-gradient(0deg,#17191c 16%,transparent 65%); }
  .hero-content { padding: 40vh 0 70px; }
  .hero h1 { font-size: clamp(2.6rem,10vw,4.3rem); }
  .home-content,.stock { padding-right: 27px; }
  .route,.reasons,.stories { grid-template-columns: 1fr; }
  .route-photo { margin: 0; border-bottom-right-radius: 54px; }
  .location .location-photo { border-bottom-left-radius: 48px; }
  .social-dock .social { width: 42px; height: 42px; }
  .facebook-embed { max-width: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient > div,.ambient::after { transform: none; }
}

.header { top: 0; }
.header .bar {
  width: 100%; min-height: 74px; padding: 6px max(22px,calc((100vw - 1200px)/2));
  border-radius: 0; border-width: 0 0 1px;
  transition: width .48s cubic-bezier(.2,1,.32,1), padding .48s, min-height .48s, border-radius .48s, transform .48s;
}
.header.compact .bar {
  width: min(calc(100% - 24px),420px); min-height: 49px; padding: 2px 10px;
  border-radius: 28px; border-width: 1px; transform: translateY(10px);
}
.header .brand img { transform-origin: center; transition: transform .43s cubic-bezier(.23,1,.32,1),width .4s,height .4s; }
.header .brand:hover img,.header .brand:focus-visible img { transform: rotate(-9deg) scale(1.1); }
.header .brand span { transition: letter-spacing .35s; }
.header .brand:hover span { letter-spacing: -.045em; }
.header.compact .brand img { animation: emblem-settle .51s ease both; }
@keyframes emblem-settle { 36% { rotate: -12deg; scale: 1.14; } 73% { rotate: 5deg; } }
.navigation summary { transition: background .25s,color .25s,transform .25s; }
.navigation summary:hover,.navigation[open] summary { background: #a91628; transform: translateY(-1px); }
.navigation[open] nav a { animation: option-enter .37s both; }
.navigation[open] nav a:nth-child(2) { animation-delay: 30ms; }
.navigation[open] nav a:nth-child(3) { animation-delay: 60ms; }
.navigation[open] nav a:nth-child(4) { animation-delay: 90ms; }
.navigation[open] nav a:nth-child(5) { animation-delay: 120ms; }
@keyframes option-enter { from { opacity: 0; transform: translateY(-7px); } }

.ambient { background: #eaedef; }
.ambient > div {
  background:
    radial-gradient(ellipse at 78% 36%,#d0dade 0 13%,transparent 40%),
    radial-gradient(ellipse at 15% 69%,#d69b9e 0,transparent 39%),
    radial-gradient(ellipse at 45% 53%,#fbf8f2 0 39%,#e6e8e9 72%);
}
.ambient::after {
  background:
    conic-gradient(from 218deg at 76% 65%,transparent 0deg,#fff9 18deg,transparent 44deg 52deg,#a9162820 73deg,transparent 94deg),
    linear-gradient(120deg,transparent 35%,#fff9 47%,#b72d3c1c 57%,transparent 70%);
  transform: translate3d(var(--sweep-x,0px),var(--drift,0px),0) rotate(var(--sweep-angle,-14deg));
}
.route-photo img { transition: transform .65s cubic-bezier(.22,1,.36,1),filter .45s; }
.route-photo:hover img { transform: scale(1.085) rotate(-1deg); filter: contrast(1.06) saturate(1.15); }
.route-links a:hover strong,.route-links a:focus-visible strong { transform: translateX(10px); color: var(--accent); }
.route-links a:hover span,.route-links a:focus-visible span { transform: translateX(5px); }
.timeline {
  display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1fr); gap: clamp(16px,5vw,60px);
  align-items: start; padding: clamp(18px,4vw,40px); background: #fffdf9df;
  border: 1px solid var(--line); border-radius: 26px;
}
.timeline-copy { padding-top: 10px; }
.timeline .facebook-embed.page { margin: 0; width: 100%; max-width: 500px; justify-self: center; border-radius: 15px; }
.timeline .facebook-embed.page iframe { height: 540px; }
.facebook-embed.video { background: #15171a; }
.facebook-embed.video iframe:not([src]) { visibility: hidden; }
@media(min-width:881px) {
  .stories .story:last-child { margin-top: 72px; }
}
@media(max-width:680px) {
  .header .bar { padding-inline: 14px; }
  .header.compact .bar { padding-inline: 9px; }
  .timeline { grid-template-columns: 1fr; gap: 12px; padding: 13px; }
}
@media(prefers-reduced-motion:reduce) {
  .ambient::after,.route-photo:hover img { transform: none; }
}

.header:not(.compact) .bar { border: 0; box-shadow: none; }
.header:not(.compact) .progress { opacity: 0; }
.home .hero::before {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background: #17191c url("assets/yaris-rojo.jpg") center / cover no-repeat;
}
.social-dock .social,.social:not(.map-link) {
  background: none; border: 0; box-shadow: none;
}
.social-dock .social svg,.social svg {
  width: 31px; height: 31px; paint-order: stroke;
  filter: drop-shadow(0 1px 1px #fff) drop-shadow(0 0 2px #fff);
}
.social-dock .wa,.social.wa { color: #078347; }
.social-dock .fb,.social.fb { color: #1554ae; }
.social-dock .social:hover,.social-dock .social:focus-visible,.social:hover {
  background: none; color: inherit; box-shadow: none;
}
.social-dock .wa:hover,.social.wa:hover { color: #056638; }
.social-dock .fb:hover,.social.fb:hover { color: #103e83; }
.social:hover svg,.social:focus-visible svg { animation: social-lift .52s ease both; }
@keyframes social-lift {
  32% { transform: translateY(-4px) scale(1.16) rotate(-9deg); }
  67% { transform: translateY(1px) rotate(5deg); }
}
.facebook-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px,3vw,30px); }
.facebook-photos a { min-width: 0; }
.facebook-photos figure { overflow: hidden; border-radius: 18px; background: #22252a; color: #fff; }
.facebook-photos img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; transition: transform .4s; }
.facebook-photos a:hover img { transform: scale(1.025); }
.facebook-photos figcaption { padding: 12px 14px; font-family: var(--heading); font-weight: 800; }
.deliveries { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); align-items: start; gap: clamp(16px,6vw,90px); }
.delivery-gallery { min-width: 0; width: min(100%,400px); justify-self: end; }
.delivery-feed {
  position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 535px; overflow: auto;
  scroll-snap-type: y mandatory; border-radius: 22px; background: #1a1d20;
  overscroll-behavior-y: auto; scrollbar-width: thin;
}
.delivery-item {
  position: relative; width: 100%; height: 100%; margin: 0; overflow: hidden;
  color: white; background: #17191b; scroll-snap-align: start;
}
.delivery-item img,.delivery-item video { width: 100%; height: 100%; object-fit: contain; }
.delivery-item video { display: block; cursor: pointer; }
.delivery-item figcaption {
  position: absolute; inset: auto 0 0; display: grid; justify-items: start; gap: 5px;
  padding: 45px 17px 18px; background: linear-gradient(transparent,#0d0e11ed);
  pointer-events: none;
}
.delivery-item figcaption a,.delivery-item figcaption button { pointer-events: auto; }
.delivery-item figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.delivery-item figcaption button { background: #24272c; color: white; border: 1px solid #fff8; border-radius: 20px; padding: 4px 12px; }
#delivery-controls .button { min-width: 46px; padding-inline: 0; font-size: 1.4rem; }
#delivery-controls .button:disabled { opacity: .4; cursor: default; transform: none; }
.delivery-admin { margin-top: 13px; padding: 14px; border-radius: 15px; background: #ffffffb8; border: 1px solid var(--line); }
.delivery-admin summary { cursor: pointer; font-weight: 800; }
.delivery-admin form { display: grid; gap: 9px; }
.delivery-admin ul { padding: 0; list-style: none; }
.delivery-admin li { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 6px; overflow-wrap: anywhere; }
@media(max-width:680px) {
  .home .hero::before { background-image: linear-gradient(#17191c88,#17191c 72%),url("assets/yaris-rojo.jpg"); }
  .deliveries { grid-template-columns: 1fr; }
  .delivery-gallery { justify-self: start; }
}

/* Home layout */
.ambient { background: #e8e9e9; }
.ambient > div { background: radial-gradient(ellipse at 45% 44%,#f7f7f6 0,transparent 66%); }
.ambient::after { background: none; }
.home-page {
  --header-height: 74px;
  --text: #f4f3f1;
  --muted: #c3c3c5;
  --accent: #fa7780;
  --line: #ffffff24;
  background: #17191c;
}
.home-page .ambient { background: #17191c; }
.home-page .ambient > div {
  background: radial-gradient(ellipse at 84% 43%,#303238 0,transparent 43%),
    linear-gradient(138deg,transparent 41%,#f5f6f509 49%,transparent 64%);
}
.home-page .header:not(.compact) .bar { height: var(--header-height); background: #f9f8f6; }
.home-page .home { padding-top: var(--header-height); }
.home-page .home .hero {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  background: #151719;
  box-shadow: none;
}
.home-page .hero::before { display: none; }
.home-page .hero-photo { top: 0; }
.home-page .hero-content { padding-top: clamp(42px,10vh,98px); }
.hero-offers {
  position: relative; z-index: 1; align-self: end; justify-self: end;
  display: flex; gap: 12px; max-width: min(780px,calc(100% - 32px)); margin: 0 16px 44px;
  padding: 5px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.hero-offer {
  flex: 0 0 clamp(194px,24vw,285px); scroll-snap-align: end;
  overflow: hidden; border-radius: 10px; background: #161719;
  border: 1px solid #fff4; box-shadow: 0 5px 18px #0006;
}
.hero-offer img,.hero-offer video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #121315; }
.hero-offer figcaption { padding: 8px 13px; overflow-wrap: anywhere; }
.home-content { padding-top: 0; display: grid; gap: clamp(64px,10vw,150px); }
.home-content > .section { margin-top: 0; }
.home-content > .facebook-section { margin-top: clamp(38px,8vw,95px); }
.home-page .eyebrow,.home-page .category { color: #ff8e96; }
.home-page .hero .eyebrow { color: #fff; }
.home-page .text-link { color: #ffadb2; }
.home-page .button.outline { color: #fff; border-color: #ffffff70; }
.facebook-feature { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,.85fr); align-items: center; gap: clamp(18px,5vw,75px); }
.facebook-feature-photo { display: block; overflow: hidden; border-radius: 4px; }
.facebook-feature-photo img {
  display: block; width: 100%; aspect-ratio: 6 / 5; height: auto; object-fit: cover;
  object-position: 53% 59%; transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.facebook-feature-photo:hover img,.facebook-feature-photo:focus-visible img { transform: scale(1.045); }
.facebook-feature-copy { display: grid; align-content: center; justify-items: start; gap: 10px; }
.facebook-feature-copy p { margin: 0; }
.facebook-feature-copy a + a { margin-top: 8px; }
.route { align-items: center; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); }
.route-photo { border-radius: 4px; }
.route-photo img { aspect-ratio: 13 / 8; object-position: center 55%; }
.route-links span { color: var(--muted); }
.reasons { padding-block: 30px; }
.location .location-photo { border-radius: 4px; }
.location-photo img { aspect-ratio: 1 / 1; object-position: center 64%; }
.deliveries { grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); }
.delivery-gallery { width: min(100%,540px); justify-self: center; }
.delivery-feed {
  display: grid; gap: 18px; width: 100%; overflow: visible; aspect-ratio: auto;
  max-height: none; border-radius: 0; background: transparent; scroll-snap-type: none;
}
.delivery-item {
  width: 100%; height: auto; aspect-ratio: 9 / 13; max-height: 76svh;
  border-radius: 12px; border: 1px solid var(--line);
}
.delivery-item img,.delivery-item video { display: block; object-fit: cover; object-position: 55% center; }
.delivery-item video { object-position: center; }
.delivery-item figcaption { overflow-wrap: anywhere; }
.control-panel { margin: 0 0 10px; padding: clamp(15px,3vw,28px); color: var(--text); background: #212429; border-color: var(--line); }
.control-panel summary { font: 800 1.15rem var(--heading); }
.control-panel form { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
.home-page .footer.glass { background: #22252a; }
.home-page .footer .brand,.home-page .footer .brand small { color: #f4f3f1; }
.home-page .footer .brand img { background: #f0efed; border-radius: 8px; }
.social-dock { right: max(18px,env(safe-area-inset-right)); bottom: max(18px,env(safe-area-inset-bottom)); gap: 11px; }
.social-dock .social { width: 49px; height: 49px; }
.social-dock .social svg { width: 34px; height: 34px; }
.social-dock .wa { color: #087941; }
.social-dock .fb { color: #205bb7; }
.home-page .social-dock .wa { color: #62edac; }
.home-page .social-dock .fb { color: #a0c4ff; }
.home-page .social-dock .social svg { filter: drop-shadow(0 1px 2px #101113); }
.social-dock .social:hover svg,.social-dock .social:focus-visible svg { animation: contact-spring .65s both; filter: drop-shadow(0 3px 6px currentColor); }
@keyframes contact-spring {
  28% { transform: translateY(-6px) rotate(-12deg) scale(1.24); }
  61% { transform: translateY(2px) rotate(7deg) scale(.96); }
  82% { transform: translateY(-2px) rotate(-3deg); }
}
@media(max-width:680px) {
  .home-page { --header-height: 66px; }
  .home-page .header:not(.compact) .bar { min-height: var(--header-height); }
  .home-page .hero-content { padding-top: max(54vw,225px); }
  .home-page .hero-photo { height: auto; object-position: center top; }
  .home-page .hero-shade { background: linear-gradient(0deg,#151719 30%,transparent 74%); }
  .facebook-feature,.route,.deliveries,.control-panel form { grid-template-columns: 1fr; }
  .facebook-feature-photo img { aspect-ratio: 4 / 5; object-position: 53% 56%; }
  .delivery-gallery { justify-self: start; }
  .social-dock { right: 8px; bottom: 10px; gap: 5px; }
  .social-dock .social { width: 40px; height: 40px; }
  .social-dock .social svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .facebook-feature-photo:hover img,.facebook-feature-photo:focus-visible img { transform: none; }
}

.home-page {
  --text: #1e2125;
  --muted: #4f5459;
  --accent: #a91628;
  --line: #23272e24;
  background: #fff;
}
.home-page .ambient { background: #fff; }
.home-page .ambient > div {
  background:
    radial-gradient(ellipse at 64% 47%,#e4e8ed80 0,transparent 39%),
    repeating-radial-gradient(ellipse at 78% 40%,transparent 0 77px,#32425513 78px 79px,transparent 80px 124px);
}
.home-page .hero { color: #fff; }
.home-page .eyebrow,.home-page .category,.home-page .text-link { color: #951727; }
.home-page .button.outline { color: #24272d; border-color: #686f75; }
.home-page .hero .button.outline { color: #fff; border-color: #fff9; }
.home-page .footer.glass,.control-panel { background: #f7f8f8; }
.home-page .footer .brand,.home-page .footer .brand small { color: #24272d; }
.home-page .social-dock .wa { color: #087941; }
.home-page .social-dock .fb { color: #205bb7; }
.home-page .social-dock .social svg { filter: drop-shadow(0 1px 1px white); }
.home-page .social-dock .social:hover svg,.home-page .social-dock .social:focus-visible svg { filter: drop-shadow(0 2px 5px currentColor); }
.home-content > .home-stock { margin-top: clamp(36px,6vw,78px); }
.home-content > .facebook-section { margin-top: 0; }
.stock-categories { display: flex; gap: 8px; flex-wrap: wrap; }
.stock-categories .button[aria-pressed="true"] { background: #25282d; color: white; border-color: #25282d; }
.home-stock .vehicle img {
  display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: contain;
  padding: 8px; background: #eef0f2;
}
.home-stock .vehicle { border-radius: 14px; }
.home-stock .vehicle h3 { font-size: 1.46rem; }
.control-panel .manage { background: #fff; margin-top: 16px; border-radius: 13px; padding: clamp(12px,2.4vw,28px); }
.control-panel #vehicle-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.facebook-feature-photo,.route-photo,.location .location-photo {
  background: radial-gradient(ellipse at 50% 55%,#fff,#e8e9ea);
  border: 1px solid #30343b1a;
  border-radius: 13px;
}
.facebook-feature-photo img { aspect-ratio: 4 / 3; object-fit: contain; }
.route-photo img { object-fit: contain; aspect-ratio: 4 / 3; }
.location-photo img { object-fit: contain; aspect-ratio: 1 / 1; }
.deliveries { display: block; }
.deliveries .section-head { align-items: center; }
.deliveries p { margin-bottom: 0; }
.delivery-gallery { width: 100%; }
.delivery-nav { display: flex; gap: 8px; flex: none; }
.delivery-nav button {
  border: 1px solid #30343b38; border-radius: 50%; background: white; color: #23272d;
  width: 42px; height: 42px; font-size: 1.45rem; line-height: 1;
}
.delivery-nav button:disabled { opacity: .4; cursor: default; }
.delivery-feed {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(185px,24%,260px);
  gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
}
.delivery-item { aspect-ratio: 9 / 16; max-height: none; border-color: #17191c; background: #24262a; }
.delivery-item img,.delivery-item video { object-fit: contain; }
.delivery-expand {
  position: absolute; top: 9px; right: 9px; padding: 6px 11px; border-radius: 18px;
  background: #25282de8; border: 1px solid #fff9; color: white;
}
#delivery-viewer {
  position: fixed; inset: 0; border: 1px solid #fff4; border-radius: 13px; padding: 15px;
  width: fit-content; max-width: calc(100vw - 30px); background: #1c1e22; color: #fff;
}
#delivery-viewer::backdrop { background: #16171bdc; }
#delivery-viewer form { text-align: right; }
#delivery-viewer button { background: transparent; color: white; border: 1px solid #fff8; border-radius: 50%; width: 39px; height: 39px; }
#delivery-viewer h3 { max-width: 30ch; font-size: 1.25rem; margin-block: 5px 10px; overflow-wrap: anywhere; }
#delivery-viewer-media img,#delivery-viewer-media video { display: block; max-width: 100%; max-height: 72svh; object-fit: contain; }
@media(max-width:680px) {
  .facebook-feature-photo img { aspect-ratio: 4 / 5; }
  .delivery-feed { grid-auto-columns: min(69vw,240px); }
}
@media(max-width:430px) { .control-panel #vehicle-form { grid-template-columns: 1fr; } }

.footer-controls { display: flex; justify-content: center; margin: 10px auto 0; }
.panel-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 3px 13px;
  border: 1px solid #30343b23; border-radius: 6px; color: #4c5156; font-size: .87rem;
}
.panel-link:hover { border-color: #a91628; color: #a91628; }
.panel-page .control-panel { max-width: 960px; }
.panel-page .service-heading { padding-bottom: 10px; }
.facebook-feature-photo,.route-photo,.location .location-photo {
  background: transparent; border: 0;
}
.facebook-feature-photo { justify-self: center; max-width: 540px; }
.facebook-feature-photo img { aspect-ratio: auto; height: auto; }
.location-photo img { aspect-ratio: auto; height: auto; }
.route-photo { position: relative; width: 100%; aspect-ratio: 8 / 5; }
.route-photo img {
  position: absolute; top: 50%; left: 50%; width: 151%; max-width: none; height: auto;
  aspect-ratio: auto; transform: translate(-50%,-54%);
}
.route-photo:hover img { transform: translate(-50%,-54%) scale(1.045); }
.home-stock .vehicle img,.stock .vehicle img,.hero-offer img,.hero-offer video {
  background: transparent; padding: 0; object-fit: contain;
}
.hero-offer:has(img) { background: transparent; border: 0; box-shadow: none; }
.delivery-item { display: flex; flex-direction: column; border: 0; background: transparent; }
.delivery-item img,.delivery-item video { display: block; width: 100%; height: 0; flex: 1; object-fit: contain; border-radius: 10px; }
.delivery-item figcaption { position: static; padding: 8px 0 0; background: transparent; color: #202328; }
#delivery-viewer-media img,#delivery-viewer-media video { background: transparent; }
@media(prefers-reduced-motion:reduce) {
  .route-photo:hover img { transform: translate(-50%,-54%); }
}

.review-link { gap: 8px; }
.review-link svg { width: 20px; height: 20px; }
.publication-picker { margin-top: 24px; max-width: 420px; }
.facebook-feature-photo video { display: block; width: 100%; max-height: 640px; }
.deliveries {
  padding: clamp(16px,4vw,48px);
  background: #f4f4f3;
  border-radius: 22px;
  border: 1px solid #22283116;
}
.deliveries h2 { font-family: "Source Sans 3",system-ui,sans-serif; font-weight: 800; letter-spacing: -.045em; }
.deliveries .section-head p { margin-top: 8px; }
.delivery-feed { grid-auto-columns: clamp(220px,30%,330px); }
.delivery-item {
  display: block; aspect-ratio: 9 / 15;
  border-radius: 16px; background: #17191c; color: #fff;
}
.delivery-item img,.delivery-item video { width: 100%; height: 100%; display: block; object-fit: contain; }
.delivery-item:has(img[src$="entrega-toyota.jpg"]) img { object-fit: cover; object-position: 57% center; }
.delivery-item figcaption {
  position: absolute; inset: auto 0 0; padding: 44px 14px 15px;
  background: linear-gradient(transparent,#101214e8 82%);
  color: #fff; z-index: 1; display: grid; gap: 8px;
  font-family: "Source Sans 3",system-ui,sans-serif;
}
.delivery-item figcaption strong { font-size: 1.25rem; font-weight: 800; line-height: 1.05; }
.delivery-expand {
  z-index: 2; top: 10px; right: 10px; min-height: 38px;
  border: 1px solid #fff7; color: #fff; background: #14181dcc;
  font-family: "Source Sans 3",system-ui,sans-serif; font-weight: 700;
}
.delivery-expand:hover,.delivery-expand:focus-visible { background: #1e242b; }
@media(max-width:680px) {
  .delivery-feed { grid-auto-columns: min(72vw,275px); }
}

.delivery-feed { --frame-height: clamp(235px,32vw,365px); align-items: start; }
.delivery-item.delivery-photo { width: var(--frame-height); height: var(--frame-height); aspect-ratio: 1; max-width: none; }
.delivery-feed:has(.delivery-photo) { grid-auto-columns: max-content; }
.delivery-feed:has(.delivery-photo) > .delivery-item:not(.delivery-photo) { height: var(--frame-height); width: calc(var(--frame-height) * 9 / 15); }
.delivery-item.delivery-photo img { object-fit: cover; object-position: center; }
.delivery-photo img[src$="/llaves.jpg"] { object-position: 50% 66%; }
.delivery-photo img[src$="/duster.jpg"] { object-position: 35% 50%; }
.delivery-photo img[src$="/peugeot.jpg"] { object-position: 50% 71%; }
.delivery-photo img[src$="/pickup.jpg"] { object-position: 58% 50%; }
.delivery-photo img[src$="/fiat-frente.jpg"] { object-position: 50% 72%; }
.delivery-photo img[src$="/volkswagen.jpg"] { object-position: 54% 50%; }
#delivery-viewer-media img { height: auto; width: auto; }
@media(max-width:680px) {
  .delivery-feed { --frame-height: min(61vw,305px); }
}

.home-content { grid-template-columns: minmax(0,1fr); }
.home-content > *, .delivery-gallery, .delivery-feed { min-width: 0; max-width: 100%; }
.delivery-feed { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  .delivery-feed { scroll-snap-type: none; }
}

.purchase-guide {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  align-items: start; gap: clamp(24px,6vw,84px); padding: clamp(20px,4vw,47px);
  border: 1px solid var(--line); border-radius: 16px; background: #f8f8f7;
}
.purchase-guide header p { max-width: 36ch; }
.purchase-steps { margin: 0; padding-left: 1.7em; }
.purchase-steps li { padding: 12px 0 12px 10px; border-bottom: 1px solid var(--line); }
.purchase-steps li:first-child { padding-top: 0; }
.purchase-steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.purchase-steps li::marker { color: #a91628; font-weight: 800; }
.purchase-steps h3 { font-size: clamp(1.08rem,2.25vw,1.45rem); }
.purchase-steps p { margin: 5px 0 0; }
.social-dock { gap: 10px; }
.social-dock .social,.home-page .social-dock .social {
  width: 51px; height: 51px; border: 1px solid #ffffff4a; border-radius: 50%;
  color: white; background: var(--social-brand); box-shadow: 0 5px 12px #101a2936;
  transition: transform .25s,background .25s,box-shadow .25s;
}
.social-dock .wa,.home-page .social-dock .wa { --social-brand: #148653; --social-hover: #0b6940; }
.social-dock .fb,.home-page .social-dock .fb { --social-brand: #185bbb; --social-hover: #10498f; }
.social-dock .social svg,.home-page .social-dock .social svg { width: 28px; height: 28px; filter: none; }
.social-dock .social:hover,.social-dock .social:focus-visible,.home-page .social-dock .social:hover,.home-page .social-dock .social:focus-visible {
  background: var(--social-hover); color: #fff; transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 16px #101a2940;
}
.home-page .social-dock .social:hover svg,.home-page .social-dock .social:focus-visible svg { filter: none; }
@media(max-width:680px) {
  .purchase-guide { grid-template-columns: minmax(0,1fr); }
  .social-dock .social,.home-page .social-dock .social { width: 42px; height: 42px; }
  .social-dock .social svg,.home-page .social-dock .social svg { width: 23px; height: 23px; }
}

.panel-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; }
.panel-section h2 { font-size: clamp(1.25rem,3vw,1.85rem); margin-bottom: 13px; }
.panel-section form .button { justify-self: start; }
.photo-remove { display: flex; align-items: center; align-self: end; min-height: 46px; }
.photo-remove input { width: 1rem; min-height: 0; }
.hero-offers {
  width: min(calc(100% - 34px),510px); max-width: none; flex-direction: column;
  overflow: visible; justify-self: end; margin-bottom: 40px;
}
.offer-sign {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr);
  overflow: hidden; isolation: isolate; border: 1px solid #ffffff42; border-radius: 12px;
  padding: 14px; gap: 12px; color: #fff; background: linear-gradient(130deg,#a91628,#65111e);
  box-shadow: 0 12px 30px #08090a65;
}
.offer-sign:has(img,video) { grid-template-columns: minmax(0,.8fr) minmax(0,1fr); align-items: center; }
.offer-sign::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(112deg,transparent 38%,#ffffff24 51%,transparent 64%);
  animation: offer-sheen 6.5s infinite;
}
.hero-offers:hover .offer-sign::after,.hero-offers:focus-within .offer-sign::after { animation-play-state: paused; }
@keyframes offer-sheen { 0%,20% { transform: translateX(-110%); } 57%,100% { transform: translateX(110%); } }
.offer-label { display: block; margin-bottom: 5px; color: #ffe3e5; font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.offer-sign h2 { font-size: clamp(1.3rem,3vw,2rem); overflow-wrap: anywhere; }
.offer-sign p { color: #ffe7e9; margin: 5px 0; overflow-wrap: anywhere; }
.offer-sign a { display: inline-block; color: white; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.offer-sign img,.offer-sign video { display: block; width: 100%; max-height: 135px; object-fit: contain; border-radius: 6px; }
@media(max-width:450px) {
  .panel-section form { grid-template-columns: 1fr; }
  .offer-sign:has(img,video) { grid-template-columns: minmax(0,1fr); }
}

.stock-card { position: relative; border-radius: 16px; border-color: #20263126; background: #fff; transition: transform .22s,box-shadow .22s; }
.stock-card:hover,.stock-card:focus-within { box-shadow: 0 14px 35px #1d23341a; }
.vehicle > .stock-card-media { padding: 0; position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.stock-card-media img,.home-stock .stock-card-media img,.stock .stock-card-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.stock-no-photo { color: #636973; }
.vehicle > .stock-card-copy { padding: 17px; }
.stock-card-copy .stock-card-summary { margin: 7px 0; }
.stock-card-price { display: block; font: 800 1.03rem var(--heading); }
.stock-card-open { padding: 0; border: 0; background: transparent; color: #a1172a; margin-top: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.stock-card-open::after { position: absolute; content: ""; inset: 0; border-radius: 16px; }
.stock-card-open:focus-visible::after { outline: 2px solid #a1172a; outline-offset: -3px; }
.vehicle-details {
  width: min(960px,calc(100% - 26px)); max-height: 89svh; padding: 0; overflow: auto;
  color: #23262d; background: #fff; border: 1px solid #272e3a33; border-radius: 18px;
  box-shadow: 0 28px 70px #191d254e;
}
.vehicle-details::backdrop { background: #0c101bd9; }
.vehicle-details-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px clamp(16px,3vw,28px); border-bottom: 1px solid #272e3a23;
}
.vehicle-details-heading h2 { font-size: clamp(1.35rem,4vw,2.35rem); }
.vehicle-details-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #272e3a33; background: #fff; color: #24282f; font-size: 1.6rem; flex: none; }
.vehicle-details-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 23px; padding: clamp(15px,3vw,28px); }
.vehicle-details-grid:not(:has(.vehicle-gallery)) { grid-template-columns: minmax(0,1fr); }
.vehicle-photo-preview img { display: block; width: 100%; height: min(46svh,460px); object-fit: contain; }
.vehicle-facts p { margin-top: 0; }
.vehicle-facts .category { color: #a1172a; }
.vehicle-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 15px; margin-top: 13px; }
.vehicle-specs div { padding: 7px 0; border-top: 1px solid #272e3a23; }
.vehicle-specs dt { color: #555d66; font-size: .87rem; }
.vehicle-specs dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.vehicle-description { color: #484e57; }
@media(max-width:650px) {
  .vehicle-details-grid { grid-template-columns: minmax(0,1fr); }
  .vehicle-photo-preview img { height: min(36svh,310px); }
}

.loader {
  --loader-tone: #ff5368;
  --loader-glow: #962c43;
  position: fixed; z-index: 50; gap: 13px; color: #fff;
  background: radial-gradient(ellipse at 50% 46%,var(--loader-glow),#151925 60%,#10131c);
}
.loader[data-page="stock"] { --loader-tone: #6eb2ff; --loader-glow: #214474; }
.loader[data-page="tasacion"] { --loader-tone: #ffbf6b; --loader-glow: #694023; }
.loader[data-page="panel"] { --loader-tone: #c99eff; --loader-glow: #503875; }
.loader.play { animation: loader-out .86s ease both; }
.loader strong { font: 800 clamp(1.15rem,4vw,1.75rem) var(--heading); letter-spacing: .035em; animation: loader-caption .48s ease both; }
.loader-mark {
  position: relative; display: grid; place-items: center; width: 91px; height: 91px;
  border-radius: 24px; background: #fff9; border: 1px solid #fff9; box-shadow: 0 16px 36px #0004;
}
.loader-mark::before {
  content: ""; position: absolute; inset: -7px; border: 2px solid transparent;
  border-top-color: var(--loader-tone); border-right-color: var(--loader-tone); border-radius: 28px;
  animation: loader-orbit .72s ease-out both;
}
.loader[data-page="tasacion"] .loader-mark { animation: loader-caption .44s cubic-bezier(.2,1.4,.4,1); }
.loader[data-page="panel"] .loader-mark { border-radius: 16px; animation: loader-panel .55s ease both; }
.loader-track { width: min(170px,55vw); height: 3px; background: #ffffff28; border-radius: 4px; overflow: hidden; }
.loader-track i { display: block; width: 100%; height: 100%; background: var(--loader-tone); animation-duration: .63s; }
@keyframes loader-orbit { from { transform: rotate(-150deg) scale(.85); opacity: 0; } }
@keyframes loader-caption { from { transform: translateY(8px); opacity: 0; } }
@keyframes loader-panel { from { transform: rotate(-13deg) scale(.85); opacity: 0; } }

.home-page .hero-content { align-self: center; }
.home-page .hero h1 { max-width: 13ch; font-size: clamp(3.25rem,7.25vw,7rem); line-height: .9; }
.home-page .hero .intro { margin-block: 19px 22px; }
.home-page .hero .actions { gap: 11px; }
.stock-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 12px; margin-bottom: 16px; border-block: 1px solid var(--line);
}
.stock-toolbar #home-stock-status { margin: 0; font-size: .92rem; }
.stock-category { gap: 7px; padding-inline: 12px; }
.stock-category-count {
  min-width: 23px; padding: 1px 4px; font-size: .82rem; line-height: 1.38;
  border-radius: 15px; text-align: center; background: #e9ecf0; color: #333942;
}
.stock-category[aria-pressed="true"] .stock-category-count { background: #ffffff26; color: #fff; }
.purchase-faq {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(18px,5vw,75px); padding: 0 0 clamp(22px,4vw,48px);
  border-bottom: 1px solid var(--line);
}
.home-content > .purchase-faq { margin-top: calc(clamp(24px,5vw,78px) * -1); }
.purchase-faq header .text-link { display: inline-block; margin-top: 17px; }
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { padding: 0; border-bottom: 1px solid var(--line); }
.faq-items summary {
  display: flex; justify-content: space-between; align-items: center; list-style: none; gap: 16px;
  cursor: pointer; padding-block: 15px; font: 600 clamp(1.05rem,2vw,1.24rem)/1.4 "Source Sans 3", "Segoe UI", sans-serif; color: #28323e; letter-spacing: .005em;
}
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::after { content: "+"; color: #aa182a; font-size: 1.35em; transition: transform .2s; }
.faq-items details[open] summary::after { transform: rotate(45deg); }
.faq-items p { margin: 0 0 17px; }
.faq-items p a { text-decoration: underline; text-underline-offset: .2em; }
.location-story { display: grid; gap: clamp(15px,3vw,31px); }
.location-scene { width: min(100%, 760px); justify-self: center; overflow: hidden; margin: 0; border-radius: 16px; }
.location-scene img { display: block; width: 100%; height: auto; }
.location-story-copy {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
  gap: 9px 25px; padding: 8px 0 0;
}
.location-story-copy .eyebrow { grid-column: 1 / -1; margin: 0; }
.location-story-copy h2 { margin: 0; }
.location-story-copy address { grid-column: 1; margin: 3px 0 0; }
.location-story-copy .actions { grid-column: 2; grid-row: 2 / span 2; }
@media(max-width:680px) {
  .home-page .hero h1 { font-size: clamp(2.6rem,10vw,4.3rem); }
  .purchase-faq,.location-story-copy { grid-template-columns: minmax(0,1fr); }
  .location-story-copy .actions { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

.sellers .section-head p:not(.eyebrow) { margin-bottom: 0; }
.seller-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,275px),1fr)); gap: 14px; }
.seller-card {
  display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 17px; align-content: start;
  padding: clamp(15px,3vw,25px); background: #ffffffed; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 9px 30px #2228320b;
}
.seller-portrait {
  width: 80px; aspect-ratio: 1; display: grid; place-items: center; position: relative;
  overflow: hidden; border-radius: 17px; background: #f4e6e8; color: #8c1830; font: 800 1.3rem var(--heading);
}
.seller-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seller-info { overflow-wrap: anywhere; }
.seller-info .eyebrow { margin: 0 0 7px; font-size: .78rem; }
.seller-info h3 { font-size: clamp(1.25rem,3vw,1.7rem); }
.seller-bio { margin: 7px 0; white-space: pre-line; }
.seller-contacts { display: grid; justify-items: start; gap: 5px; margin: 11px 0; }
.seller-empty { padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: #ffffffd4; }
.seller-empty p { margin-top: 0; }
#seller-list li { display: flex; align-items: center; flex-wrap: wrap; }

.home-page {
  --heading: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --light-metal: linear-gradient(172deg, #fff 12%, #e8eef7 43%, #aebbd1 56%, #fff 68%, #b3bfd2 96%);
  --dark-metal: linear-gradient(174deg, #131821 16%, #313b49 43%, #536078 53%, #202735 67%);
}
.home-page .hero h1 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}
.home-page h2 { font-family: var(--heading); letter-spacing: -.045em; }

@supports (background-clip: text) {
  .home-page .hero h1 > span, .home-page h2 > span, .home-page .route-links strong {
    background: var(--dark-metal);
    background-clip: text;
    color: transparent;
  }
  .home-page .hero h1 > span, .home-page .route h2 > span, .home-page .route-links strong {
    background-image: var(--light-metal);
  }
}

.home-page .route {
  --line: #9e526537;
  --muted: #51424b;
  color: #202d38;
  gap: clamp(24px, 5vw, 68px);
  padding: clamp(24px, 5vw, 70px);
  border-block: 1px solid #d8aeb9;
  background: radial-gradient(ellipse at 0% 0%, #ecd1d8, transparent 68%),
    linear-gradient(140deg, #f6e9ec, #faf4f3 67%, #eee0e4);
}
.home-page .route .eyebrow { color: #8d1933; }
.home-page .route-photo {
  margin: 0;
  border-radius: 2px;
  box-shadow: 0 18px 45px #080b1280;
}
.home-page .route-links a {
  position: relative;
  padding: 16px 0;
  background: linear-gradient(100deg, #fff9, #f7e6eb66 58%, transparent) no-repeat;
  background-size: 0% 100%;
  transition: background-size .42s cubic-bezier(.2, .75, .25, 1), border-color .25s;
}
.home-page .route-links a:is(:hover, :focus-visible) {
  background-size: 100% 100%;
  border-top-color: #b88c99;
}
.home-page .route-links strong { font-size: clamp(1.15rem, 2.3vw, 1.5rem); }
.home-page .route-links a:is(:hover, :focus-visible) strong { color: #811932; }
.home-page .route-links strong, .home-page .route-links span {
  transition: transform .4s cubic-bezier(.2, .75, .25, 1), color .25s;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .route-links a, .home-page .route-links strong, .home-page .route-links span { transition: none; }
  .home-page .route-links a:is(:hover, :focus-visible) :is(strong, span) { transform: none; }
}

/* Portada y movimiento */
@supports (background-clip: text) {
  .home-page .hero h1 > span {
    background-image:
      linear-gradient(110deg, transparent 41%, #f5f9ffb3 49%, #fff 50%, #e6f0ff55 53%, transparent 61%),
      linear-gradient(178deg, #fff 8%, #d1d7df 35%, #a1a9b6 53%, #f4f7fb 67%, #b3bcc9 91%);
    background-size: 240% 100%, 100% 100%;
    background-position: 100% 50%, center;
  }
}
.button.outline:not([aria-pressed="true"]), .panel-link { background: #f7f8fb; }
.hero .button.outline:not([aria-pressed="true"]), #delivery-viewer button { background: #20232b; }
.button {
  --button-hover-bg: linear-gradient(145deg, #f8fbff, #bfcddd);
  --button-hover-text: #202c40;
  --button-hover-border: #a6b5cb;
}
.button.outline, .panel-link, .delivery-nav button {
  --button-hover-bg: linear-gradient(145deg, #f9ccd6, #e8a3b6);
  --button-hover-text: #50182b;
  --button-hover-border: #ba6a83;
}
.hero .button.outline, .button[aria-pressed="true"], #delivery-viewer button {
  --button-hover-bg: linear-gradient(145deg, #eef5ff, #afc4e3);
  --button-hover-text: #1b304d;
  --button-hover-border: #a0b7d7;
}
:is(button, .button, .navigation summary, .panel-link):not(:disabled):is(:hover, :focus-visible),
#delivery-viewer button:not(:disabled):is(:hover, :focus-visible) {
  background: var(--button-hover-bg, #dbe7f7);
  color: var(--button-hover-text, #202c40);
  border-color: var(--button-hover-border, #8c9ab0);
}
:is(button, .button, .navigation summary, .panel-link, .social):not(:disabled):focus-visible {
  outline: 2px solid #ad6077;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  [data-type], .reveal {
    transition: opacity .75s ease-out, transform 1s cubic-bezier(.2, .8, .2, 1), filter .8s ease-out;
  }
  [data-type].pending, .reveal.pending { opacity: 0; transform: translateY(30px); }
  [data-type].pending { filter: blur(9px); }
  [data-type].pending:focus-within, .reveal.pending:focus-within {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .intro-enter > span {
    --title-delay: .12s;
    animation: title-enter 1.1s cubic-bezier(.19, 1, .22, 1) var(--title-delay) both,
               chrome-sweep 1.25s ease-in-out calc(var(--title-delay) + .27s) both;
  }
  .intro-enter > span + span { --title-delay: .28s; }
}
@keyframes title-enter {
  from { opacity: 0; translate: 0 .42em; filter: blur(12px); }
  to { opacity: 1; translate: 0 0; filter: none; }
}
@keyframes chrome-sweep {
  0% { background-position: 100% 50%, center; }
  100% { background-position: 0% 50%, center; }
}
/* Recorrido de compra */
.home-page .purchase-guide {
  --line: #9e526537;
  color: #30262c;
  background:
    radial-gradient(ellipse at 1% 15%, #ecd1d8, transparent 68%),
    linear-gradient(118deg, #f6e9ec, #faf4f3 72%, #eee0e4);
  border-color: #d8aeb9;
  padding: clamp(24px, 5vw, 68px);
  gap: clamp(28px, 6vw, 90px);
}
.purchase-guide h2 { font-size: clamp(2.25rem, 5vw, 4.1rem); }
.home-page .purchase-guide h2 > span {
  background-image: linear-gradient(175deg, #78364a, #30222a 76%);
}
.home-page .purchase-guide .eyebrow, .home-page .purchase-guide .text-link { color: #8d1933; }
.purchase-guide p { color: #51424b; }
.purchase-guide .purchase-steps { list-style: none; padding: 0; counter-reset: purchase-step; }
.purchase-guide .purchase-steps li {
  position: relative;
  padding: 0 0 23px 3.9rem;
  min-height: 3.1rem;
  border: 0;
  counter-increment: purchase-step;
}
.purchase-guide .purchase-steps li::before {
  content: counter(purchase-step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  border: 1px solid #dcaaba;
  border-radius: 50%;
  color: #fff4f8;
  background: linear-gradient(145deg, #853650, #302637 68%);
  box-shadow: 0 0 18px #ee7c9840;
  font-weight: 700;
}
.purchase-guide .purchase-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.6rem;
  bottom: 0;
  left: 1.3rem;
  width: 1px;
  background: linear-gradient(#a95168, #c897a4);
}
.purchase-guide .purchase-steps li:last-child { padding-bottom: 0; }

/* Entregas, motivos y salón */
.home-page .deliveries {
  padding: clamp(20px, 4vw, 48px);
  border-block: 1px solid #d6c6ce;
  background: linear-gradient(140deg, #fff 18%, #f4e9ee 62%, #e9edf4);
}
.deliveries .delivery-feed { gap: clamp(10px, 2vw, 22px); }
.deliveries .delivery-photo { position: relative; }
.deliveries .delivery-photo img {
  border-radius: 4px;
  box-shadow: 0 8px 14px #22152625;
}
.deliveries .delivery-image figcaption strong { display: none; }
.deliveries .delivery-image figcaption:has(> strong:only-child) { display: none; }
.delivery-message {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding-top: clamp(17px, 4vw, 35px);
}
.deliveries .delivery-message p {
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 2.05rem);
  font-weight: 700;
  color: #462639;
}

.home-page .reasons {
  align-items: center;
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid #e0d6db;
  border-left: 4px solid #a92340;
  background:
    radial-gradient(ellipse at 96% 0%, #ebd9e3, transparent 54%),
    linear-gradient(130deg, #fff, #edf1f7);
}
.reasons header p:not(.eyebrow) { max-width: 35ch; }
.reasons .reason-list {
  display: grid;
  align-content: start;
  gap: 9px;
}
.reason-detail {
  background: #ffffffbd;
  border: 1px solid #dbccd6;
  border-left: 3px solid #b13b61;
  border-radius: 7px;
}
.reason-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  color: #56263d;
  font: 700 clamp(1.02rem, 2vw, 1.23rem)/1.4 var(--heading);
}
.reason-detail > summary::-webkit-details-marker { display: none; }
.reason-detail > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border: solid #a52c51;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.reason-detail[open] > summary::after { transform: rotate(225deg); }
.reason-detail > summary:is(:hover, :focus-visible) { background: #f4e5eb; }
.reason-detail > summary:focus-visible { outline: 2px solid #9f2850; outline-offset: -2px; }
.reason-body p { margin: 0; padding: 0 15px 14px; color: #49404b; }
.reasons .reason-tagline {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid #d9cbd2;
  color: #57273c;
}
@media (prefers-reduced-motion: no-preference) {
  .reason-detail > summary::after { transition: transform .32s ease; }
  .reason-detail[open] .reason-body {
    display: grid;
    grid-template-rows: 1fr;
    animation: reason-open .48s cubic-bezier(.22, 1, .36, 1) both;
  }
  .reason-body > div { min-height: 0; overflow: hidden; }
}

.home-page .location-story {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  background: #edf0f5;
  border: 1px solid #d2d9e3;
  border-radius: 8px;
}
.location-story .location-scene {
  width: 100%;
  align-self: center;
  border-radius: 0;
}
.location-story .location-scene img {
  width: 100%;
  height: auto;
}
.location-story .location-story-copy {
  display: block;
  align-self: center;
  padding: clamp(20px, 4vw, 46px);
}
.location-story-copy address { margin-block: 14px 20px; }
.location-story-copy .actions { margin-top: 0; }
.location-story .map-link {
  display: inline-flex;
  justify-content: center;
  gap: 9px;
  width: auto;
  height: auto;
  border-radius: 6px;
}
.location-story .map-link svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 680px) {
  .home-page .location-story { grid-template-columns: minmax(0, 1fr); }

}

/* Portada con la fachada del salón */
.home-page .home .hero-showroom {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: max(58vw, calc(100svh - var(--header-height)));
  background: #171415;
}
.hero-showroom .hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.home-page .hero-showroom .hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: none;
}
.home-page .hero-showroom .hero-shade {
  height: 100%;
  background:
    linear-gradient(0deg, #131016af, transparent 58%),
    linear-gradient(78deg, #161119bd, #16111975 29%, transparent 66%);
}
.home-page .hero-showroom .hero-content {
  grid-row: 1;
  align-self: end;
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
  padding: clamp(50px, 10vh, 110px) 0
    max(clamp(30px, 7vh, 76px), calc(58vw - 100svh + var(--header-height) + 35px));
}
.home-page .hero-showroom h1 {
  max-width: none;
  font-size: clamp(2.7rem, 5.4vw, 6.25rem);
  filter: drop-shadow(0 3px 10px #08070ddd);
}
.hero-showroom .hero-content .intro { text-shadow: 0 2px 12px #101119; }
.hero-showroom .hero-content .eyebrow { color: #ffccd6; }
.hero-showroom .hero-offers { grid-row: 2; }

@media (max-width: 760px) {
  .home-page .home .hero-showroom { min-height: max(390px, calc(100svh - var(--header-height))); }
  .home-page .hero-showroom .hero-photo { object-position: 51% center; }
  .home-page .hero-showroom .hero-shade {
    background: linear-gradient(0deg, #0e0c12f0, #0e0c126b 34%, transparent 64%);
  }
  .home-page .hero-showroom .hero-content {
    width: calc(100% - clamp(32px, 10vw, 80px));
    padding: 45px 0 clamp(20px, 5vw, 38px);
  }
  .home-page .hero-showroom h1 { font-size: clamp(2rem, 8.8vw, 4.1rem); }
  .home-page .hero-showroom .intro { margin-block: 10px 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-showroom .hero-content:has(.intro-enter) {
    animation: showroom-copy-enter 1.05s cubic-bezier(.22, .72, .24, 1) .32s both;
  }
  .hero-showroom .intro-enter > span { --title-delay: .52s; }
  .hero-showroom .intro-enter > span + span { --title-delay: .78s; }
  .hero-showroom .hero-content:focus-within { opacity: 1 !important; translate: none !important; }

  @keyframes showroom-copy-enter {
    from { opacity: 0; translate: 0 30px; }
    to { opacity: 1; translate: 0 0; }
  }

  .home-page .hero-showroom .hero-photo {
    height: calc(100% + 34px);
    translate: 0 var(--photo-drift, 0px);
    animation: showroom-depth 2.15s cubic-bezier(.22, .68, .26, 1) both;
  }
  @media (min-width: 761px) {
    .home-page .hero-showroom .hero-photo {
      transform-origin: center top;
    }
  }
  @keyframes showroom-depth {
    from { scale: 1.055; }
    to { scale: 1; }
  }
}

/* Stock y Tasación */
.showroom-page {
  color-scheme: dark;
  --heading: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --text: #f3f4fb;
  --muted: #c0c7d7;
  --line: #849ac64f;
  background: #0b101b;
}
.showroom-page .ambient {
  background:
    radial-gradient(ellipse at 87% 14%, #384c7970, transparent 43%),
    radial-gradient(ellipse at 0% 69%, #6b244962, transparent 41%),
    #0b101b;
}
.showroom-page .ambient > div { display: none; }
.showroom-page .ambient::after { opacity: .45; }
.showroom-page .stock { padding-bottom: clamp(35px, 6vw, 70px); }
.showroom-page .bar, .showroom-page .header.compact .bar, .showroom-page .footer {
  background: #101726f5;
  border: 1px solid var(--line);
  color: var(--text);
}
.showroom-page :is(.brand, .brand small, .footer-links a:not(.social)) { color: #eff3ff; }
.showroom-page .brand b { color: #ff8aa8; }
.showroom-page .stock-intro, .showroom-page .service-heading,
.showroom-page .service-form, .showroom-page .service-panel, .showroom-page .stock-card {
  background:
    linear-gradient(133deg, #91b2ff15, transparent 41%, #ed719e15),
    #121a2a;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px #c2d6ff3b, 0 18px 48px #03081380;
}
.showroom-page .stock-intro, .showroom-page .service-heading {
  border-radius: 12px;
  padding: clamp(22px, 5vw, 62px);
}
.showroom-page .service-heading { margin-bottom: 18px; }
.showroom-page :is(.eyebrow, .category) { color: #ffa5be; }
.showroom-page h1 { color: #f1f4fe; }
@supports (background-clip: text) {
  .showroom-page h1 > span {
    background: linear-gradient(174deg, #fff 10%, #c2cdeb 44%, #a2b0d0 50%, #f8fbff 68%, #bbc7e3 90%);
    color: transparent;
    background-clip: text;
  }
}
.showroom-page :is(input, select, textarea) {
  color: var(--text);
  background: #0c1423;
  border-color: #535f77;
}
.showroom-page input::placeholder, .showroom-page textarea::placeholder { color: #aeb8cd; }
.showroom-page :is(input, select, textarea):focus-visible {
  outline: 2px solid #c4d2ff;
  outline-offset: 2px;
  box-shadow: 0 0 18px #83a7ff49;
}
.catalog-kinds {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 5px 4px 12px;
  margin: 23px -4px 8px;
}
.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 16px;
  border: 1px solid #677696;
  border-radius: 24px;
  color: #edf2ff;
  background: #18243a;
}
.catalog-chip-count {
  min-width: 1.55em;
  border-radius: 12px;
  padding: 0 4px;
  text-align: center;
  background: #899ab455;
}
.showroom-page .catalog-chip[aria-pressed="true"] {
  background: linear-gradient(142deg, #f2f5ff, #b3c6ee);
  color: #1a2337;
  border-color: #e0e8ff;
  box-shadow: 0 0 18px #8daeff55;
}
.showroom-page .catalog-chip:is(:hover, :focus-visible) {
  background: linear-gradient(142deg, #f9d3df, #d89eb8);
  color: #3d1732;
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  max-width: 58rem;
}
.catalog-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.showroom-page #reset-filters { margin-top: 12px; }
@media (max-width: 760px) {
  .catalog-toolbar { grid-template-columns: minmax(0, 1fr); }
}
.showroom-page .stock-card:hover { border-color: #a5b8e2; box-shadow: 0 14px 35px #5c7dcc40; }
.showroom-page .stock-card-media { background: radial-gradient(ellipse at center, #354363, transparent 73%); }
.showroom-page .stock-card-open { color: #ffc0d4; }
.showroom-page .stock-card-open:is(:hover, :focus-visible) { background: transparent; color: #fff; }
.showroom-page .vehicle-details, .showroom-page .vehicle-details-heading { background: #182237; color: var(--text); }
.showroom-page .vehicle-details :is(.vehicle-description, .vehicle-specs dt),
.showroom-page .stock-card-summary { color: var(--muted); }
.showroom-page .result .error { color: #ffabc2; }
@media (prefers-reduced-motion: no-preference) {
  .showroom-page .intro-enter > span { display: inline-block; }
  .showroom-page .intro-enter > span + span { --title-delay: .26s; }
}

/* Controles estables y desplazamiento de la ficha */
html:has(.stock-card) { scrollbar-gutter: stable; }
html:has(.vehicle-details[open], .stock-photo-viewer[open], #delivery-viewer[open]) { overflow: hidden; }
#delivery-viewer { max-height: calc(100svh - 28px); overscroll-behavior: contain; }
.vehicle-details {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  isolation: isolate;
  max-height: calc(100svh - 28px);
}
.vehicle-details-heading h2 { min-width: 0; overflow-wrap: anywhere; }
.vehicle-details-close { min-width: 44px; min-height: 44px; }
.vehicle-details .button { max-width: 100%; white-space: normal; }
:is(button, .button, .navigation summary, .panel-link, .home-page .social-dock .social):is(:hover, :focus-visible) {
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  :is(button, .button, .navigation summary, .panel-link, .social) {
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
}

/* Administración */
.admin-page { background: #eef1f6; }
.admin-page .ambient { display: none; }
.admin-page .panel-page { max-width: 1120px; padding-bottom: 38px; }
.admin-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.admin-nav {
  display: grid;
  gap: 4px;
  position: sticky;
  top: 95px;
  padding: 8px;
  background: #fff;
  border: 1px solid #d3dce8;
  border-radius: 10px;
}
.admin-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
}
.admin-nav a:is(:hover, :focus-visible) { background: #eef2f9; }
.admin-nav a[aria-current="location"] { background: #19253a; color: #fff; }
.admin-view {
  background: #fff;
  border: 1px solid #d3dce8;
  border-radius: 10px;
  padding: clamp(16px, 3vw, 32px);
  scroll-margin-top: 100px;
}
.admin-view + .admin-view { margin-top: 14px; }
.admin-view[hidden] + .admin-view { margin-top: 0; }
.admin-view h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 4vw, 2.45rem); }
.admin-view h3 { margin: 22px 0 12px; }
.admin-view .editor { align-items: end; }
.admin-view :is(input, textarea, select) { min-width: 0; }
.admin-view .actions { gap: 8px 12px; }
.admin-view .editor > .button { justify-self: start; }
.admin-editor { margin-top: 20px; }
.admin-editor > summary, .admin-specs > summary {
  padding: 10px 12px;
  border: 1px solid #cdd9e8;
  border-radius: 6px;
  background: #f0f4fa;
  color: #283852;
  font-weight: 700;
  cursor: pointer;
}
.admin-editor > form, .admin-specs > div { margin-top: 16px; }
.admin-status:empty, .admin-list:empty { display: none; }
.admin-status { color: #31496b; }
.admin-view .admin-list { list-style: none; margin: 14px 0 0; padding: 0; }
.admin-view .admin-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.admin-view .admin-list li > span { flex: 1 1 145px; overflow-wrap: anywhere; }
.admin-view .admin-list .button { min-height: 40px; padding: 6px 12px; }
.admin-view .import-label:focus-within { outline: 2px solid #506ea2; outline-offset: 2px; }
@media (max-width: 680px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }
  .admin-view .editor { grid-template-columns: minmax(0, 1fr); }
}

/* Escritorio de administración de Autonorte */
.admin-page {
  --text: #f1f3fa;
  --muted: #bac3d6;
  --line: #36445d;
  background: #101520;
  color-scheme: dark;
}
.admin-page .admin-layout { grid-template-columns: clamp(190px, 23%, 245px) minmax(0, 1fr); }
.admin-page .admin-nav, .admin-page .admin-view {
  border-color: var(--line);
  background: #161f2e;
}
.admin-nav a { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-nav svg { width: 20px; height: 20px; flex: none; color: #c6d0e9; }
.admin-nav a small { display: block; color: #b6c2d7; font-weight: 400; line-height: 1.35; }
.admin-nav .admin-nav-short { display: none; }
.admin-page .admin-nav a:is(:hover, :focus-visible) { background: #23324b; }
.admin-page .admin-nav a[aria-current="location"] { background: #50273d; color: #fff4f8; }
.admin-page .admin-nav a[aria-current="location"] svg { color: #ffbfd2; }
.admin-view-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px 14px; }
.admin-view-heading p { margin: -8px 0 0; color: var(--muted); }
.admin-search { margin-top: 16px; max-width: 35rem; }
.admin-page .admin-view :is(input, textarea, select) { background: #101827; border-color: #576784; color: var(--text); }
.admin-page .admin-view :is(input, textarea)::placeholder { color: #b0bacd; }
.admin-page .admin-view :is(input, textarea, select):focus-visible { outline: 2px solid #ff98b4; outline-offset: 2px; }
.admin-page .admin-status { color: #f4b8cb; }
.admin-step {
  min-width: 0;
  margin: 12px 0 18px;
  padding: clamp(12px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1b2639;
}
.admin-step h3 { margin-top: 0; }
.admin-step legend { padding: 0 6px; font-weight: 700; color: #f9c5d7; }
.admin-page :is(.admin-editor, .admin-specs) > summary { background: #253450; border-color: #536789; color: #edf2fd; }
.admin-view .admin-empty { color: var(--muted); }
.admin-view #apply-excel { margin-top: 12px; }
.admin-save { padding-top: 4px; }

@media (max-width: 760px) {
  .admin-page .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-page .panel-page { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .admin-page .admin-nav {
    position: fixed;
    z-index: 12;
    inset: auto 0 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding: 5px max(4px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    border-radius: 0;
  }
  .admin-nav a {
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 3px 0;
    font-size: clamp(.65rem, 2.5vw, .78rem);
  }
  .admin-nav a > span:not(.admin-nav-short) { display: none; }
  .admin-nav .admin-nav-short { display: block; }
  .admin-page .admin-view :is(input, textarea, select) { font-size: 1rem; }
}
.admin-top {
  position: sticky;
  z-index: 11;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 8px clamp(12px, 3vw, 28px);
  background: #111927;
  border-bottom: 1px solid var(--line);
}
.admin-identity { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #fff; }
.admin-identity img { flex: none; }
.admin-identity :is(strong, small) { display: block; line-height: 1.2; }
.admin-identity small, .admin-storage { color: #c3cde2; font-size: .82rem; }
.admin-storage { margin-left: auto; }
.admin-top .button { flex: none; }
.admin-page .panel-page { padding-top: 20px; }
.admin-page .admin-nav { top: 85px; }
#stock.admin-view { padding: clamp(12px, 2vw, 22px); }
#stock .admin-view-heading h2 { margin-bottom: 8px; }
#stock .admin-view-heading p { margin: 0; }
#stock .admin-search { margin-top: 10px; max-width: none; }
#stock .admin-list { margin-top: 9px; }
.admin-view .admin-list > .admin-vehicle {
  --thumb-width: 104px;
  --thumb-height: 78px;
  display: grid;
  grid-template-columns: var(--thumb-width) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 5px 12px;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #1b2639;
}
.admin-vehicle-photo {
  position: relative;
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: var(--thumb-width);
  height: var(--thumb-height);
  overflow: hidden;
  border-radius: 6px;
  background: #0c1422;
  color: var(--muted);
  font-size: .8rem;
}
.admin-vehicle-photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: var(--thumb-width);
  height: var(--thumb-height);
  object-fit: cover;
}
.admin-vehicle-info {
  grid-column: 2;
  display: grid;
  justify-items: start;
  gap: 2px;
  overflow-wrap: anywhere;
}
.admin-vehicle-info strong { font-size: 1rem; line-height: 1.2; }
.admin-vehicle-info small { color: #c1cce0; font-size: .82rem; }
.admin-vehicle-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .8rem; }
.admin-vehicle-state { background: #334562; color: #f4f6fd; padding: 1px 7px; border-radius: 6px; }
.admin-vehicle-state[data-status="Disponible"] { background: #183b32; color: #a1ebc5; }
.admin-vehicle-state[data-status="Reservado"] { background: #4d361b; color: #ffd39c; }
.admin-vehicle-actions { grid-column: 2; align-self: end; }
.admin-page .admin-vehicle-actions .button {
  min-height: 32px;
  padding: 4px 8px;
  font-size: .81rem;
  line-height: 1.2;
  white-space: normal;
}
.admin-page .admin-vehicle-actions .admin-remove { background: #452437; border-color: #a76383; color: #ffe8f1; }
.admin-page .admin-vehicle-actions .admin-remove:is(:hover, :focus-visible) { background: #efbfd4; color: #421a30; }
.admin-save {
  position: sticky;
  bottom: 10px;
  z-index: 2;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #162133;
}
@media (max-width: 760px) {
  .admin-storage { display: none; }
  .admin-page .admin-nav { top: auto; }
  .admin-save { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .admin-page:has(#vehicle-form :is(input, textarea):focus) .admin-save { position: static; }
  .admin-view .admin-list > .admin-vehicle {
    --thumb-width: 76px;
    --thumb-height: 57px;
    column-gap: 8px;
  }
  .admin-vehicle-photo { grid-row: 1; }
  .admin-vehicle-actions { grid-column: 1 / -1; }
  .admin-page .admin-vehicle-actions .button { min-height: 40px; }
}

.stock-offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.stock-offer-price del { color: var(--muted); font-size: .9rem; }
.stock-offer-label {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: #f8dce5;
  color: #722740;
  font-size: .78rem;
  font-weight: 700;
}

.stock-campaign {
  --muted: #d2cee0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f9f5fa;
  background:
    radial-gradient(ellipse at 79% 26%, #c1376266, transparent 42%),
    radial-gradient(ellipse at 69% 92%, #4f5d9a68, transparent 46%),
    linear-gradient(122deg, #100e17 18%, #281725 59%, #151b2d);
  border-bottom: 1px solid #bd6388;
}
.stock-campaign::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20%;
  background: linear-gradient(119deg, transparent 48%, #e899bb38 49%, #fff2fa47 50%, transparent 52%) center / 100% 100%;
  transform: translateX(18%);
  pointer-events: none;
}
.campaign-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(20px, 4vw, 62px);
  padding-block: clamp(34px, 6vw, 90px);
  min-height: clamp(470px, 78svh, 755px);
}
.campaign-layout:not(:has(.campaign-visual:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.campaign-copy { position: relative; z-index: 1; min-width: 0; }
.campaign-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #ffc3d9;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.campaign-eyebrow::before {
  content: "";
  width: 27px;
  height: 2px;
  background: #ff9abd;
  box-shadow: 0 0 12px #fb88b3;
}
.campaign-copy h1 {
  margin: 0 0 14px;
  max-width: 14ch;
  font-size: clamp(2.75rem, 6.45vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.065em;
  color: #fff4fb;
  overflow-wrap: anywhere;
}
@supports (background-clip: text) {
  .campaign-copy h1 {
    background: linear-gradient(170deg, #fff 10%, #efbece 48%, #acb9db 59%, #fef5fc 84%);
    color: transparent;
    background-clip: text;
  }
}
.campaign-copy #campaign-vehicle {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
}
.campaign-copy #campaign-description { color: #e5dcea; max-width: 42ch; margin-block: 10px 0; overflow-wrap: anywhere; }
.campaign-copy #campaign-price {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  margin-block: 18px 13px;
  padding: 8px clamp(10px, 2vw, 22px);
  border: 1px solid #b16d8f;
  border-radius: 4px 12px 12px 4px;
  border-left: 3px solid #ff9abd;
  background: linear-gradient(105deg, #63304c, #362435 75%);
  box-shadow: 0 6px 28px #0c070f7a;
}
#campaign-price .stock-card-price {
  font-size: clamp(1.55rem, 4vw, 3.05rem);
  color: #fff2fa;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#campaign-price del { color: #eed5e5; }
#campaign-price .stock-offer-label { align-self: center; }
.campaign-clock {
  width: fit-content;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 10px;
  padding: 4px 0 7px;
  color: #f4deef;
  margin-bottom: 9px;
}
.campaign-clock strong { color: #ffb5d1; font-variant-numeric: tabular-nums; }
.campaign-copy .actions { gap: 9px; }
.home-page .stock-campaign #campaign-details { background: #f3c6d7; color: #42172b; }
.home-page .stock-campaign #campaign-contact { background: #211a29; border-color: #947e9d; color: #fff; }
.home-page .stock-campaign #campaign-details:is(:hover, :focus-visible) { background: #f5edf9; color: #251d36; }
.home-page .stock-campaign #campaign-contact:is(:hover, :focus-visible) { background: #e3edf9; color: #222d46; }
.campaign-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9a5c6a0;
  border-radius: 12px;
  background:
    linear-gradient(131deg, #ffb4cf22 0%, transparent 24% 76%, #9baeff28),
    radial-gradient(ellipse, #444154, #201725 77%);
  box-shadow: 0 26px 64px #0d0815b0, 0 0 36px #db71aa38, inset 0 1px #ffd7ed5e;
}
.campaign-visual img {
  display: block;
  width: 100%;
  height: clamp(280px, 39vw, 515px);
  object-fit: contain;
}
.campaign-visual::after, #campaign-price::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(108deg, transparent 33%, #ffe8f300 42%, #ffe8f366 50%, #ffe8f300 58%, transparent 66%);
  transform: translateX(-105%);
  pointer-events: none;
}
@media (max-width: 760px) {
  .campaign-layout { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 16px 26px; }
  .campaign-visual { grid-row: 1; }
  .campaign-visual img { height: clamp(150px, 51vw, 325px); }
  .campaign-eyebrow { margin-bottom: 9px; }
  .campaign-copy h1 { margin-bottom: 9px; }
  .campaign-copy #campaign-price { margin-block: 13px 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .stock-campaign::before { animation: campaign-light 1.6s cubic-bezier(.23, .75, .26, 1) both; }
  .campaign-visual {
    animation: campaign-vehicle-in 1s cubic-bezier(.18, .8, .22, 1) both;
  }
  .campaign-visual::after { animation: campaign-sweep 1.25s .24s ease-out both; }
  .campaign-copy > :not([hidden]) {
    animation: campaign-reveal .88s cubic-bezier(.2, .78, .2, 1) var(--campaign-delay, .2s) both;
  }
  .campaign-copy h1 { --campaign-delay: .3s; }
  .campaign-copy #campaign-vehicle, .campaign-copy #campaign-description { --campaign-delay: .44s; }
  .campaign-copy #campaign-price, .campaign-copy .campaign-clock { --campaign-delay: .58s; }
  .campaign-copy #campaign-price::after { animation: campaign-sweep 1.05s .7s ease-out both; }
  .campaign-copy .actions { --campaign-delay: .7s; }
  .campaign-copy:focus-within > .actions { animation: none; }
  @keyframes campaign-vehicle-in {
    from { opacity: 0; translate: 20px 4px; scale: .965; }
    to { opacity: 1; translate: 0 0; scale: 1; }
  }
  @keyframes campaign-reveal {
    from { opacity: 0; translate: 0 20px; filter: blur(6px); }
    to { opacity: 1; translate: 0 0; filter: none; }
  }
  @keyframes campaign-light {
    from { transform: translateX(-43%); opacity: 0; }
    to { transform: translateX(18%); opacity: 1; }
  }
  @keyframes campaign-sweep {
    from { transform: translateX(-105%); }
    to { transform: translateX(105%); }
  }
}

/* Contacto permanente en las páginas públicas */
html:has(.whatsapp-float) { scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
body:has(> .whatsapp-float) { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
a[href^="https://wa.me/"]::before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-inline-end: .4em;
  vertical-align: -.24em;
  background: #fff url("assets/whatsapp.svg") center / 88% no-repeat;
  border-radius: 50%;
}
a.button[href^="https://wa.me/"]::before { flex: none; }
.footer a.social.wa::before { width: 24px; height: 24px; margin-inline-end: 0; }
.whatsapp-float {
  --whatsapp-gap: 8px;
  --whatsapp-padding: 15px;
  --whatsapp-label-width: 12em;
  --whatsapp-label-opacity: 1;
  position: fixed;
  z-index: 13;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  display: inline-flex;
  align-items: center;
  gap: var(--whatsapp-gap);
  min-width: 50px;
  min-height: 50px;
  max-width: calc(100% - 32px);
  padding: 8px var(--whatsapp-padding);
  border: 1px solid #32a46b;
  border-radius: 26px;
  background: #f3fff8;
  color: #12442e;
  box-shadow: 0 6px 24px #081b1690;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color .2s, box-shadow .2s, gap .24s ease, padding .24s ease;
}
.whatsapp-float > span {
  max-width: var(--whatsapp-label-width);
  overflow: hidden;
  white-space: nowrap;
  opacity: var(--whatsapp-label-opacity);
  transition: max-width .28s ease, opacity .18s ease;
}
.whatsapp-float.icon-only {
  --whatsapp-gap: 0px;
  --whatsapp-padding: 10px;
  --whatsapp-label-width: 0em;
  --whatsapp-label-opacity: 0;
}
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .whatsapp-float {
    --whatsapp-gap: 0px;
    --whatsapp-padding: 10px;
    --whatsapp-label-width: 0em;
    --whatsapp-label-opacity: 0;
  }
}
.whatsapp-float[href^="https://wa.me/"]::before {
  flex: none;
  width: 27px;
  height: 27px;
  margin-inline-end: 0;
  background-color: transparent;
  background-size: contain;
}
.whatsapp-float:is(:hover, :focus-visible) {
  background: #d3fae2;
  box-shadow: 0 6px 26px #0d54378a;
}
.whatsapp-float:focus-visible { outline: 2px solid #126541; outline-offset: 3px; }
#delivery-viewer .delivery-contact { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float[href^="https://wa.me/"]::before { animation: whatsapp-nudge 6s ease-in-out 1.2s infinite; }
  .whatsapp-float:is(:hover, :focus-visible)::before { animation: none; }

  @keyframes whatsapp-nudge {
    0%, 20%, 100% { transform: none; }
    6% { transform: translateY(-2px) rotate(-9deg) scale(1.09); }
    11% { transform: rotate(6deg) scale(1.04); }
    16% { transform: rotate(-3deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-float > span { transition: none; }
}

/* Let descenders fit inside the metallic text mask. */
.home-page h2 > span, .home-page .hero h1 > span {
  line-height: 1.14;
  padding-bottom: .075em;
}
.home-page .route :is(h2 > span, .route-links strong) {
  color: #233642; background: none; line-height: 1.18; padding-bottom: .06em;
}
.home-page .route-links a:is(:hover,:focus-visible) strong { color: #811932; }
.footer-contact { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; }
.footer-contact a { color:#39444c; overflow-wrap:anywhere; }
.footer-contact a:hover,.footer-contact a:focus-visible { color:#951727; text-decoration:underline; text-underline-offset:.2em; }


.seller-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(12px,2vw,22px); }
.seller-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 15px 17px; text-align: center; border-radius: 17px;
}
.seller-portrait { width: 76px; border-radius: 50%; flex: none; }
.seller-info { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; }
.seller-info h3 { margin: 0; }
.seller-contacts { justify-items: center; margin: 9px 0 15px; }
.seller-info .seller-whatsapp {
  align-self: stretch; min-height: 44px; margin-top: auto; padding-inline: 10px;
  border: 1px solid #29594440; border-radius: 24px; background: #e9f6ee; color: #164b34;
  font: 700 1rem/1.18 "Source Sans 3", "Segoe UI", sans-serif; letter-spacing: .015em;
  transition: background .22s, color .22s;
}
.seller-info .seller-whatsapp:is(:hover, :focus-visible) { background: #176344; color: #fff; }
@media (max-width: 1000px) {
  .seller-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 440px) {
  .seller-grid { grid-template-columns: minmax(0,1fr); max-width: 320px; margin-inline: auto; }
}

.home-page .route .route-photo { aspect-ratio: 1174 / 783; }
.home-page .route .route-photo img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-page .route .route-photo:hover img { transform: scale(1.025); }
}

/* Pantallas de entrada de Autonorte */
.page-intro {
  --intro-accent: #ff5775;
  --intro-glow: #67253b;
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff4f7;
  background:
    radial-gradient(ellipse at 50% 47%, var(--intro-glow), transparent 53%),
    linear-gradient(140deg, #151521, #0b0c13 72%);
  animation: autonorte-intro-out 1.58s both;
}
.page-intro[data-page="stock"] { --intro-accent: #a8c8ff; --intro-glow: #293f69; animation-duration: .94s; }
.page-intro[data-page="tasacion"] { --intro-accent: #ffc08a; --intro-glow: #58402e; animation-duration: .94s; }
.page-intro-stage { display: grid; justify-items: center; gap: 15px; position: relative; }
.page-intro-stage strong { font: 750 clamp(1.1rem, 4vw, 1.5rem)/1.2 var(--heading); letter-spacing: .04em; }
.page-intro-symbol { position: relative; width: 120px; height: 94px; color: var(--intro-accent); }
.page-intro-symbol svg { display: block; width: 100%; height: 100%; overflow: visible; }
.page-intro[data-page="inicio"] .page-intro-symbol::after {
  content: "";
  position: absolute;
  left: 36%;
  top: 54%;
  width: min(59vw, 520px);
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff91ab, transparent);
  box-shadow: 0 0 16px #ee416b;
  opacity: 0;
  transform-origin: left;
  animation: autonorte-tail .7s .31s ease-out both;
}
.intro-shield { animation: autonorte-glow 1.05s both; }
.intro-car { animation: autonorte-drive 1.31s cubic-bezier(.45,.02,.72,.68) both; }
.intro-stock-icon { animation: autonorte-stock-in .62s cubic-bezier(.2,.8,.2,1) both; }
.intro-appraisal-icon { animation: autonorte-appraisal-in .62s cubic-bezier(.2,.8,.2,1) both; }
.page-intro-track {
  width: 155px;
  height: 2px;
  overflow: hidden;
  background: #ffffff30;
}
.page-intro-track::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--intro-accent);
  transform-origin: left;
  animation: autonorte-track .84s ease-out both;
}
@keyframes autonorte-track { from { scale: 0 1; } }
@keyframes autonorte-intro-out {
  0%, 74% { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
@keyframes autonorte-drive {
  0%, 20% { translate: 0 0; filter: drop-shadow(0 0 6px #ffffff5c); }
  34% { translate: -4px 1px; rotate: -2deg; }
  52% { opacity: 1; translate: 40px -2px; rotate: 0deg; }
  to { opacity: 0; translate: min(70vw, 530px) -23px; scale: .75; }
}
@keyframes autonorte-tail {
  from { opacity: 0; scale: 0 1; }
  29% { opacity: .8; }
  to { opacity: 0; scale: 1 1; }
}
@keyframes autonorte-glow {
  from { opacity: .5; filter: drop-shadow(0 0 2px #fc567969); }
  46% { opacity: 1; filter: drop-shadow(0 0 14px #fa557cb0); }
  to { opacity: .65; filter: drop-shadow(0 0 7px #fa557c55); }
}
@keyframes autonorte-stock-in {
  from { opacity: 0; translate: -32px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes autonorte-appraisal-in {
  from { opacity: 0; translate: 0 12px; rotate: -16deg; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; }
}

.lienvo-seal .lienvo-whatsapp::before { content: none; }
.lienvo-seal {
  flex: 1 0 100%;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px 9px;
  padding: 10px 2px 2px;
  margin-top: 6px;
  border-top: 1px solid #65729066;
  color: #6b435b;
  font-size: .83rem;
}
.lienvo-seal strong { color: #512238; font-weight: 800; letter-spacing: .045em; }
.lienvo-seal a { color: inherit; }
.lienvo-seal a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.lienvo-seal a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.showroom-page .lienvo-seal { color: #c4cbe1; }
.showroom-page .lienvo-seal strong { color: #ffc9dc; }
@media (max-width: 560px) {
  .lienvo-seal { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-intro:not([hidden]) ~ main .stock-campaign,
  .page-intro:not([hidden]) ~ main .stock-campaign::before,
  .page-intro:not([hidden]) ~ main .stock-campaign :is(.campaign-visual, .campaign-copy > *),
  .page-intro:not([hidden]) ~ main .stock-campaign :is(.campaign-visual, #campaign-price)::after { animation-play-state: paused; }
  .will-reveal {
    transition: opacity .86s ease-out var(--reveal-delay, 0ms),
                translate 1.05s cubic-bezier(.24, .7, .24, 1) var(--reveal-delay, 0ms);
  }
  .will-reveal.pending { opacity: 0; translate: 0 43px; transform: none; filter: none; }
  .will-reveal.pending:focus-within { opacity: 1; translate: none; filter: none; transition: none; }
  .seller-card.will-reveal.pending { translate: 0 52px; }
  .reason-detail[open] {
    animation: reason-highlight 1.24s ease-out both;
  }
  .reason-detail[open] .reason-body {
    animation: reason-open .72s cubic-bezier(.24, .7, .24, 1) both;
  }
  @keyframes reason-highlight {
    from { background: #f5ccd9; border-left-color: #e76391; }
    to { background: #ffffffbd; border-left-color: #b13b61; }
  }
  @keyframes reason-open {
    from { opacity: 0; translate: 0 -18px; }
    to { opacity: 1; translate: 0 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-intro { display: none; }
}

/* El fondo permanece estático para que el contenido se desplace sin repintarlo. */
:is(.home-page, .showroom-page) :is(.glass, .bar) { backdrop-filter: none; }
:is(.home-page, .showroom-page) .ambient > div,
:is(.home-page, .showroom-page) .ambient::after { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .purchase-steps > .will-reveal {
    transition: opacity .86s ease-out var(--reveal-delay, 0ms),
                translate 1.02s cubic-bezier(.22, .69, .24, 1) var(--reveal-delay, 0ms);
  }
  .purchase-steps > .will-reveal.pending { translate: 0 48px; }
  .purchase-steps > .will-reveal.pending:focus-within { translate: none; }
  .purchase-guide .purchase-steps > .will-reveal:not(.pending)::before {
    animation: purchase-number .79s cubic-bezier(.24, .8, .24, 1) var(--reveal-delay, 0ms) both;
  }
  .purchase-guide .purchase-steps > .will-reveal:not(.pending)::after {
    transform-origin: top;
    animation: purchase-line .62s ease-out calc(var(--reveal-delay, 0ms) + .15s) both;
  }
  @keyframes purchase-number {
    from { opacity: 0; scale: .55; }
    59% { opacity: 1; scale: 1.15; }
    to { opacity: 1; scale: 1; }
  }
  @keyframes purchase-line { from { scale: 1 0; } to { scale: 1 1; } }
}

/* Privacidad y atención al consumidor */
.footer-legal {
  flex: 1 0 100%;
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
  padding-block: 10px 2px;
  border-top: 1px solid #65729044;
  font-size: .9rem;
}
.footer-legal a { color: #4a3949; text-decoration: underline; text-underline-offset: 3px; }
.showroom-page .footer-legal a { color: #dce4f6; }
.appraisal-notice { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 400; }
.appraisal-notice a { color: #f8c4d7; text-decoration: underline; text-underline-offset: 3px; }
.legal-page { background: #f6f4f6; color: #292332; }
.legal-bar, .legal-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 15px; }
.legal-content { max-width: 860px; margin-block: clamp(26px, 5vw, 58px); }
.legal-content h1 { margin-bottom: clamp(24px, 4vw, 42px); font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.07; }
.legal-content section { scroll-margin-top: 20px; margin-bottom: 15px; padding: clamp(18px, 4vw, 34px); background: #fff; border: 1px solid #e3d6df; border-radius: 9px; }
.legal-content h2 { font-size: clamp(1.55rem, 3.7vw, 2.15rem); }
.legal-content h3 { margin-top: 18px; font-size: 1.12rem; letter-spacing: -.015em; }
.legal-content p { overflow-wrap: anywhere; color: #49414e; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a, .legal-footer a { color: #861b40; text-decoration: underline; text-underline-offset: 3px; }
.legal-footer { border-top: 1px solid #e3d6df; }

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.admin-media-grid li {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1b2639;
}
.admin-media-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.admin-media-grid strong { font-size: .88rem; line-height: 1.4; }
.admin-media-grid .actions { justify-content: space-between; }
.admin-media-grid .actions span { color: #c4cce1; font-size: .8rem; }
.admin-upload-preview { width: 90px; height: 68px; object-fit: cover; border-radius: 4px; }

.admin-photo-editor { min-inline-size: 0; }
.admin-photo-drop {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px dashed #65718a;
  border-radius: 10px;
  background: #111827;
  transition: border-color .2s, background-color .2s;
}
.admin-photo-drop.is-over { border-color: #ff929e; background: #46263a; }
.admin-photo-drop label { font-weight: 750; }
.admin-photo-drop input { max-width: 100%; color: inherit; }
.admin-photo-drop input::file-selector-button,
.admin-photo-actions button {
  padding: 7px 10px;
  border: 1px solid #50617c;
  border-radius: 6px;
  background: #263349;
  color: #f2f5ff;
  font: inherit;
  cursor: pointer;
}
.admin-photo-drop input::file-selector-button:hover,
.admin-photo-actions button:not(:disabled):hover { background: #583249; border-color: #ff929e; }
.admin-photo-drop p { margin: 0; color: #c0cbe0; font-size: .88rem; }
.admin-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 152px), 1fr));
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.admin-photo-list:empty { display: none; }
.admin-photo-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #36455e;
  border-radius: 8px;
  background: #192334;
}
.admin-photo-item.is-over { border-color: #ff929e; outline: 1px solid #ff929e; }
.admin-photo-item.is-dragging { opacity: .65; }
.admin-photo-handle {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0 0 4px;
  border: 0;
  border-radius: 5px;
  background: #111827;
  color: #f2f5ff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.admin-photo-handle:active { cursor: grabbing; }
.admin-photo-handle img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  pointer-events: none;
}
.admin-photo-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-photo-actions button { min-height: 34px; font-size: .79rem; }
.admin-photo-actions button:disabled { opacity: .45; cursor: default; }
.admin-photo-editor :is(button, input):focus-visible { outline: 2px solid #ff929e; outline-offset: 1px; }

.vehicle-photo-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  background: #0e1524;
  cursor: zoom-in;
}
.vehicle-photo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 11px;
  border-radius: 100px;
  background: #0b0c11dd;
  color: white;
  font-size: .82rem;
}
.stock-vehicle-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px clamp(15px, 3vw, 28px);
}
.stock-vehicle-nav:empty { display: none; }
.stock-vehicle-nav button {
  min-height: 44px;
  border: 1px solid #7785a3;
  border-radius: 8px;
  background: #26334d;
  color: #fff;
  padding: 6px 10px;
  font: inherit;
}
.stock-vehicle-nav button:disabled { opacity: .5; cursor: default; }
.stock-photo-viewer {
  width: min(96vw, 1240px);
  max-width: 96vw;
  max-height: 96dvh;
  padding: 0;
  border: 1px solid #ffffff24;
  border-radius: 18px;
  color: #f5f5f7;
  background: #141418;
}
.stock-photo-viewer::backdrop { background: #09090def; }
.stock-viewer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
}
.stock-viewer-toolbar p { margin: 0; }
.stock-viewer-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 650; }
.stock-viewer-counter { color: #d5d5dc; font-size: .82rem; font-variant-numeric: tabular-nums; }
.stock-viewer-controls { display: flex; gap: 6px; }
.stock-photo-viewer button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: #2b2b31;
  color: #fff;
}
.stock-viewer-controls button, .stock-viewer-arrow { font: 24px/1 system-ui, sans-serif; }
.stock-photo-viewer button:not(:disabled):hover { background: #45454e; }
.stock-photo-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.stock-viewer-stage { position: relative; background: #0a0a0d; }
.stock-photo-frame {
  height: min(70dvh, 760px);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.stock-photo-frame img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; user-select: none; }
.stock-photo-frame.is-zoomed { overflow: auto; touch-action: auto; }
.stock-photo-frame.is-zoomed img { width: 200%; height: 200%; }
.stock-viewer-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
}
.stock-viewer-arrow.is-previous { left: 10px; }
.stock-viewer-arrow.is-next { right: 10px; }
.stock-viewer-arrow:disabled { opacity: .28; cursor: default; }
.stock-viewer-strip {
  position: relative;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.stock-viewer-strip button {
  flex: 0 0 70px;
  height: 52px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  opacity: .66;
}
.stock-viewer-strip button[aria-pressed="true"] { border-color: white; opacity: 1; }
.stock-viewer-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .stock-photo-viewer { width: 100vw; max-width: 100vw; border-radius: 0; }
  .stock-viewer-toolbar { gap: 8px; padding-inline: 10px; }
  .stock-photo-frame { height: min(65dvh, 540px); }
}

/* Acceso y publicación en el subdominio de administración. */
.cloud-login { width:min(calc(100% - 32px),420px); margin: min(14vh,100px) auto; padding:24px; display:grid; gap:14px; border:1px solid #667692; border-radius:16px; background:#202a3a; color:#fff; }
.cloud-login h1,.cloud-actions h2 { font-size:clamp(1.35rem,4vw,2rem); }
.cloud-login p,.cloud-actions p { margin:0; color:inherit; }
.cloud-actions { margin-block:14px; padding:16px; border:1px solid #667692; border-radius:12px; background:#202a3a; color:#fff; display:grid; gap:10px; }
.cloud-actions summary { cursor:pointer; margin-bottom:8px; }
