/* ==========================================================================
   AUTOYOTA — Design tokens
   Rojo corporativo Toyota + blanco + negro. Tipografía Montserrat.
   Motivo de marca: ángulos diagonales inspirados en la parrilla/grille Toyota.
   ========================================================================== */

:root {
  --red: #E30613;
  --red-dark: #B10510;
  --red-tint: #FDEBEC;
  --black: #0A0A0A;
  --ink: #1A1A1A;
  --gray-700: #4A4A4A;
  --gray-600: #5A5A5A;
  --gray-500: #6E6E6E;
  --gray-200: #E7E7E7;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;

  --font: 'Montserrat', system-ui, sans-serif;

  --header-h: 84px;
  --container: 1240px;

  --shadow-sm: 0 2px 10px rgba(10,10,10,.06);
  --shadow-md: 0 12px 32px rgba(10,10,10,.12);
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Reset
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Enlace de "saltar al contenido": oculto visualmente, visible al recibir foco */
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 2000;
  padding: .75rem 1.25rem;
  background: var(--red); color: var(--white);
  font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  border-radius: 0 0 6px 6px;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 0; outline: 3px solid var(--white); outline-offset: -3px; }
section > .eyebrow, .section-head { max-width: var(--container); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .9rem;
}
.eyebrow--dark { color: var(--red); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* Botón outline para CTA sobre fondos oscuros (equivalente a los estilos inline previos) */
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: #000; }

.btn-ghost-light { border-color: rgba(255,255,255,.65); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-outline-light {
  border-color: transparent;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-inline: .3rem;
}
.btn-outline-light:hover { color: var(--red); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link { flex-shrink: 0; }
.logo-img { height: 46px; width: auto; object-fit: contain; }

.main-nav ul { display: flex; gap: 2.1rem; }
.main-nav a {
  position: relative;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  padding-block: .4rem;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red);
  transition: right .3s var(--ease);
}
.main-nav a:hover::after { right: 0; }

/* Enlace de la página activa: texto en rojo corporativo + subrayado fijo */
.main-nav a.is-active { color: var(--red); }
.main-nav a.is-active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero / Carrusel
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 920px;
  overflow: hidden;
  background: var(--black);
}

.hero-slider { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s linear;
}
.hero-slide.is-active .hero-img { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 42%, rgba(0,0,0,.05) 68%);
}

.hero-content {
  position: absolute;
  left: 0; bottom: 0;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  right: 0;
  padding: 0 1.5rem 6.5rem;
}
.hero-content > * { max-width: 620px; }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero h1 span { color: var(--red); }

.hero-copy {
  color: rgba(255,255,255,.85);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(10,10,10,.25);
  backdrop-filter: blur(4px);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  z-index: 20;
}
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow--prev { left: 2rem; }
.hero-arrow--next { right: 2rem; }

.hero-dots {
  position: absolute; right: 2rem; bottom: 2.2rem;
  display: flex; gap: .6rem; z-index: 20;
}
.hero-dot {
  width: 34px; height: 3px; background: rgba(255,255,255,.4);
  border: none; padding: 0; cursor: pointer;
  transition: background .3s var(--ease);
}
.hero-dot.is-active { background: var(--red); }

/* ==========================================================================
   Franja de confianza
   ========================================================================== */
.trust-strip {
  background: var(--black);
  color: var(--white);
  padding: 3.2rem 1.5rem;
  position: relative;
}
.trust-strip::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--red);
}
.trust-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.trust-item { text-align: center; padding-inline: .5rem; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  color: var(--red);
  margin-bottom: 1rem;
}
.trust-icon svg { width: 100%; height: 100%; }
.trust-item h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .5rem; }
.trust-item p { font-size: .87rem; font-weight: 300; color: rgba(255,255,255,.7); line-height: 1.55; }
.trust-divider { width: 1px; height: 60px; background: rgba(255,255,255,.15); }

/* ==========================================================================
   Vitrina de servicios
   ========================================================================== */
.showcase { padding: 6.5rem 1.5rem; background: var(--white); }
.section-head { text-align: center; margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.showcase-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.showcase-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease);
}
.showcase-card:hover { box-shadow: var(--shadow-md); }

.showcase-card__media { position: relative; height: 300px; overflow: hidden; }
.showcase-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: grayscale(15%);
}
.showcase-card:hover .showcase-card__media img { transform: scale(1.08); filter: grayscale(0%); }

