.dealer-landing {
  background: var(--marmo-surface);
}

.dealer-hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(120deg, rgba(6, 38, 74, 0.78), rgba(6, 38, 74, 0.38)),
    var(--dealer-hero-image) center / cover no-repeat;
  color: #ffffff;
  padding: 84px 0 68px;
}

.dealer-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(6, 38, 74, 0.26));
  pointer-events: none;
}

.dealer-hero-inner {
  position: relative;
  z-index: 1;
}

.dealer-hero-copy {
  max-width: 860px;
}

.dealer-brand-logo {
  width: 168px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.dealer-hero .eyebrow,
.dealer-hero h1,
.dealer-hero p {
  color: #ffffff;
}

.dealer-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.dealer-claim {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.dealer-hero-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.dealer-hero-meta a {
  color: #ffffff;
  font-weight: 600;
}

.dealer-services-grid article,
.dealer-hours-grid article,
.dealer-commercial-card,
.dealer-map-card,
.dealer-map-placeholder,
.dealer-nearby-grid article {
  border: 1px solid var(--marmo-line);
  border-radius: 10px;
  background: #ffffff;
}

.dealer-quick-info-band {
  margin-top: -1px;
  background: var(--marmo-blue-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 0;
  margin-bottom: 170px;
}

.dealer-info-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dealer-info-band article {
  min-height: 118px;
  padding: 26px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: visible;
}

.dealer-info-band article:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.dealer-info-band h3 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.dealer-info-band p,
.dealer-info-band a {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.1vw, 1.22rem);
  line-height: 1.35;
  text-decoration: none;
}

.dealer-info-band .band-hours p {
  font-size: calc(0.98rem - 4px);
  line-height: 1.45;
  font-weight: 400;
}

.dealer-info-band .band-hours-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.dealer-info-band .band-hours span {
  font-weight: 600;
}

.dealer-info-band .band-hours-saturday {
  margin-top: 10px;
}

.band-hours-status {
  position: absolute;
  left: 20px;
  right: 20px;
  top: calc(100% + 1px);
  bottom: auto;
  background: #ffffff;
  border: 1px solid var(--marmo-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 16px 16px 3px;
  color: var(--marmo-text);
  min-height: 107px;
  z-index: 5;
}

.dealer-info-band .band-hours-status-title {
  margin: 0;
  font-size: calc(1rem - 4px);
  font-weight: 600;
  color: var(--marmo-text);
}

.dealer-info-band .band-hours-status-detail {
  margin: 6px 0 0;
  font-size: calc(0.86rem - 4px);
  color: var(--marmo-muted);
}

.dealer-info-band .band-hours-status-badge {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: calc(0.88rem - 4px);
  font-weight: 600;
  background: rgba(66, 107, 93, 0.1);
  color: var(--marmo-success);
}

.band-hours-status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.band-hours-status-badge.is-closed {
  background: rgba(201, 53, 43, 0.06);
  color: var(--marmo-red-hover);
}

.dealer-info-band a:hover {
  color: var(--marmo-gold-light);
}

.dealer-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
}

.dealer-services {
  margin-top: -50px;
}

.dealer-services-grid article {
  padding: 28px 24px;
  min-height: 188px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  transition: background-color 0.22s ease;
  border: 1px solid var(--marmo-line);
  border-radius: 10px;
}

.dealer-services-grid article:hover {
  background: #ffffff;
}

.service-icon-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--marmo-blue);
}

.service-icon-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dealer-services-grid h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.dealer-services-grid p {
  margin: 0;
  color: var(--marmo-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dealer-hours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dealer-hours-grid article {
  padding: 34px 30px;
  border-radius: 10px;
  border: 1px solid var(--marmo-line);
  background: #ffffff;
  position: relative;
}

.dealer-hours-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
  background: var(--marmo-blue);
}

.dealer-hours-grid article.hours-status-placeholder::before {
  background: var(--marmo-gold-light);
}

.dealer-hours-grid h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.35;
  margin-bottom: 0;
}

.hours-lines {
  display: grid;
  gap: 8px;
}

.hours-lines p {
  margin: 0;
  color: var(--marmo-text);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

.hours-lines .hours-strong {
  font-weight: 600;
}

.hours-lines .hours-saturday {
  margin-top: 8px;
}

.hours-status-placeholder p:last-child {
  margin-top: 12px;
  color: var(--marmo-muted);
  font-size: 0.95rem;
}

.dealer-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  min-height: 260px;
}

.gallery-item-1 {
  grid-row: span 2;
  min-height: 544px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.dealer-commercial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 48px;
  align-items: start;
}

.dealer-commercial-side {
  display: grid;
  gap: 16px;
  margin-top: 64px;
}

.dealer-commercial-copy {
  display: grid;
  gap: 18px;
}

.dealer-commercial-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.05;
  color: var(--marmo-ink);
  max-width: 12ch;
}

.dealer-commercial-copy p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--marmo-muted);
  max-width: 58ch;
}

.dealer-commercial-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--marmo-line);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.dealer-commercial-metrics article {
  padding: 18px 16px 16px;
  min-height: 88px;
  border-right: 1px solid var(--marmo-line);
  border-bottom: 1px solid var(--marmo-line);
  text-align: center;
  display: grid;
  place-content: center;
  gap: 4px;
}

