/* MegaCar Tijuana — Concepto "Confianza Moderna" */

:root {
  --azul: #0C447C;
  --azul-dark: #083560;
  --azul-darker: #062845;
  --ambar: #EF9F27;
  --ambar-dark: #d98a12;
  --texto: #2C2C2A;
  --texto-sec: #6b6a63;
  --fondo: #F1EFE8;
  --fondo-alt: #e8e3d5;
  --blanco: #ffffff;
  --steel: #B8BCC2;
  --borde: rgba(12, 68, 124, 0.14);
  --verde-exito: #27500A;
  --ambar-oscuro: #854F0B;
  --divisor-suave: #e5e2d8;

  --font-head: "Space Grotesk", "Archivo", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(6, 40, 69, 0.1);
  --shadow-md: 0 12px 32px rgba(6, 40, 69, 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --nav-h: 108px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--fondo);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* focus states — visible everywhere, never suppressed */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============ Toggle de idioma ES/EN ============ */

[data-lang="en"] { display: none; }
.lang-en [data-lang="es"] { display: none; }
.lang-en [data-lang="en"] { display: inline; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-switch button {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  min-height: auto;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ambar);
  color: #241a05;
}
.lang-switch button:hover:not([aria-pressed="true"]) { color: #fff; }

.lang-switch--mobile {
  margin-bottom: 20px;
  border-color: rgba(255, 255, 255, 0.25);
}
.lang-switch--mobile button { font-size: 14px; padding: 8px 16px; }

@media (max-width: 380px) {
  .lang-switch button { padding: 6px 9px; font-size: 11.5px; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px; left: 12px;
  background: var(--azul);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

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

/* ============ Botones ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn-cta {
  background: var(--ambar);
  color: #241a05;
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover { background: var(--ambar-dark); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { border-color: #fff; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-tel {
  background: var(--blanco);
  color: var(--azul);
  border: 1.5px solid var(--borde);
}
.btn-tel:hover { border-color: var(--azul); }

/* ============ Marca (icono + wordmark) ============ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__icon { width: 60px; height: 60px; flex-shrink: 0; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 4px;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 33px;
  letter-spacing: -0.01em;
  color: #fff;
}

/* placa de contraste propia — la nav va sobre foto, no puede depender del fondo */
.brand--plate {
  background: rgba(12, 68, 124, 0.88);
  border-radius: 8px;
  padding: 10px 16px;
}

/* variante clara — sobre fondo #F1EFE8 (footer, sin placa) */
.brand--dark .brand__name { color: var(--azul); }
.brand--dark .brand__kicker { color: rgba(12, 68, 124, 0.6); }

/* footer: ya tiene contraste propio sobre el fondo claro, solo crece */
.brand--lg .brand__icon { width: 74px; height: 74px; }
.brand--lg .brand__name { font-size: 41px; }
.brand--lg .brand__kicker { font-size: 13px; margin-bottom: 5px; }

@media (max-width: 380px) {
  .brand--plate { padding: 7px 12px; }
  .brand__icon { width: 46px; height: 46px; }
  .brand__name { font-size: 25px; }
  .brand__kicker { font-size: 9.5px; }
}

/* ============ Header / Nav ============ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.site-header.is-scrolled {
  background: var(--azul);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-links {
  display: none;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 600;
  color: #f2f0ea;
}
.nav-links a {
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms var(--ease-out);
}
.nav-links a:hover { border-color: var(--ambar); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 480px) {
  .nav-actions { gap: 8px; }
  .nav-actions .btn-cta { padding: 12px; }
  .nav-actions .btn-cta span { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--azul-darker);
  z-index: 99;
  padding: 28px 20px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out), visibility 200ms;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu .btn-cta { margin-top: 24px; width: 100%; justify-content: center; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 26, 48, 0.78) 0%,
    rgba(4, 26, 48, 0.5) 42%,
    rgba(12, 17, 19, 0.85) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--nav-h) + 24px) 20px 70px;
}
.hero__inner { max-width: 640px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 3px 10px rgba(0, 0, 0, 0.75), 0 6px 22px rgba(0, 0, 0, 0.5);
}

.hero__sub {
  font-size: 16px;
  line-height: 1.65;
  color: #fff;
  max-width: 40ch;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero__stats {
  display: flex;
  gap: 28px;
  margin-top: 30px;
}
.hero__stats div b {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.hero__stats div span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
  .hero__content { padding-bottom: 90px; }
}

/* ============ Diag Card — componente reutilizable ============
   Tarjeta de diagnóstico. Usada como ejemplo visual flotante en el hero
   del landing (index.html) y en servicios/diagnostico.html con datos
   reales por orden de trabajo. Para agregar más renglones, repetir el
   patrón .diag-row + .diag-divider (sin divider después del último). */

.diag-card {
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--azul), 0 0 0 5px rgba(12, 68, 124, 0.08);
  padding: 16px;
  position: relative;
  max-width: 320px;
  background: var(--blanco);
}

.diag-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--azul);
}
.diag-corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.diag-corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.diag-corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.diag-corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.diag-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--azul);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.diag-title svg { width: 16px; height: 16px; flex-shrink: 0; }
.diag-folio {
  background: var(--ambar);
  color: var(--blanco);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

.diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.diag-label { font-size: 14px; font-weight: 500; color: var(--texto); }
.diag-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.diag-status svg { width: 14px; height: 14px; flex-shrink: 0; }
.diag-status-ok { color: var(--verde-exito); }
.diag-status-warn { color: var(--ambar-oscuro); }

.diag-divider { border-top: 0.5px solid var(--divisor-suave); }

/* leyenda de recomendación — solo debe incluirse en el HTML cuando algún
   renglón tiene estado de advertencia (diag-status-warn) */
.diag-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 0.5px solid var(--divisor-suave);
  font-size: 12px;
  color: var(--ambar-oscuro);
}
.diag-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* variante flotante: la usada como ejemplo visual sobre la foto del hero */
.diag-card--hero {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 84px;
  width: min(72vw, 240px);
  padding: 12px;
}
.diag-card--hero .diag-header { margin-bottom: 8px; }
.diag-card--hero .diag-title { font-size: 10.5px; }
.diag-card--hero .diag-title svg { width: 13px; height: 13px; }
.diag-card--hero .diag-folio { font-size: 9px; padding: 2px 8px; }
.diag-card--hero .diag-row { padding: 6px 0; }
.diag-card--hero .diag-label { font-size: 12px; }
.diag-card--hero .diag-status { font-size: 11px; }
.diag-card--hero .diag-status svg { width: 12px; height: 12px; }
.diag-card--hero .diag-note { font-size: 10.5px; margin-top: 6px; padding-top: 8px; }
.diag-card--hero .diag-note svg { width: 12px; height: 12px; }