.showcase-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%);
}

.showcase-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.6rem 1.8rem;
  color: var(--white);
}
.showcase-card__index {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.showcase-card__body h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.showcase-card__body p {
  font-size: .87rem; font-weight: 300; color: rgba(255,255,255,.78); line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s var(--ease), opacity .3s var(--ease), margin .4s var(--ease);
}
.showcase-card:hover .showcase-card__body p { max-height: 4.5rem; opacity: 1; margin-bottom: .8rem; }

.showcase-card__link {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
}

/* ==========================================================================
   Bloque institucional
   ========================================================================== */
.institutional {
  background: var(--red);
  color: var(--white);
  padding: 5.5rem 1.5rem;
  position: relative;
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 calc(100% - 3vw));
  margin-block: -1px;
}
.institutional-inner { max-width: 900px; margin-inline: auto; text-align: center; }
.institutional-mark {
  display: inline-block;
  width: 44px; height: 4px;
  background: var(--white);
  margin-bottom: 1.8rem;
}
.institutional-quote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.5;
  font-style: normal;
}

/* ==========================================================================
   Historia
   ========================================================================== */
.history { padding: 7rem 1.5rem; background: var(--white); }
.history-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
}
.history h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1.4rem; }
.history-copy { font-weight: 300; color: var(--gray-700); line-height: 1.75; font-size: 1rem; margin-bottom: 2.2rem; }
.history-copy strong { color: var(--black); font-weight: 700; }

.history-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.history-stat { border-left: 3px solid var(--red); padding-left: 1rem; }
.history-stat__num { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; margin-bottom: .35rem; }
.history-stat__label { display: block; font-size: .78rem; color: var(--gray-500); font-weight: 500; max-width: 9rem; }

.history-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}
.history-media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Contacto y mapa
   ========================================================================== */
.contact { background: var(--gray-100); padding: 7rem 1.5rem; }
.contact-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 3.5rem;
}
.contact-info h2 { color: var(--black); font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1.8rem; }
.contact-info .eyebrow { color: var(--red); }

.contact-list { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-list li { display: flex; flex-direction: column; gap: .25rem; font-size: .95rem; }
.contact-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.contact-list a:hover { text-decoration: underline; }

.contact-cta { margin-top: 2.2rem; }

.contact-map {
  min-height: 380px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--black); color: rgba(255,255,255,.6); padding: 2.6rem 1.5rem; }
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo { height: 30px; filter: brightness(0) invert(1); opacity: .85; }
.site-footer p { font-size: .82rem; }

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  z-index: 600;
  transition: transform .3s var(--ease);
  animation: fab-pulse 2.6s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 100%; height: 100%; }

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.45); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 0 0 10px rgba(37,211,102,0); }
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .history-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .history-media { order: -1; aspect-ratio: 16/9; }
  .contact-inner { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .trust-divider { display: none; }
}

/* ==========================================================================
   Responsive — Mobile (Mobile-First base already covers small screens;
   overrides below fine-tune header/nav/hero for narrow viewports)
   ========================================================================== */
@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .logo-img { height: 34px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    padding: 1rem 1.5rem 1.5rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    z-index: 499;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--gray-100); }

  .header-actions .btn-outline { padding: .55rem .9rem; font-size: .68rem; }

  /* ---- Hero: altura contenida y proporcional, sin depender de 100vh ---- */
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 4;
  }
  .hero-slider, .hero-slide { height: 100%; }

  .hero-content {
    padding: 0 1.25rem;
    bottom: 2.6rem;
  }
  .hero-content > * { max-width: 100%; }

  .hero .eyebrow { font-size: .68rem; margin-bottom: .6rem; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); margin-bottom: .7rem; }
  .hero-copy { font-size: .88rem; line-height: 1.55; margin-bottom: 1.3rem; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: .7rem; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .btn-outline-light { width: auto; align-self: flex-start; }

  .hero-arrow { width: 38px; height: 38px; }
  .hero-arrow svg { width: 18px; height: 18px; }
  .hero-arrow--prev { left: .75rem; }
  .hero-arrow--next { right: .75rem; }

  .hero-dots {
    left: 0; right: 0;
    bottom: .9rem;
    justify-content: center;
  }
  .hero-dot { width: 22px; }

  .showcase-grid { grid-template-columns: 1fr; }

  .institutional { clip-path: none; padding: 3.8rem 1.5rem; }


  .history-stats { gap: 1.4rem; }

  .contact-map, .contact-map iframe { min-height: 300px; }

  .whatsapp-fab { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
}

@media (max-width: 400px) {
  .hero { aspect-ratio: 3 / 4.4; }
  .hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  .hero-copy { font-size: .84rem; }
  .logo-img { height: 30px; }
}

/* ==========================================================================
   Sub-header (páginas internas: catálogo y fichas de vehículo)
   ========================================================================== */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: calc(var(--header-h) + 3.5rem) 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(227,6,19,.18), transparent 55%);
  pointer-events: none;
}
.page-hero-inner { max-width: var(--container); margin-inline: auto; position: relative; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--red); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: uppercase; color: var(--white); }
.page-hero h1 span { color: var(--red); }
.page-hero p { color: rgba(255,255,255,.75); font-weight: 300; max-width: 620px; margin-top: 1rem; font-size: 1.02rem; }