.dealer-commercial-metrics .dealer-metric-main {
  grid-column: 1 / -1;
  border-right: 0;
  min-height: 104px;
}

.dealer-commercial-metrics .dealer-metric-split:nth-of-type(2) {
  border-right: 1px solid var(--marmo-line);
}

.dealer-commercial-metrics .dealer-metric-split:last-child {
  border-right: 0;
  border-bottom: 0;
}

.dealer-commercial-metrics strong {
  display: block;
  margin: 0;
  color: var(--marmo-blue);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 0.95;
  font-weight: 600;
}

.dealer-commercial-metrics span {
  display: block;
  color: var(--marmo-text);
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 500;
}

.dealer-commercial-metrics-media {
  margin: 0;
  border: 1px solid var(--marmo-line);
  border-radius: 10px;
  min-height: 186px;
  overflow: hidden;
  background: #ffffff;
}

.dealer-commercial-metrics-media img {
  width: 100%;
  height: 100%;
  min-height: 186px;
  object-fit: cover;
  display: block;
}

.dealer-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.dealer-map-card,
.dealer-map-placeholder {
  padding: 36px 32px;
  border-radius: 10px;
}

.dealer-map-card {
  background: var(--marmo-blue-dark);
  color: #ffffff;
}

.dealer-map-card .eyebrow,
.dealer-map-card h2 {
  color: #ffffff;
}

.dealer-map-card h2 {
  margin-bottom: 30px;
  max-width: 36ch;
}

.dealer-map-placeholder {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--marmo-line);
  background: var(--marmo-surface);
  color: var(--marmo-muted);
}

.dealer-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 46px;
  align-items: start;
}

.dealer-lead-form {
  padding: 36px 32px;
  border: 1px solid var(--marmo-line);
  border-radius: 10px;
  background: #ffffff;
}

.dealer-contact-subtext {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--marmo-muted);
}

.dealer-lead-form #lead-reason {
  font-weight: 400;
}

.dealer-lead-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.dealer-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dealer-nearby-grid article {
  padding: 28px 24px;
  border: 1px solid var(--marmo-line);
  border-radius: 10px;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dealer-nearby-grid article:hover {
  transform: translateY(-1px);
  border-color: var(--marmo-line-strong);
}

.dealer-nearby-grid h3 {
  margin-bottom: 12px;
}

.dealer-nearby-grid a {
  color: var(--marmo-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dealer-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(6, 38, 74, 0.94);
  backdrop-filter: blur(10px);
  z-index: 80;
}

.dealer-mobile-cta a {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.dealer-mobile-cta a:last-child {
  border-right: 0;
}

@media (max-width: 1120px) {
  .dealer-info-band,
  .dealer-services-grid,
  .dealer-hours-grid,
  .dealer-nearby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dealer-map-grid,
  .dealer-form-grid,
  .dealer-commercial-layout {
    grid-template-columns: 1fr;
  }

  .dealer-commercial-metrics {
    margin-top: 0;
  }

  .dealer-commercial-side {
    margin-top: 0;
  }

  .dealer-info-band article:first-child {
    border-left: 0;
  }

  .dealer-quick-info-band {
    margin-bottom: 190px;
  }
}

@media (max-width: 760px) {
  .dealer-hero {
    min-height: 62vh;
    padding: 76px 0 56px;
  }

  .dealer-info-band,
  .dealer-services-grid,
  .dealer-hours-grid,
  .dealer-nearby-grid,
  .dealer-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item-1 {
    grid-row: auto;
    min-height: 320px;
  }

  .gallery-item {
    min-height: 240px;
  }

  .dealer-mobile-cta {
    display: grid;
  }

  .dealer-info-band article {
    min-height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .dealer-info-band article:last-child {
    border-bottom: 0;
  }

  .dealer-quick-info-band {
    margin-bottom: 0;
  }

  .band-hours-status {
    position: static;
    margin-top: 12px;
    border-radius: 10px;
  }

  .dealer-hours-grid article,
  .dealer-map-card,
  .dealer-map-placeholder,
  .dealer-lead-form {
    padding: 24px 20px;
  }

  .dealer-commercial-metrics article {
    padding: 16px 14px;
    min-height: 76px;
  }

  .dealer-commercial-metrics .dealer-metric-main {
    min-height: 92px;
  }
}

/* Enlazado interno de la ficha: marca, ocasión de la marca/ciudad y concesionarios */
.dealer-links { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.dealer-links__title { margin: 0 0 var(--space-4); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--marmo-blue-dark); }
.dealer-links__list { margin: 0; padding: 0; list-style: none; }

/* Foto de cabecera como <img> (SEO de imágenes y SEO local, G-CON · Prioridad 3). El fondo CSS queda como respaldo. */
.dealer-hero:has(.dealer-hero__photo) { background: none; overflow: hidden; }
.dealer-hero__photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.dealer-hero:has(.dealer-hero__photo)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(6, 38, 74, 0.78), rgba(6, 38, 74, 0.38)); pointer-events: none; }
.dealer-hero:has(.dealer-hero__photo)::after { z-index: 1; }
.dealer-hero:has(.dealer-hero__photo) .dealer-hero-inner { z-index: 2; }

/* Enlace a la página de recambios del concesionario (tarjeta «Recambios» de servicios). */
.dealer-service-link {
  color: var(--marmo-blue);
  font-weight: 600;
}

.dealer-service-link:hover {
  text-decoration: underline;
}