/* variante oscura — solo la instancia flotante del hero; el componente
   base (.diag-card) y la instancia clara de servicios/diagnostico.html
   no se ven afectados por estas reglas */
.diag-card--hero {
  background: #12161d;
  box-shadow: 0 0 0 1px #85B7EB, 0 0 0 5px rgba(133, 183, 235, 0.12);
}
.diag-card--hero .diag-corner { border-color: #85B7EB; }
.diag-card--hero .diag-title { color: #85B7EB; }
.diag-card--hero .diag-label { color: #F1EFE8; }
.diag-card--hero .diag-divider { border-top-color: rgba(255, 255, 255, 0.12); }
.diag-card--hero .diag-status-ok { color: #97C459; }
.diag-card--hero .diag-status-warn { color: #FAC775; }
.diag-card--hero .diag-note {
  color: #FAC775;
  border-top-color: rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .diag-card--hero { bottom: 96px; right: 32px; width: 260px; }
}

/* ============ Secciones genéricas ============ */

section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head .eyebrow { color: var(--azul); text-shadow: none; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--texto);
}
.section-head p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--texto-sec);
  line-height: 1.6;
}

/* ============ Diferenciador ============ */

.diferenciador { background: var(--fondo); }

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.pillar__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(12, 68, 124, 0.08);
  margin-bottom: 22px;
}
.pillar__icon svg { width: 28px; height: 28px; color: var(--azul); }

.pillar h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.pillar p {
  color: var(--texto-sec);
  font-size: 15.5px;
  line-height: 1.65;
}

@media (min-width: 780px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* ============ Marcas atendidas ============ */

.marcas {
  background: var(--fondo);
  padding: 36px 0;
  border-top: 1px solid var(--borde);
}
.marcas__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-sec);
  text-align: center;
  margin-bottom: 20px;
}
.marcas__track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marcas__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 48px;
  animation: marcas-scroll 34s linear infinite;
}
.marcas__track-wrap:hover .marcas__track { animation-play-state: paused; }