/* ==========================================================================
   Catálogo de vehículos (vehiculos.html)
   ========================================================================== */
.catalog {
  background: var(--white);
  padding: 5rem 1.5rem 6.5rem;
}
.catalog-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 8px rgba(10,10,10,.04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.catalog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gray-200); }
.catalog-card__media {
  background: var(--gray-100);
  padding: 1.6rem 1.2rem 0;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.catalog-card__media img { width: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.12)); transition: transform .5s var(--ease); }
.catalog-card:hover .catalog-card__media img { transform: scale(1.05); }
.catalog-card__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.catalog-card__cat {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: .4rem;
}
.catalog-card__body h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: .55rem; }
.catalog-card__desc { font-size: .87rem; font-weight: 300; color: var(--gray-700); line-height: 1.55; margin-bottom: 1.3rem; flex: 1; }
.catalog-card__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 2px solid var(--black); border-radius: 3px; color: var(--black);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.catalog-card:hover .catalog-card__btn { background: var(--red); color: var(--white); border-color: var(--red); }

/* ==========================================================================
   Ficha individual de vehículo
   ========================================================================== */
.vehicle-showcase { background: var(--white); padding: 4.5rem 1.5rem; }
.vehicle-showcase-inner {
  max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.vehicle-showcase-media {
  background: var(--gray-100); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 2.5rem;
  aspect-ratio: 4/3;
}
.vehicle-showcase-media img { width: 100%; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(0,0,0,.14)); }

.vehicle-showcase-media--photo {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.vehicle-showcase-media--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none;
  border-radius: 8px;
}

.vehicle-showcase-media--duo {
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.vehicle-showcase-media--duo .duo-media-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: .5rem;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1);
}
.vehicle-showcase-media--duo .duo-media-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}
.vehicle-showcase-media--duo .duo-media-item:active {
  transform: translateY(-2px) scale(0.985);
  box-shadow: 0 8px 16px rgba(0,0,0,0.14);
}
.vehicle-showcase-media--duo .duo-media-item img {
  width: 100%; height: auto;
  object-fit: cover;
  filter: none;
  border-radius: 8px;
  aspect-ratio: 4/3;
  transform: scale(1);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.vehicle-showcase-media--duo .duo-media-item:hover img {
  transform: scale(1.06);
}
.vehicle-showcase-media--duo .duo-media-item figcaption {
  margin-top: .7rem;
  font-size: .85rem;
  font-weight: 300;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.4;
  transition: color .3s ease;
}
.vehicle-showcase-media--duo .duo-media-item:hover figcaption {
  color: var(--red);
}
@media (max-width: 640px) {
  .vehicle-showcase-media--duo { grid-template-columns: 1fr; aspect-ratio: auto; }
  .vehicle-showcase-media--duo img { aspect-ratio: 4/3; }
}
.vehicle-showcase-copy .eyebrow { color: var(--red); }
.vehicle-showcase-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.1rem; }
.vehicle-showcase-copy p { font-weight: 300; color: var(--gray-700); line-height: 1.75; margin-bottom: 1.6rem; }

.vehicle-showcase-inner.is-reversed .vehicle-showcase-media { order: 2; }
.vehicle-showcase-inner.is-reversed .vehicle-showcase-copy { order: 1; }

