/* ==========================================================================
   CórdobaCars · Estilos
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #d2d2d7;
  --line: rgba(0, 0, 0, .08);
  --brand: #3e4095;
  --brand-hover: #4b4fb3;
  --brand-light: #8b8ff5;
  --gray: #606062;
  --black: #000000;
  --ink: #161617;
  --wa: #25d366;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted { color: var(--muted); }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--brand-light); }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: rgba(0, 0, 0, .06); color: var(--text); }
.btn--ghost:hover { background: rgba(0, 0, 0, .1); }
.btn--link { color: #fff; padding: 0 8px; }
.btn--link span { transition: transform .3s var(--ease); display: inline-block; }
.btn--link:hover span { transform: translateX(4px); }
.btn--wa { background: #fff; color: var(--black); width: 100%; min-height: 56px; font-weight: 600; }
.btn--wa svg { width: 22px; height: 22px; fill: #1aa851; }
.btn--wa:hover { box-shadow: 0 10px 30px rgba(255, 255, 255, .15); }

.link {
  display: inline-flex;
  gap: 4px;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 500;
}
.link span { transition: transform .3s var(--ease); }
.link:hover span { transform: translateX(3px); }
.plain { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 64px;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav__inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo { position: relative; display: block; height: 30px; width: 108px; flex-shrink: 0; }
.nav__logo-img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .5s var(--ease); }
.nav__logo-img--dark { opacity: 0; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  transition: color .3s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  transition: background-color .3s var(--ease);
}
.nav__cta:hover { background: var(--brand-hover); }

.nav.is-solid {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .nav__logo-img--light { opacity: 0; }
.nav.is-solid .nav__logo-img--dark { opacity: 1; }
.nav.is-solid .nav__links a { color: var(--text); opacity: .8; }
.nav.is-solid .nav__links a:hover { opacity: 1; }

.nav__burger { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; z-index: 60; }
.nav__burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .45s var(--ease), background-color .3s;
}
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.nav.is-solid .nav__burger span { background: var(--text); }
body.menu-open .nav__burger span { background: var(--text); }
body.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
body.menu-open .nav { background: rgba(255, 255, 255, .98); box-shadow: none; }
body.menu-open .nav__logo-img--light { opacity: 0; }
body.menu-open .nav__logo-img--dark { opacity: 1; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 96px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a, .menu__phone {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.03em;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu__phone { font-size: 20px; color: var(--brand); }
body.menu-open .menu__links a, body.menu-open .menu__phone { opacity: 1; transform: none; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: .05s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: .09s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: .13s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: .17s; }
body.menu-open .menu__links a:nth-child(5) { transition-delay: .21s; }
body.menu-open .menu__phone { transition-delay: .25s; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 170vh;
  background: var(--black);
  color: #fff;
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(var(--hero-scale, 1.15));
  filter: brightness(var(--hero-bright, .62));
  will-change: transform, filter;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 28%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 60%);
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 14vh, 140px);
  opacity: var(--hero-fade, 1);
  transform: translateY(var(--hero-shift, 0px));
  will-change: opacity, transform;
}
.hero__eyebrow { color: rgba(255, 255, 255, .7); }
.hero__title {
  font-size: clamp(52px, 10vw, 128px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.045em;
}
.hero__lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  color: rgba(255, 255, 255, .78);
  letter-spacing: -.015em;
}
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Entrada inicial del hero */
.hero__eyebrow, .hero__title, .hero__lead, .hero__ctas {
  animation: rise 1.2s var(--ease) both;
}
.hero__title { animation-delay: .12s; }
.hero__lead { animation-delay: .28s; }
.hero__ctas { animation-delay: .42s; }
.hero__img { animation: settle 1.4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  opacity: var(--hero-fade, 1);
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  background: #fff;
  border-radius: 3px;
  animation: wheel 2s var(--ease-io) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------------------
   Frase de marca (palabras que se iluminan al hacer scroll)
   -------------------------------------------------------------------------- */
.statement { padding: clamp(110px, 18vw, 200px) 0; }
.statement__text {
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.035em;
  max-width: 980px;
}
.statement__text .w { color: var(--faint); transition: color .5s var(--ease); }
.statement__text .w.on { color: var(--text); }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding: clamp(90px, 12vw, 150px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__title {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.04em;
}

/* --------------------------------------------------------------------------
   Servicios (bento)
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .18); }
.tile h3 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.tile__icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 40px;
}

.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }

.tile--photo { color: #fff; min-height: 420px; background: var(--black); }
.tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile--photo:hover .tile__bg { transform: scale(1.04); }
.tile--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.1) 60%);
}
.tile__body { position: relative; z-index: 1; margin-top: auto; max-width: 520px; }
.tile--photo h3 { font-size: 32px; }
.tile--photo p { color: rgba(255, 255, 255, .78); }

.tile--dark {
  background: var(--ink);
  color: #fff;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
}
.tile--dark h3 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; max-width: 640px; }
.tile--dark p { color: rgba(255, 255, 255, .62); max-width: 560px; }
.tile__arrow {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease), background-color .3s;
}
.tile__arrow svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile--dark:hover .tile__arrow { transform: translateX(6px); background: var(--brand-hover); }

/* --------------------------------------------------------------------------
   Coches en venta
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { background: #ebebef; }
.chip.is-active { background: var(--text); color: #fff; box-shadow: none; }

.cars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.car {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .5s var(--ease);
}
.car:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.car:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.car__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e8ed; }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.car:hover .car__media img { transform: scale(1.05); }
.car__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.car__badge--new { left: auto; right: 16px; background: var(--brand); color: #fff; }
.car__badge--reserved { left: auto; right: 16px; background: #ff9500; color: #fff; }
.car--skeleton {
  aspect-ratio: 3 / 4;
  cursor: default;
  background: linear-gradient(90deg, #ebebef 0%, #f8f8fa 50%, #ebebef 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
.car--skeleton:hover { transform: none; box-shadow: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.car__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.car__brand { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.car__name { margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.car__version { margin-top: 2px; font-size: 15px; color: var(--muted); }
.car__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.car__specs li { display: inline-flex; align-items: center; gap: 6px; }
.car__specs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.car__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.car__price { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.car__more { font-size: 15px; font-weight: 500; color: var(--brand); display: inline-flex; gap: 4px; }
.car__more span { transition: transform .3s var(--ease); }
.car:hover .car__more span { transform: translateX(3px); }
.car.is-hidden { display: none; }
.cars__empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* --------------------------------------------------------------------------
   Ficha del coche (modal)
   -------------------------------------------------------------------------- */
.sheet {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
.sheet::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { display: grid; place-items: center; padding: 24px; }
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  animation: sheetIn .6s var(--ease) both;
}
.sheet.is-closing .sheet__panel { animation: sheetOut .35s var(--ease-io) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet__media { position: relative; background: #e8e8ed; min-height: 100%; }
.gallery {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; min-height: 320px; scroll-snap-align: start; }
.gallery__nav {
  display: none;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  place-items: center;
  opacity: 0;
  transition: opacity .3s var(--ease), background-color .3s;
}
.gallery__nav svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.has-gallery .gallery__nav { display: grid; }
.sheet__media:hover .gallery__nav { opacity: 1; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background-color .3s, transform .3s; }
.gallery__dots span.is-on { background: #fff; transform: scale(1.2); }
.sheet__desc { margin: -8px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.sheet__body { padding: 44px 40px 40px; display: flex; flex-direction: column; }
.sheet__title { font-size: 36px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.sheet__version { margin-top: 6px; color: var(--muted); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 28px 0; }
.specs div { padding: 14px 0; border-top: 1px solid var(--line); }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.sheet__foot { margin-top: auto; }
.sheet__price { font-size: 34px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 18px; }
.sheet__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet__actions .btn { flex: 1; }
.sheet__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  transition: background-color .3s;
}
.sheet__close:hover { background: #fff; }
.sheet__close svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; }

/* --------------------------------------------------------------------------
   Pedir cita
   -------------------------------------------------------------------------- */
.cita {
  background: var(--black);
  color: #fff;
  padding: clamp(100px, 14vw, 170px) 0;
  position: relative;
  overflow: hidden;
}
.cita::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -300px;
  top: -350px;
  background: radial-gradient(closest-side, rgba(62, 64, 149, .55), rgba(62, 64, 149, 0));
  pointer-events: none;
}
.cita__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cita__title { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.cita__lead { margin-top: 22px; font-size: 20px; color: rgba(255, 255, 255, .66); max-width: 460px; }
.cita__card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 36px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.cita__label { font-size: 15px; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.cita__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.opt {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s;
}
.opt:hover { background: rgba(255, 255, 255, .1); }
.opt.is-active { background: rgba(139, 143, 245, .18); box-shadow: inset 0 0 0 1.5px var(--brand-light); color: #fff; }
.cita__call { display: block; text-align: center; margin-top: 16px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.cita__call strong { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Dónde estamos
   -------------------------------------------------------------------------- */
.visit { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.visit__info { display: flex; flex-direction: column; gap: 16px; }
.info {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.info > svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.info p { font-size: 17px; line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px !important; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { color: #1a8f3c; }
.status.is-closed { color: var(--muted); }
.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--bg-alt);
}
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: 64px 0 40px; font-size: 14px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__logo { height: 40px; width: auto; }
.footer__links, .footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; }

/* --------------------------------------------------------------------------
   Botón flotante WhatsApp (solo móvil)
   -------------------------------------------------------------------------- */
.fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
  place-items: center;
  transform: scale(var(--fab-scale, 0));
  transition: transform .5s var(--ease);
}
.fab svg { width: 30px; height: 30px; fill: #fff; }
body.past-hero .fab { --fab-scale: 1; }

/* --------------------------------------------------------------------------
   Animaciones de entrada al hacer scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.tile[data-reveal].is-in:hover { transform: translateY(-4px); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .cars { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: 1 / -1; }
  .cita__inner { grid-template-columns: 1fr; gap: 44px; }
  .visit { grid-template-columns: 1fr; }
  .sheet__panel { grid-template-columns: 1fr; max-width: 560px; }
  .gallery img { aspect-ratio: 16 / 10; min-height: 0; }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .fab { display: grid; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { height: 150vh; }
  .hero__ctas .btn--primary { width: 100%; }
  .hero__ctas { gap: 8px; }
  .cars, .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 28px; }
  .tile__icon { margin-bottom: 28px; }
  .tile--photo { min-height: 380px; }
  .tile--dark { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .tile__arrow { width: 52px; height: 52px; }
  .cita__card { padding: 24px; }
  .cita__options { grid-template-columns: repeat(2, 1fr); }
  .info { padding: 22px; }
  .visit__map, .visit__map iframe { min-height: 320px; }
  .sheet[open] { padding: 0; place-items: end center; }
  .sheet__panel { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .sheet__body { padding: 28px 24px calc(24px + env(safe-area-inset-bottom)); }
  .sheet__title { font-size: 30px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero { height: 100vh; }
}