.marcas__logo {
  width: 96px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.marcas__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .marcas__logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
  }
}

@keyframes marcas-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Servicios (preview) ============ */

.servicios { background: var(--fondo-alt); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.servicio-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.servicio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.servicio-card__icon svg { width: 26px; height: 26px; color: var(--azul); }
.servicio-card h3 {
  font-size: 15.5px;
  margin: 14px 0 4px;
  font-weight: 700;
}
.servicio-card__variant {
  font-size: 11.5px;
  color: var(--texto-sec);
  margin: -2px 0 3px;
}
.servicio-card .precio {
  font-size: 13.5px;
  color: var(--texto-sec);
}
.servicio-card .ver {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--azul);
}
.servicio-card .ver svg { width: 14px; height: 14px; transition: transform 160ms var(--ease-out); }
.servicio-card:hover .ver svg { transform: translateX(3px); }

@media (min-width: 640px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .servicios-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

.servicios-cta { margin-top: 36px; }

/* ============ Reseñas ============ */

.resenas { background: var(--fondo); }

.rating-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.rating-block .num {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: var(--azul);
}
.rating-block .stars svg { width: 18px; height: 18px; color: var(--azul); }
.rating-block .stars { display: flex; gap: 2px; margin-bottom: 4px; }
.rating-block .fuente { font-size: 13.5px; color: var(--texto-sec); }
.rating-block .fuente a { font-weight: 700; color: var(--azul); text-decoration: underline; text-underline-offset: 3px; }

.testimonios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.testimonio {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius-md);
  padding: 24px;
}
.testimonio p { font-size: 15px; line-height: 1.65; color: var(--texto); }
.testimonio .autor { margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--texto-sec); }
.testimonio.placeholder {
  border: 1px dashed rgba(12, 68, 124, 0.3);
  background: rgba(12, 68, 124, 0.03);
}
.testimonio.placeholder p { color: var(--texto-sec); font-style: italic; }

@media (min-width: 780px) {
  .testimonios { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Ubicaciones ============ */

.ubicaciones { background: var(--fondo-alt); }

.ubicaciones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ubicacion-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius-md);
  padding: 28px;
}
.ubicacion-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.ubicacion-card__dir {
  font-size: 15px;
  color: var(--texto-sec);
  line-height: 1.6;
  margin-bottom: 16px;
}
.ubicacion-card__tels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.ubicacion-card__tels a {
  font-weight: 700;
  color: var(--azul);
}
.ubicacion-card__tels a:hover { text-decoration: underline; }
.ubicacion-card__horario {
  font-size: 13.5px;
  color: var(--texto-sec);
  margin-bottom: 20px;
}
.ubicacion-card__horario-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
  font-size: 13.5px;
}
.ubicacion-card__horario-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--texto-sec);
}
.ubicacion-card__horario-list li span:first-child {
  font-weight: 600;
  color: var(--texto);
}
.ubicacion-card__maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--azul);
}
.ubicacion-card__maps svg { width: 16px; height: 16px; transition: transform 160ms var(--ease-out); }
.ubicacion-card__maps:hover svg { transform: translateX(3px); }