.highlights { background: var(--gray-100); padding: 5rem 1.5rem; }
.highlights-grid {
  max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem;
}
.highlight-card {
  background: var(--white); border-radius: 6px; padding: 1.8rem 1.6rem;
  border: 1px solid var(--gray-200); transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.highlight-card:hover { border-color: var(--red); transform: translateY(-4px); }
.highlight-card__icon {
  width: 46px; height: 46px; color: var(--red); margin-bottom: 1rem;
}
.highlight-card__icon svg { width: 100%; height: 100%; }
.highlight-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .01em; margin-bottom: .5rem; }
.highlight-card p { font-size: .87rem; font-weight: 300; color: var(--gray-700); line-height: 1.55; }

.vehicle-cta { background: var(--red); color: var(--white); padding: 3.5rem 1.5rem; text-align: center; }
.vehicle-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.4rem; }
.vehicle-cta .hero-cta { justify-content: center; }

/* Ficha técnica */
.spec-sheet { background: var(--white); padding: 5rem 1.5rem 6rem; }
.spec-sheet-inner { max-width: var(--container); margin-inline: auto; }
.spec-sheet .section-head { margin-bottom: 2.6rem; }
.spec-note {
  text-align: center; font-size: .78rem; color: var(--gray-500); font-weight: 300;
  max-width: 700px; margin: 2rem auto 0; line-height: 1.6;
}
.spec-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.2rem; }
.spec-group { border-top: 3px solid var(--red); padding-top: 1rem; }
.spec-group h3 {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--black); margin-bottom: .8rem;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--gray-200); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td, .spec-table th { padding: .6rem .1rem; font-size: .85rem; vertical-align: top; }
.spec-table th { text-align: left; font-weight: 500; }
.spec-table td:first-child, .spec-table th:first-child { color: var(--gray-500); font-weight: 500; width: 52%; padding-right: .8rem; }
.spec-table td:last-child { color: var(--black); font-weight: 600; text-align: right; }

.color-swatches { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.4rem; }
.color-swatch { text-align: center; font-size: .72rem; color: var(--gray-600); font-weight: 500; }
.color-swatch__dot { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto .4rem; border: 1px solid var(--gray-200); }

/* ==========================================================================
   Descarga de ficha técnica (PDF)
   ========================================================================== */
.pdf-download {
  background: var(--black);
  padding: 4rem 1.5rem;
  text-align: center;
}
.pdf-download-inner { max-width: 620px; margin-inline: auto; }
.pdf-download-inner .eyebrow { color: var(--red); }
.pdf-download h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .8rem; }
.pdf-download p { color: rgba(255,255,255,.7); font-weight: 300; margin-bottom: 1.8rem; font-size: .95rem; }
.btn-pdf {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--red); color: var(--white);
  padding: 1rem 1.8rem; border-radius: 4px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-pdf:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-pdf svg { width: 18px; height: 18px; }

/* ==========================================================================
   CTA WhatsApp destacado (dentro de la ficha del vehículo)
   ========================================================================== */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25D366; color: var(--white);
  padding: .95rem 1.7rem; border-radius: 4px; border: none;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-whatsapp:hover { background: #1ebc59; transform: translateY(-2px); }
.btn-whatsapp svg { width: 19px; height: 19px; }

/* ==========================================================================
   Cross-selling: también te podría interesar
   ========================================================================== */
.cross-sell { background: var(--gray-100); padding: 5rem 1.5rem; }
.cross-sell-grid {
  max-width: 800px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem;
}

/* ==========================================================================
   Responsive — páginas internas
   ========================================================================== */
@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-showcase-inner { grid-template-columns: 1fr; }
  .spec-groups { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .cross-sell-grid { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--header-h) + 2rem) 1.2rem 2.4rem; }
}

/* ==========================================================================
   Catálogo — categorías (agrupación por tipo de vehículo)
   ========================================================================== */
.catalog-category { max-width: var(--container); margin: 0 auto 3.6rem; }
.catalog-category:last-child { margin-bottom: 0; }
.catalog-category__head {
  display: flex; align-items: baseline; gap: .9rem;
  margin-bottom: 1.4rem; padding-bottom: .8rem;
  border-bottom: 2px solid var(--gray-200);
}
.catalog-category__head h2 {
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em;
}
.catalog-category__count { font-size: .78rem; color: var(--gray-500); font-weight: 500; }

.catalog-category .catalog-grid { grid-template-columns: repeat(4, 1fr); }
.catalog-card__media { padding: 1.1rem .9rem 0; aspect-ratio: 16/10; }
.catalog-card__media img { max-height: 100%; }

