/* ==========================================================================
   TRACK MOTO CHILE - ESTILOS DE PÁGINAS Y SECCIONES (PAGES.CSS)
   Hero cinematográfico, Grilla de Servicios, Proceso, Grúa, Repuestos, Contacto
   ========================================================================== */

/* ==========================================================================
   HERO PRINCIPAL (INDEX.HTML)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  background-color: var(--bg-carbon);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.84) contrast(1.08) saturate(1.06);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(
      90deg,
      rgba(9, 11, 13, 0.88) 0%,
      rgba(9, 11, 13, 0.68) 42%,
      rgba(9, 11, 13, 0.18) 72%,
      rgba(9, 11, 13, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(9, 11, 13, 0.82) 0%,
      transparent 35%
    );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-badge {
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title .text-highlight {
  color: var(--red-primary);
  display: inline-block;
  position: relative;
}

.hero-desc {
  margin-bottom: 2.25rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text-smoke);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Accesos rápidos bajo el Hero */
.hero-quick-access {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.quick-card {
  background: rgba(22, 26, 30, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 160ms ease-out, border-color 140ms ease-out, background-color 150ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .quick-card:hover {
    background: rgba(31, 36, 42, 0.95);
    border-color: var(--border-active);
    transform: translateY(-3px);
  }
}

.quick-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(227, 38, 54, 0.12);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.quick-card-text strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.quick-card-text span {
  font-size: 0.82rem;
  color: var(--text-steel);
}

/* ==========================================================================
   PAGE HERO (PÁGINAS INTERIORES)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3.5rem;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero-inner {
  max-width: 660px;
}

/* Hero Servicios: Mecánico trabajando en moto sobre elevador */
.page-hero-services {
  background-image: url('../images/hero-servicios.webp');
  background-position: right 30% center;
}

.page-hero-services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(9, 11, 13, 0.95) 0%, rgba(9, 11, 13, 0.82) 44%, rgba(9, 11, 13, 0.28) 72%, rgba(9, 11, 13, 0.12) 100%),
    linear-gradient(0deg, rgba(9, 11, 13, 0.75) 0%, transparent 40%);
  pointer-events: none;
}

/* Hero Grúa: Motocicleta asegurada en plataforma de traslado */
.page-hero-grua {
  background-image: url('../images/grua-traslado.webp');
  background-position: right 25% center;
}

.page-hero-grua::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(9, 11, 13, 0.95) 0%, rgba(9, 11, 13, 0.80) 42%, rgba(9, 11, 13, 0.25) 72%, rgba(9, 11, 13, 0.10) 100%),
    linear-gradient(0deg, rgba(9, 11, 13, 0.75) 0%, transparent 40%);
  pointer-events: none;
}

/* Hero Repuestos: Mesa de trabajo con piezas mecánicas y cadena */
.page-hero-repuestos {
  background-image: url('../images/hero-repuestos.webp');
  background-position: right 30% center;
}

.page-hero-repuestos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(9, 11, 13, 0.94) 0%, rgba(9, 11, 13, 0.80) 42%, rgba(9, 11, 13, 0.22) 72%, rgba(9, 11, 13, 0.10) 100%),
    linear-gradient(0deg, rgba(9, 11, 13, 0.75) 0%, transparent 40%);
  pointer-events: none;
}

/* Hero Contacto: Recepción de taller y atención cercana */
.page-hero-contacto {
  background-image: url('../images/hero-contacto.webp');
  background-position: right 20% center;
}

.page-hero-contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(9, 11, 13, 0.95) 0%, rgba(9, 11, 13, 0.82) 44%, rgba(9, 11, 13, 0.26) 74%, rgba(9, 11, 13, 0.10) 100%),
    linear-gradient(0deg, rgba(9, 11, 13, 0.75) 0%, transparent 40%);
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-steel);
}

.breadcrumbs a {
  color: var(--text-steel);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--red-primary);
}

.breadcrumbs .separator {
  color: var(--text-muted);
}