@media (min-width: 700px) {
  .ubicaciones-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============ Contacto directo (página Contacto) ============ */

.contacto-directo { background: var(--fondo); }
.contacto-directo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============ Historia (página Nosotros) ============ */

.historia { background: var(--fondo); }
.historia__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
.historia__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--texto);
}

/* ============ Página de servicio (plantilla reutilizable) ============ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-current] { color: #fff; font-weight: 600; }

.service-header {
  background: var(--azul);
  padding: calc(var(--nav-h) + 40px) 0 48px;
}
.service-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  color: #fff;
  margin-bottom: 14px;
}
.service-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
}

.service-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--azul-darker);
}
.service-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.service-banner--frenos img { object-position: center center; }
.service-banner--transmision img { object-position: center center; }
.service-banner--aire img { object-position: center center; }
.service-banner--diagnostico img { object-position: center 38%; }
.service-banner--mantenimiento img { object-position: center 35%; }

/* Nosotros: placeholder de marca hasta aprobar la foto horizontal real (ver comentario en nosotros.html) */
.service-banner--nosotros {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-darker) 100%);
}
.service-banner__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.service-banner__placeholder svg { width: 44px; height: 44px; }
.service-banner__placeholder span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .service-banner { height: 400px; }
}
@media (min-width: 1000px) {
  .service-banner { height: 480px; }
}

.service-plans { background: var(--fondo); }

.service-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

.service-plan {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius-md);
  padding: 28px;
}
.service-plan__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul);
  background: rgba(12, 68, 124, 0.08);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.service-plan__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.service-plan__head h2 {
  font-size: 22px;
}
.service-plan__price {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--azul);
}
.service-plan__list { display: flex; flex-direction: column; gap: 10px; }
.service-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--texto);
}
.service-plan__list svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--azul);
}
.service-plan__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--borde);
  font-size: 13.5px;
  color: var(--texto-sec);
  font-style: italic;
}

.service-plan--featured {
  border: 1px solid var(--azul);
  border-top: 4px solid var(--azul);
  padding: 34px 28px;
  box-shadow: var(--shadow-md);
}
.service-plan--featured .service-plan__head h2 { font-size: 24px; }
.service-plan--featured .service-plan__price { font-size: 22px; }

.service-diag-example { background: var(--fondo); text-align: center; }
.service-diag-example .diag-card {
  margin: 0 auto;
  text-align: left;
}

.service-cta {
  background: var(--fondo-alt);
  text-align: center;
}
.service-cta p {
  font-size: 16px;
  color: var(--texto-sec);
  max-width: 46ch;
  margin: 0 auto 24px;
}

@media (min-width: 700px) {
  .service-plan { padding: 32px; }
  .service-plan--featured { padding: 40px 36px; }
}

/* ============ CTA final ============ */

.cta-final {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-darker) 100%);
  color: #fff;
  text-align: center;
}
.cta-final h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  color: #fff;
  max-width: 26ch;
  margin: 0 auto 16px;
}
.cta-final p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  margin: 0 auto 32px;
  font-size: 16px;
}

/* ============ Footer ============ */

.site-footer {
  background: var(--fondo);
  border-top: 1px solid var(--borde);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--texto-sec);
  max-width: 32ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p {
  font-size: 14.5px;
  color: var(--texto-sec);
}
.footer-col a:hover { color: var(--azul); }
.footer-pending {
  font-size: 12.5px;
  color: var(--ambar-dark);
  font-style: italic;
}
.footer-bottom {
  border-top: 1px solid var(--borde);
  padding-top: 24px;
  font-size: 13px;
  color: var(--texto-sec);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
}

/* ============ WhatsApp flotante ============ */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ambar);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: scale(0.9) translateY(8px);
  visibility: hidden;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 220ms;
}
.wa-float.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
}
.wa-float:active { transform: scale(0.94); }
.wa-float svg { width: 28px; height: 28px; color: #241a05; }

/* ============ Reveal on scroll ============ */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