@media (max-width: 1024px) {
  .catalog-category .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Página de Agendar Cita (citas.php)
   ========================================================================== */
.booking {
  background: var(--gray-100);
  padding: calc(var(--header-h) + 3.5rem) 1.5rem 6rem;
  min-height: 100vh;
}
.booking-inner {
  max-width: 720px;
  margin-inline: auto;
}
.booking-head { text-align: center; margin-bottom: 2.6rem; }
.booking-head .eyebrow { color: var(--red); }
.booking-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: .8rem;
}
.booking-head p { color: var(--gray-600); font-weight: 300; font-size: .98rem; max-width: 520px; margin-inline: auto; }

.booking-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2.6rem 2.4rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-section + .form-section { margin-top: 2.6rem; }
.form-section__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.6rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--black);
}
.form-section__num {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--red); color: var(--white);
  font-size: .8rem; font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
}
.form-section__head h2 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 1.2rem;
}
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--black);
}
.form-field .optional-tag {
  font-weight: 400;
  color: var(--gray-500);
  text-transform: none;
  letter-spacing: 0;
}

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: .92rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: .85rem 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 100px; font-family: var(--font); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray-500); font-weight: 300; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-tint);
}
.form-field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #C94A4A;
}

.booking-submit {
  display: block;
  width: 100%;
  margin-top: 2.6rem;
  padding: 1.1rem 1.5rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 20px rgba(227,6,19,.25);
}
.booking-submit:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(227,6,19,.32); }
.booking-submit:active { transform: translateY(0); }

.booking-note {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-500);
  font-weight: 300;
  margin-top: 1.2rem;
}

/* Campo honeypot: oculto por CSS externo Y por estilo inline en el HTML
   (así queda protegido incluso si el navegador no llega a cargar este archivo) */
.hp-wrap,
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

.booking-alert {
  display: none;
  max-width: 720px;
  margin: 0 auto 1.6rem;
  padding: 1rem 1.3rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.5;
}
.booking-alert.is-visible { display: block; }
.booking-alert--error {
  background: #FDEBEC;
  color: #A32127;
  border: 1px solid #F3B9BC;
}
.booking-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}
.booking-success.is-visible { display: block; }
.booking-success__icon {
  width: 68px; height: 68px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.booking-success__icon svg { width: 32px; height: 32px; }
.booking-success h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: .8rem;
}
.booking-success p { color: var(--gray-600); font-weight: 300; max-width: 420px; margin: 0 auto 1.8rem; line-height: 1.6; }

@media (max-width: 720px) {
  .booking-form { padding: 2rem 1.4rem; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .booking { padding: calc(var(--header-h) + 2rem) 1rem 4rem; }
}
.recall-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.recall-modal-overlay.is-open { opacity: 1; visibility: visible; }

.recall-modal {
  position: relative;
  max-width: 800px;
  width: 100%;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  transform: scale(.94) translateY(10px);
  transition: transform .35s var(--ease);
}
.recall-modal-overlay.is-open .recall-modal { transform: scale(1) translateY(0); }

.recall-modal__link { display: block; line-height: 0; }
.recall-modal__link img { width: 100%; height: auto; display: block; transition: opacity .2s var(--ease); }
.recall-modal__link:hover img { opacity: .93; }

.recall-modal__close {
  position: absolute;
  top: .6rem; right: .6rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(10,10,10,.65);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .25s var(--ease);
}
.recall-modal__close:hover { background: var(--red); }

@media (max-width: 480px) {
  .recall-modal { max-width: 92vw; }
}

/* =====================================================================
   Estilos que antes estaban en línea (style="...") — consolidados aquí
   ===================================================================== */
.sello-garantia {
  background-color: #f9f9f9;
  border-left: 4px solid #cc0000;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  font-family: 'Montserrat', sans-serif;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.sello-garantia:hover {
  transform: translateX(8px);
  border-left-width: 8px !important;
  box-shadow: 0 8px 25px rgba(204, 0, 0, 0.12) !important;
  background-color: #ffffff !important;
}
.sello-garantia:hover .texto-trayectoria { color: #cc0000; }
.sello-garantia p {
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}
.sello-garantia .texto-trayectoria { transition: color 0.3s ease; }
.historia-media { flex: 1; min-width: 300px; }
.historia-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.media-full { grid-column: 1 / -1; }
.history-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.history-text { flex: 1; min-width: 300px; }