.breadcrumbs .current {
  color: var(--text-smoke);
  font-weight: 600;
}

.page-hero h1 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.page-hero p.lead {
  color: var(--text-steel);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
  background: radial-gradient(circle at 88% 70%, rgba(227, 38, 54, 0.035) 0%, transparent 45%);
}

.section-darker {
  background: 
    radial-gradient(circle at 15% 30%, rgba(227, 38, 54, 0.045) 0%, transparent 50%),
    linear-gradient(180deg, #0b0e11 0%, #111519 50%, #0b0e11 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-desc {
  color: var(--text-steel);
  font-size: 1.08rem;
}

/* ==========================================================================
   GRILLA DE SERVICIOS
   ========================================================================== */

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.services-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card-image {
  height: 200px;
  overflow: hidden;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  font-size: 0.92rem;
  color: var(--text-steel);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-list li svg {
  width: 16px;
  height: 16px;
  color: var(--red-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   BLOQUE DIVIDIDO DE INSPECCIÓN TÉCNICA (SERVICIOS.HTML)
   ========================================================================== */

.service-split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 26, 30, 0.90) 0%, rgba(16, 20, 24, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--red-primary);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-top: 3.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.service-split-img {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(135, 145, 154, 0.2);
  height: 100%;
  min-height: 280px;
}

.service-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-split-content h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-split-content p {
  color: var(--text-steel);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-split-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-split-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-smoke);
}

.service-split-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--red-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   SECCIÓN DE PROCESO: CIRCUITO DE SERVICIO TÉCNICO
   ========================================================================== */

.section-circuit {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: #0b0e12;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.circuit-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.circuit-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: brightness(0.86) contrast(1.08) saturate(1.06);
}

.circuit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: 
    linear-gradient(90deg, rgba(9, 11, 13, 0.98) 0%, rgba(9, 11, 13, 0.88) 42%, rgba(9, 11, 13, 0.50) 72%, rgba(9, 11, 13, 0.15) 100%),
    radial-gradient(ellipse at 82% 55%, rgba(227, 38, 54, 0.16) 0%, transparent 60%),
    linear-gradient(0deg, rgba(9, 11, 13, 0.92) 0%, transparent 22%);
}

.service-circuit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.circuit-track-svg {
  position: absolute;
  top: 36px;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.circuit-path-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-circuit.is-active .circuit-path-line {
  stroke-dashoffset: 0;
}

@keyframes stationEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.circuit-station {
  position: relative;
  z-index: 2;
  padding: 1.85rem 1.35rem 1.65rem;
  background: rgba(22, 26, 30, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(135, 145, 154, 0.16);
  border-radius: var(--radius-md);
  transition: transform 160ms ease-out, border-color 140ms ease-out, box-shadow 160ms ease-out;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.service-circuit.is-active .circuit-station {
  animation: stationEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Alternancia vertical para generar movimiento y romper la grilla rígida */
.circuit-station.station-1 { margin-top: 0; }
.circuit-station.station-2 { margin-top: 28px; }
.circuit-station.station-3 { margin-top: -12px; }
.circuit-station.station-4 { margin-top: 22px; }

.service-circuit.is-active .circuit-station.station-1 { animation-delay: 0.10s; }
.service-circuit.is-active .circuit-station.station-2 { animation-delay: 0.20s; }
.service-circuit.is-active .circuit-station.station-3 { animation-delay: 0.30s; }
.service-circuit.is-active .circuit-station.station-4 { animation-delay: 0.40s; }

@media (hover: hover) and (pointer: fine) {
  .circuit-station:hover {
    border-color: rgba(227, 38, 54, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(227, 38, 54, 0.18);
  }
}

.station-watermark {
  position: absolute;
  top: -12px;
  right: 6px;
  font-size: 4.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(243, 244, 245, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color var(--transition-fast);
}

.circuit-station:hover .station-watermark {
  color: rgba(227, 38, 54, 0.14);
}

.station-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.station-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 0 12px rgba(227, 38, 54, 0.45);
  flex-shrink: 0;
}

.station-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(22, 26, 30, 0.9);
  border: 1px solid rgba(135, 145, 154, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-smoke);
  flex-shrink: 0;
}

.station-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.station-title {
  color: #ffffff;
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
  line-height: 1.3;
  font-weight: 700;
}

.station-desc {
  font-size: 0.9rem;
  color: var(--text-steel);
  line-height: 1.55;
}

/* ==========================================================================
   SECCIÓN DE GRÚA (ESTILO ASISTENCIA EN RUTA)
   ========================================================================== */

.grua-banner {
  background: 
    linear-gradient(90deg, rgba(9, 11, 13, 0.92) 0%, rgba(9, 11, 13, 0.74) 46%, rgba(9, 11, 13, 0.22) 78%, rgba(9, 11, 13, 0.10) 100%),
    url('../images/grua-traslado.webp') center right/cover no-repeat;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.grua-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--red-primary);
}

.grua-banner-content {
  max-width: 650px;
}

.grua-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(227, 38, 54, 0.2);
  color: #ff6b78;
  border: 1px solid rgba(227, 38, 54, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.grua-banner h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: #ffffff;
  margin-bottom: 1rem;
}

.grua-banner p {
  color: var(--text-smoke);
  font-size: 1.12rem;
  margin-bottom: 2rem;
}

/* Grúa Page Layout: 2 Columnas */
.grua-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.grua-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.grua-info-card {
  background-color: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.grua-info-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(227, 38, 54, 0.12);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.grua-info-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.grua-info-text strong {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.grua-info-text p {
  font-size: 0.92rem;
  color: var(--text-steel);
  margin: 0;
}

/* Tarjeta de Fotografía Técnica de Sujeción en Grúa */
.grua-photo-card {
  background-color: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.grua-photo-img {
  height: 210px;
  position: relative;
  overflow: hidden;
}

.grua-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grua-photo-body {
  padding: 1.35rem 1.5rem;
}

.grua-photo-body strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.grua-photo-body p {
  font-size: 0.88rem;
  color: var(--text-steel);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN DE REPUESTOS Y CATÁLOGO
   ========================================================================== */

.repuestos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.part-card {
  background-color: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease-out, border-color 140ms ease-out, box-shadow 160ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .part-card:hover {
    border-color: rgba(227, 38, 54, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .part-card:hover .part-card-img img {
    transform: scale(1.05);
  }
}

.part-card-img {
  height: 215px;
  position: relative;
  overflow: hidden;
  background-color: #0b0e11;
}

.part-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
  transition: transform 160ms ease-out, filter 160ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .part-card:hover .part-card-img img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.08);
  }
}

.part-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(9, 11, 13, 0.85);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-primary);
  border: 1px solid rgba(227, 38, 54, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.part-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.part-card-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.part-card-desc {
  font-size: 0.92rem;
  color: var(--text-steel);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* ==========================================================================
   SECCIÓN EDUCATIVA: SEÑALES DE ALERTA (SERVICIOS.HTML)
   ========================================================================== */

.warnings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.warning-card {
  background-color: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--red-primary);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: transform 160ms ease-out, border-color 140ms ease-out, background-color 150ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .warning-card:hover {
    background-color: var(--bg-graphite-elevated);
    transform: translateY(-3px);
    border-color: rgba(227, 38, 54, 0.5);
  }
}

.warning-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(227, 38, 54, 0.12);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.warning-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.warning-card h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.warning-card p {
  font-size: 0.92rem;
  color: var(--text-steel);
}

/* ==========================================================================
   SECCIÓN DE UBICACIÓN Y MAPA
   ========================================================================== */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: stretch;
}

.location-card {
  background-color: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.location-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(227, 38, 54, 0.12);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-item-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.location-item-content strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.location-item-content p {
  font-size: 0.95rem;
  color: var(--text-steel);
  margin: 0;
}

.location-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.map-wrapper {
  background-color: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 420px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: contrast(1.1) invert(90%) hue-rotate(180deg);
}

/* Tarjeta Ambiental de Taller en Contacto */
.contact-ambient-card {
  background: linear-gradient(135deg, rgba(22, 26, 30, 0.90) 0%, rgba(16, 20, 24, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--red-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.contact-ambient-img {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.contact-ambient-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-ambient-body {
  padding: 2rem 2.25rem;
}

.contact-ambient-body strong {
  display: block;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.contact-ambient-body p {
  font-size: 0.92rem;
  color: var(--text-steel);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   PÁGINA DE CONTACTO (CONTACTO.HTML)
   ========================================================================== */

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-card {
  background-color: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 160ms ease-out, border-color 140ms ease-out, box-shadow 160ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .contact-card:hover {
    border-color: rgba(227, 38, 54, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(227, 38, 54, 0.1);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-card-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.contact-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-steel);
  margin-bottom: 1.5rem;
}

.contact-card .phone-number {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: block;
}

/* ==========================================================================
   ANIMACIONES DE APARICIÓN (INTERSECTION OBSERVER)
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVIDAD ADICIONAL PARA PÁGINAS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-quick-access {
    grid-template-columns: 1fr;
  }
  .services-grid-3,
  .services-grid-6,
  .repuestos-grid,
  .warnings-grid,
  .contact-channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location-grid,
  .grua-layout {
    grid-template-columns: 1fr;
  }
  .service-split-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-ambient-card {
    grid-template-columns: 1fr;
  }
  /* Circuito en Tablet: 2x2 */
  .service-circuit {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }
  .circuit-station.station-1,
  .circuit-station.station-2,
  .circuit-station.station-3,
  .circuit-station.station-4 {
    margin-top: 0;
  }
  .circuit-track-svg {
    display: none;
  }
  .circuit-bg {
    width: 75%;
    opacity: 0.35;
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  /* Responsive Heros Interiores */
  .page-hero {
    min-height: 520px;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2.5rem;
  }
  .page-hero-services {
    background-position: 72% center;
  }
  .page-hero-grua {
    background-position: 68% center;
  }
  .page-hero-repuestos {
    background-position: 65% center;
  }
  .page-hero-contacto {
    background-position: 75% center;
  }
  .page-hero-services::before,
  .page-hero-grua::before,
  .page-hero-repuestos::before,
  .page-hero-contacto::before {
    background: 
      linear-gradient(180deg, rgba(9, 11, 13, 0.94) 0%, rgba(9, 11, 13, 0.82) 55%, rgba(9, 11, 13, 0.40) 100%),
      linear-gradient(0deg, rgba(9, 11, 13, 0.92) 0%, transparent 35%);
  }
  .service-split-feature {
    padding: 1.75rem 1.35rem;
  }
  .service-split-img {
    min-height: 220px;
  }
  .hero-bg img {
    object-position: 65% center;
  }
  .hero-overlay {
    background: 
      linear-gradient(180deg, rgba(9, 11, 13, 0.90) 0%, rgba(9, 11, 13, 0.72) 50%, rgba(9, 11, 13, 0.35) 100%),
      linear-gradient(0deg, rgba(9, 11, 13, 0.95) 0%, transparent 25%);
  }
  .grua-banner {
    padding: 2.5rem 1.75rem;
  }
  .services-grid-3,
  .services-grid-6,
  .repuestos-grid,
  .warnings-grid,
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  /* Circuito en Móvil: Trayectoria vertical con línea roja lateral */
  .circuit-bg {
    width: 100%;
    opacity: 0.22;
  }
  .service-circuit {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
    margin-top: 1.5rem;
  }
  .service-circuit::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--red-primary), rgba(227, 38, 54, 0.2));
    border-radius: 2px;
  }
  .circuit-station {
    padding: 1.35rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .circuit-station {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .circuit-path-line {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}

