/* =========================================================
   Fourtech landing — single-page styles
   Palette extracted from PDF: lime/yellow-green on near-black
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: #161616;
  --line: #1f1f1f;
  --line-strong: #2a2a2a;

  --ink: #ffffff;
  --ink-2: #d6d6d6;
  --ink-3: #9a9a9a;
  --ink-4: #6b6b6b;

  --accent: #d8e84d;
  --accent-strong: #cce03b;
  --accent-ink: #0a0a0a;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 14px 40px rgba(0,0,0,.45);
  --shadow-acc: 0 12px 32px rgba(216,232,77,.18);

  --container: 1200px;
  /* refined ease-out — starts fast, lands feather-soft */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> es solo un envoltorio para el WebP: que no genere caja propia,
   así el <img> sigue siendo hijo directo para el layout (height:100%, flex, grid). */
picture { display: contents; }
svg { display: inline-block; vertical-align: middle; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

ul { list-style: none; padding: 0; margin: 0; }

button { font: inherit; cursor: pointer; }

/* a11y */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 8px; font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Layout */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 94%, transparent);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
@media (max-width: 480px) {
  .brand img { height: 28px; }
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex; gap: 6px; align-items: center;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
}
.primary-nav a:hover { color: var(--accent); background: rgba(255,255,255,.04); }

.header-cta {
  padding: 10px 18px; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.header-cta .i { color: var(--accent-ink); }

/* Mobile menu */
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 10px;
  padding: 0; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.menu-btn .bar {
  width: 20px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav ul { display: flex; flex-direction: column; padding: 12px; gap: 4px; }
.mobile-nav a {
  display: block; padding: 14px 14px;
  border-radius: 10px; color: var(--ink-2);
  font-weight: 500;
}
.mobile-nav a:hover { background: rgba(255,255,255,.04); color: var(--accent); }

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .header-cta { display: none !important; }
  .menu-btn { display: inline-flex; margin-left: auto; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-lg { padding: 16px 26px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-acc);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--ink);
  border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(216,232,77,.10);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
  background:
    url("img/camionetas-servicio-tecnico-automotriz-quilicura.jpg") center 45% / cover no-repeat;
}
/* dark veil over the photo so text + hero image stay legible */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(216,232,77,.10), transparent 70%),
    linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.72) 55%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding: 32px 0 72px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
/* "///" brand stripes — same motif as the PDF slides and hero photo */
.eyebrow::before {
  content: "";
  width: 22px; height: 13px;
  display: inline-block;
  background: repeating-linear-gradient(
    115deg,
    var(--accent) 0 4px,
    transparent 4px 9px
  );
  flex-shrink: 0;
}
.eyebrow .dot { display: none; }

.hero-tagline {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.005em;
  margin: 0 0 22px;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}
.hero-tagline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 800;
}
/* H1 SEO: discreet line under the stats — present for Google, quiet for the eye */
.eyebrow-h1 {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 22px 0 0;
}

.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 28px;
}
.hero .lead strong { color: var(--ink); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats li {
  display: flex; flex-direction: column;
}
.hero-stats strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stats span { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

/* Hero visual */
.hero-visual { position: relative; aspect-ratio: 4/3; }
.visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  height: 100%;
}
.visual-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.visual-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.6) contrast(1.05);
}
/* lime border accent — corner frames around the hero photo */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 78%;
  height: 36%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  border-bottom: none;
  border-left: none;
  z-index: -1;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto auto -14px -14px;
  width: 78%;
  height: 36%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  border-top: none;
  border-right: none;
  z-index: -1;
}


.stripes {
  position: absolute; bottom: -22px; right: 8px;
  display: flex; gap: 6px;
  transform: skewX(-22deg);
}
.stripes span {
  width: 10px; height: 38px;
  background: var(--accent);
  border-radius: 2px;
}
.stripes span:nth-child(2) { height: 30px; opacity: .85; }
.stripes span:nth-child(3) { height: 22px; opacity: .65; }

/* Marquee */
.marquee {
  position: relative;
  margin-top: 0;
  background: var(--accent);
  overflow: hidden;
  padding: 14px 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marquee-track {
  display: inline-flex; gap: 24px; white-space: nowrap;
  animation: marquee 48s linear infinite;
  color: var(--accent-ink);
}
.marquee-track span { color: var(--accent-ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 16px 0 56px; }
  .hero-visual { aspect-ratio: 16/11; }
}

/* ===== Sections ===== */
.section { padding: 68px 0; position: relative; }
.section-dark {
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(216,232,77,.06), transparent 60%),
    var(--bg-soft);
}
.section-head { max-width: 760px; margin-bottom: 44px; }
#nosotros .section-head { margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
  letter-spacing: -.005em;
}
.section h2 em { font-style: italic; color: var(--accent); font-weight: 800; }
.section-lead {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 60ch;
}
.section-head.center .section-lead { margin-inline: auto; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: stretch;   /* la foto arranca arriba y baja hasta el pie del texto */
  margin-bottom: 72px;
}
.about-grid .section-head { margin-bottom: 32px; }
/* Fills the row height so the CTA closes level with the photo — no dead space */
.about-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.about-copy p { color: var(--ink-2); margin: 0 0 16px; max-width: 56ch; }
.about-copy p strong { color: var(--ink); }
.about-copy .about-cta {
  margin-top: auto;   /* empuja los botones al pie de la columna */
  padding-top: 24px;  /* respiro mínimo cuando no sobra altura (móvil) */
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.about-visual { position: relative; display: flex; flex-direction: column; }
/* same lime corner frames as the hero photo */
.about-visual::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 78%;
  height: 36%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  border-bottom: none;
  border-left: none;
  z-index: -1;
}
.about-visual::after {
  content: "";
  position: absolute;
  inset: auto auto -14px -14px;
  width: 78%;
  height: 36%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  border-top: none;
  border-right: none;
  z-index: -1;
}
.card-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  /* base 0: la foto NO aporta su alto natural a la fila, así que la altura
     la manda el texto y la imagen se ajusta. Sin esto arrastraba 231px de vacío. */
  flex: 1 1 0;
  min-height: 420px;
  box-shadow: var(--shadow);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;   /* deja a la vista los mecánicos y los autos */
  filter: grayscale(.2) contrast(1.05);
}

.floating-card {
  position: absolute;
  right: -20px; bottom: -24px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-acc);
  display: grid;
  font-family: "Barlow Condensed", sans-serif;
}
.floating-card .kpi {
  font-size: 38px; font-weight: 900; font-style: italic; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.floating-card .kpi-label {
  text-transform: uppercase; font-size: 11px; letter-spacing: .14em; font-weight: 700; margin-top: 4px;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .floating-card { right: 16px; bottom: -18px; }
}

/* Mission/Vision */
.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.mv-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: "";
  position: absolute; inset: auto auto 0 0;
  width: 60%; height: 3px; background: var(--accent);
  opacity: .8;
}
.mv-card header { margin-bottom: 18px; }
.mv-tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(216,232,77,.1);
  color: var(--accent);
  padding: 8px 18px; border-radius: 999px;
  font-size: 20px;
}
.mv-card p { color: var(--ink-2); margin: 0; font-size: 17.5px; line-height: 1.65; }
.mv-card p strong { color: var(--ink); }

@media (max-width: 760px) {
  .mv-grid { grid-template-columns: 1fr; }
}

/* Services — workshop photo backdrop behind a dark veil */
#servicios {
  background:
    linear-gradient(180deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.82) 45%, rgba(10,10,10,.92) 100%),
    url("img/bahia-elevadores-servicio-tecnico-automotriz-quilicura.jpg") center 45% / cover no-repeat;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: #131313;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line-strong));
}
.service-card--featured {
  background: linear-gradient(180deg, #181a0e 0%, #131313 40%);
  border-color: rgba(216,232,77,.3);
}
.service-card--featured::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% -10%, rgba(216,232,77,.18), transparent 60%);
  pointer-events: none;
}
.badge {
  position: absolute; top: 18px; right: 18px;
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic; font-weight: 800;
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 6px 10px; border-radius: 999px;
}
.service-icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: rgba(216,232,77,.1);
  color: var(--accent);
  margin-bottom: 22px;
  border: 1px solid rgba(216,232,77,.22);
}
.service-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: 1.6rem; letter-spacing: .01em;
  margin: 0 0 10px;
}
.service-card p { color: var(--ink-2); margin: 0 0 18px; }
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-tags li {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-3);
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Why */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 56px;
  position: relative;
}
/* Connector line linking the cards — brand lime, PDF circuit style.
   Runs behind the opaque cards, so it only shows in the gaps.
   One layer draws the 2px line + node dots at both ends. */
.why-grid::before {
  content: "";
  position: absolute;
  left: -14px; right: -14px;
  top: 87px; /* aligned with the number row */
  height: 10px;
  z-index: 0;
  pointer-events: none;
  opacity: .75;
  background:
    radial-gradient(circle at 5px 50%, var(--accent) 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 5px) 50%, var(--accent) 4px, transparent 5px),
    linear-gradient(var(--accent), var(--accent)) center / calc(100% - 10px) 2px no-repeat;
}
/* Mobile: cards stack, the line becomes a vertical spine behind them */
@media (max-width: 980px) {
  .why-grid::before {
    left: 50%; right: auto;
    top: -14px; bottom: -14px;
    height: auto; width: 10px;
    transform: translateX(-50%);
    background:
      radial-gradient(circle at 50% 5px, var(--accent) 4px, transparent 5px),
      radial-gradient(circle at 50% calc(100% - 5px), var(--accent) 4px, transparent 5px),
      linear-gradient(var(--accent), var(--accent)) center / 2px calc(100% - 10px) no-repeat;
  }
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.why-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line-strong));
}
.why-top {
  display: flex;
  flex-direction: row-reverse; /* número primero (izquierda), icono después */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.why-icon {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(216,232,77,.1);
  color: var(--accent);
  border: 1px solid rgba(216,232,77,.22);
  flex-shrink: 0;
  transition: transform .45s var(--ease);
}
.why-card:hover .why-icon { transform: translateY(-3px); }
.why-num {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic; font-weight: 800;
  font-size: 64px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .why-card:hover .why-icon { transform: none; }
}
.why-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: 1.25rem; margin: 0 0 8px;
  letter-spacing: .005em;
}
.why-card p { color: var(--ink-2); margin: 0; font-size: 15px; }

@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.fleet-cta-wrap { position: relative; }
/* same lime corner frames as the hero banner */
.fleet-cta-wrap::before {
  content: "";
  position: absolute;
  inset: -12px -12px auto auto;
  width: 40%;
  height: 55%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  border-bottom: none;
  border-left: none;
  z-index: 0;
}
.fleet-cta-wrap::after {
  content: "";
  position: absolute;
  inset: auto auto -12px -12px;
  width: 40%;
  height: 55%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  border-top: none;
  border-right: none;
  z-index: 0;
}
.fleet-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 100% 50%, rgba(216,232,77,.10), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line-strong);
}
.fleet-cta-photo {
  margin: 0;
  position: relative;
  width: 240px;
  flex-shrink: 0;
}
.fleet-cta-photo img {
  width: 240px;
  aspect-ratio: 1 / 1;      /* la foto del equipo es casi cuadrada: sin recorte forzado */
  height: auto;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius);
  border: 2px solid rgba(216,232,77,.4);
  display: block;
}
.fleet-cta-photo figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
  font-style: italic;
  max-width: 240px;
}
/* min-width:0 — sin esto el ítem de grid no puede encogerse y el título se desborda */
.fleet-cta-text { min-width: 0; }
.fleet-cta-text h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  text-transform: uppercase;
  margin: 6px 0 8px;
  letter-spacing: -.005em;
  line-height: 1.08;
  text-wrap: balance;
}
.fleet-cta-text > p { color: var(--ink-3); margin: 0 0 20px; font-size: 14px; }
.fleet-cta-text .btn { margin-top: 4px; }

@media (max-width: 760px) {
  .fleet-cta { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .fleet-cta-photo { width: 100%; display: flex; align-items: center; gap: 16px; }
  .fleet-cta-photo img { width: 104px; flex-shrink: 0; }
  .fleet-cta-photo figcaption { margin-top: 0; font-size: 14px; max-width: none; }
}

/* Clients — workshop photo backdrop behind a dark veil */
#clientes {
  background:
    linear-gradient(180deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.78) 45%, rgba(10,10,10,.9) 100%),
    url("img/camionetas-flota-empresas-servicio-tecnico-quilicura.jpg") center 55% / cover no-repeat;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.clients-grid li {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: min(100%, 175px);
  margin-inline: auto;
  padding: 0;
  background: #ffffff;
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.clients-grid li:hover,
.clients-grid li:active,
.clients-grid li:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--accent), 0 14px 32px rgba(0,0,0,.35);
}
.clients-grid img {
  max-width: 66%;
  max-height: 44%;
  width: auto; height: auto;
  object-fit: contain;
}
/* Per-client tuning so mixed aspect ratios feel balanced inside the circle */
.clients-grid li:nth-child(1) img { max-width: 64%; }                    /* Gama (wide) */
.clients-grid li:nth-child(2) img { max-width: 68%; }                    /* Avis Budget (wide) */
.clients-grid li:nth-child(3) img { max-width: 70%; }                    /* Salfa Rent (very wide) */
.clients-grid li:nth-child(4) img { max-width: 68%; max-height: 50%; }   /* Ferrel (2:1) */
@media (max-width: 760px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .clients-grid li { width: min(100%, 150px); }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
  margin-bottom: 40px;
}
.g {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  position: relative;
}
.g img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .6s var(--ease);
  filter: grayscale(.25);
}
.g:hover img { transform: scale(1.02); filter: grayscale(0); }
.g-1  { grid-column: span 4; grid-row: span 2; }
.g-2  { grid-column: span 2; grid-row: span 2; }
.g-3  { grid-column: span 2; }
.g-4  { grid-column: span 2; }
.g-5  { grid-column: span 2; }
.g-6  { grid-column: span 6; grid-row: span 1; }
.g-7  { grid-column: span 4; grid-row: span 2; }
.g-8  { grid-column: span 2; grid-row: span 2; }
.g-9  { grid-column: span 3; grid-row: span 2; }
.g-10 { grid-column: span 3; grid-row: span 2; }

.gallery-carousel { position: relative; }
/* Desktop: mosaico fijo, sin flechas */
.gallery-carousel > .carousel-btn { display: none; }

/* Móvil: el mismo markup pasa a carrusel horizontal con flechas */
@media (max-width: 900px) {
  .gallery {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .g {
    flex: 0 0 82%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
  }
  .gallery-carousel > .carousel-btn { display: inline-flex; }
}

.features-list {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
}
.features-list li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2);
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-card);
}
.features-list svg { color: var(--accent); }

/* =========================================================
   Reseñas de Google
   ========================================================= */
/* workshop photo backdrop behind a dark veil */
#resenas {
  background:
    linear-gradient(180deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.8) 45%, rgba(10,10,10,.92) 100%),
    url("img/interior-taller-mecanico-automotriz-fourtech.jpg") center 45% / cover no-repeat;
}

.reviews-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}
.g-rating-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  min-width: 280px;
  display: grid; gap: 14px;
}
.g-rating-top { display: flex; align-items: center; gap: 12px; }
.g-rating-info { display: flex; flex-direction: column; }
.g-rating-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.g-rating-name {
  font-size: 15px; color: var(--ink); font-weight: 700;
}
.g-rating-score {
  display: flex; align-items: center; gap: 12px;
}
.g-score {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 44px; font-weight: 800; font-style: italic;
  color: var(--accent); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.g-stars { display: inline-flex; gap: 2px; }
.g-stars svg { width: 22px; height: 22px; }
.g-rating-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 14px; font-weight: 600;
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}
.g-rating-link:hover { color: var(--accent); }

@media (max-width: 760px) {
  .reviews-head { grid-template-columns: 1fr; align-items: start; }
  .g-rating-card { min-width: 0; }
}

/* Carrusel — aligned with the section text, no edge bleed */
.reviews-carousel {
  position: relative;
}
.reviews-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0;
  padding: 6px 0 16px;
  scrollbar-width: none;
  /* programmatic scrolling is animated in JS with the site's easing */
}
.reviews-grid::-webkit-scrollbar { display: none; }
.reviews-grid:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 14px;
}
.reviews-grid > .review-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 980px) {
  .reviews-grid > .review-card { flex: 0 0 calc((100% - 18px) / 2); }
}
@media (max-width: 620px) {
  /* One full card + subtle peek of the next */
  .reviews-grid > .review-card { flex: 0 0 88%; }
}

/* Carousel nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), opacity .2s var(--ease),
              transform .15s var(--ease);
}
.carousel-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }
.carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.85);
}

@media (max-width: 760px) {
  /* Keep arrows on mobile — smaller, translucent, over the card edges */
  .carousel-btn {
    width: 40px; height: 40px;
    background: rgba(10,10,10,.72);
    border-color: rgba(255,255,255,.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color .25s var(--ease), width .25s var(--ease);
}
.carousel-dots button[aria-current="true"] {
  background: var(--accent);
  width: 28px;
}
.carousel-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Edge fades — subtle hint on mobile only, no cutting cards */
.reviews-carousel::before,
.reviews-carousel::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 20px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg-soft), transparent 90%);
  opacity: .6;
  transition: opacity .25s var(--ease);
}
.reviews-carousel::after {
  left: auto; right: 0;
  background: linear-gradient(-90deg, var(--bg-soft), transparent 90%);
}
.reviews-carousel[data-at-start="true"]::before { opacity: 0; }
.reviews-carousel[data-at-end="true"]::after { opacity: 0; }
@media (min-width: 981px) {
  /* Desktop shows exactly 3 cards — no fade needed */
  .reviews-carousel::before, .reviews-carousel::after { display: none; }
}
.review-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #202124;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e8eaed;
  box-shadow: 0 1px 2px rgba(60,64,67,.08), 0 1px 3px rgba(60,64,67,.06);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* decorative quote — anchors short reviews so they don't look empty */
.review-card:not(.review-card--cta)::after {
  content: "\201D";
  position: absolute;
  right: 18px; bottom: -20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
  color: rgba(216,232,77,.22);
  pointer-events: none;
  z-index: 0;
}
.review-card > * { position: relative; z-index: 1; }
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(60,64,67,.14);
}
.review-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c, #5f6368);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  font-family: "Inter", sans-serif;
}
.review-author {
  display: block;
  font-family: "Inter", sans-serif;
  color: #202124;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}
.review-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.review-stars { display: inline-flex; gap: 1px; }
.review-stars svg { width: 14px; height: 14px; }
.review-date {
  color: #5f6368;
  font-size: 13px;
}
.review-g { opacity: .9; }
.review-text {
  font-family: "Inter", sans-serif;
  color: #3c4043;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.review-card--cta {
  background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
  color: var(--ink);
  border: 1px solid rgba(216,232,77,.3);
  box-shadow: none;
  align-items: center; justify-content: center;
  text-align: center;
}
.review-cta-inner { display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.review-card--cta h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 6px 0 0;
  color: var(--ink);
  letter-spacing: .005em;
}
.review-card--cta p { color: var(--ink-3); margin: 0; font-size: 14px; }
.review-card--cta .btn { margin-top: 10px; }

/* (Grid fallbacks now handled by the carousel flex rules above) */

/* =========================================================
   Preguntas Frecuentes (acordeón)
   ========================================================= */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.faq-item[open] {
  border-color: rgba(216,232,77,.35);
  background: #17180f;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 1.15rem;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px 22px;
}
.faq-answer p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 68ch;
}
.faq-answer p strong { color: var(--ink); }
/* subtle open animation */
.faq-item[open] .faq-answer {
  animation: faq-open .4s var(--ease);
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-answer { animation: none; }
  .faq-chevron { transition: none; }
}

.faq-cta {
  max-width: 860px;
  margin: 28px auto 0;
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
  text-align: center;
}
.faq-cta p {
  margin: 0;
  color: var(--ink-2);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-style: italic;
  text-transform: uppercase;
  font-size: 1.2rem;
}

/* =========================================================
   Ubicación / Cómo llegar
   ========================================================= */
.location-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  min-height: 460px;
}
.map-frame iframe {
  width: 100%; height: 100%;
  min-height: 460px;
  border: 0; display: block;
  filter: invert(.92) hue-rotate(180deg) contrast(.9) saturate(.7);
}
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 22px;
}
.loc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.loc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(216,232,77,.1);
  color: var(--accent);
  border: 1px solid rgba(216,232,77,.22);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.loc-row > div:last-child {
  display: flex; flex-direction: column; gap: 2px;
}
.loc-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 4px;
}
.loc-row strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.loc-row span { color: var(--ink-2); font-size: 14px; }
.hours-row { color: var(--ink); font-weight: 500; }
.travel-list { margin-top: 4px; display: grid; gap: 8px; }
.travel-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-2); font-size: 14px;
}
.travel-tag {
  display: inline-block;
  background: rgba(216,232,77,.1);
  color: var(--accent);
  border: 1px solid rgba(216,232,77,.22);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  letter-spacing: .04em;
  min-width: 60px; text-align: center;
}
.loc-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}
.loc-actions .btn { flex: 1 1 auto; }

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-frame, .map-frame iframe { min-height: 360px; }
}

/* Contact */
.section-contact {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(216,232,77,.10), transparent 60%),
    var(--bg-soft);
}
.contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px;
  align-items: stretch;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-lead { color: var(--ink-2); margin: 0 0 28px; max-width: 50ch; }
.contact-list { display: grid; gap: 18px; margin-bottom: 28px; }
.contact-list li {
  display: grid; gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-strong);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.contact-value { font-size: 17px; font-weight: 500; color: var(--ink); }
a.contact-value:hover { color: var(--accent); }
.contact-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-form {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(216,232,77,.10), transparent 60%),
    #24261f;
  border: 1px solid rgba(216,232,77,.35);
  border-radius: var(--radius-lg);
  padding: 34px 32px 32px;
  display: grid;
  gap: 16px;
  box-shadow:
    0 0 0 1px rgba(216,232,77,.06),
    0 24px 60px rgba(0,0,0,.5),
    0 0 42px rgba(216,232,77,.10);
  overflow: hidden;
}
/* lime accent bar across the top */
.contact-form::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.form-badge {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: start;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}
.contact-form h3 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 4px;
  letter-spacing: .005em;
}
.contact-form h3 em { font-style: normal; color: var(--accent); }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  appearance: none;
  width: 100%;
  background: #141510;
  border: 1px solid #3d3f33;
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #101203;
}
.field select {
  background-color: #0e0e0e;
  color: var(--ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23d8e84d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.field-error {
  color: #ff7676;
  font-size: 12px;
  margin: 0;
  min-height: 16px;
}
.field.invalid input,
.field.invalid select { border-color: #ff7676; background: rgba(255,118,118,.05); }
.form-foot { margin: 6px 0 0; font-weight: 600; color: var(--accent); min-height: 20px; }
.form-help { margin: 0; color: var(--ink-4); font-size: 12px; }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: #060606;
  border-top: 1px solid var(--line);
  padding-top: 64px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; display: block; }
.footer-brand p { color: var(--ink-3); margin: 0; max-width: 38ch; font-size: 14px; }
.site-footer h4 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 13px; letter-spacing: .14em;
  color: var(--ink); margin: 0 0 14px; font-weight: 700;
}
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: var(--ink-3); font-size: 14px; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-bottom small { color: var(--ink-4); font-size: 12px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,.45);
  z-index: 70;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fab-whatsapp:hover {
  transform: translateY(-2px);
  color: #0a0a0a;
  box-shadow: 0 18px 40px rgba(37,211,102,.55);
}
.fab-whatsapp::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: .25;
  animation: pulse 4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);    opacity: .25; }
  60%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp::after { animation: none; }
}

/* =========================================================
   Premium motion
   ========================================================= */

/* Hero entrance — quiet, weightless rise on load.
   Two layered animations: the fade lands early, the drift keeps settling. */
@keyframes rise-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rise-drift {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}
.hero-text > * {
  animation:
    rise-fade .9s cubic-bezier(.33, 1, .68, 1) backwards,
    rise-drift 1.8s var(--ease) backwards;
}
.hero-text > *:nth-child(1) { animation-delay: .10s; }
.hero-text > *:nth-child(2) { animation-delay: .22s; }
.hero-text > *:nth-child(3) { animation-delay: .34s; }
.hero-text > *:nth-child(4) { animation-delay: .46s; }
.hero-text > *:nth-child(5) { animation-delay: .58s; }
.hero-visual {
  animation:
    rise-fade 1.1s cubic-bezier(.33, 1, .68, 1) .5s backwards,
    rise-drift 2s var(--ease) .5s backwards;
}

/* Barely-there settle on the hero image */
@keyframes hero-zoom {
  from { transform: scale(1.025); }
  to   { transform: scale(1); }
}
.visual-frame img { animation: hero-zoom 2.4s var(--ease) both; }

/* Service icon: subtle lift only, no rotation */
.service-card .service-icon { transition: transform .45s var(--ease); }
.service-card:hover .service-icon { transform: translateY(-3px); }

/* Gallery borders warm up quietly */
.g { transition: border-color .45s var(--ease); }
.g:hover { border-color: color-mix(in oklab, var(--accent) 35%, var(--line-strong)); }

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-visual, .visual-frame img { animation: none; }
  .service-card:hover .service-icon { transform: none; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  /* opacity resolves early; the movement keeps settling long after —
     the element seems to float into place */
  transition: opacity .8s cubic-bezier(.33, 1, .68, 1),
              transform 1.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* Anchor offset for sticky header */
section[id] { scroll-margin-top: 80px; }

/* Selection */
::selection { background: var(--accent); color: var(--accent-ink); }

/* =========================================================
   WebP para los fondos: ~35% menos peso donde el navegador lo
   soporta. Las reglas JPEG de arriba quedan como respaldo, así
   que un navegador antiguo nunca se queda sin fondo.
   ========================================================= */
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero {
    background:
      image-set(
        url("img/camionetas-servicio-tecnico-automotriz-quilicura.webp") type("image/webp"),
        url("img/camionetas-servicio-tecnico-automotriz-quilicura.jpg")  type("image/jpeg")
      ) center 45% / cover no-repeat;
  }
  #servicios {
    background:
      linear-gradient(180deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.82) 45%, rgba(10,10,10,.92) 100%),
      image-set(
        url("img/bahia-elevadores-servicio-tecnico-automotriz-quilicura.webp") type("image/webp"),
        url("img/bahia-elevadores-servicio-tecnico-automotriz-quilicura.jpg")  type("image/jpeg")
      ) center 45% / cover no-repeat;
  }
  #clientes {
    background:
      linear-gradient(180deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.8) 45%, rgba(10,10,10,.92) 100%),
      image-set(
        url("img/camionetas-flota-empresas-servicio-tecnico-quilicura.webp") type("image/webp"),
        url("img/camionetas-flota-empresas-servicio-tecnico-quilicura.jpg")  type("image/jpeg")
      ) center 55% / cover no-repeat;
  }
  #resenas {
    background:
      linear-gradient(180deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.8) 45%, rgba(10,10,10,.92) 100%),
      image-set(
        url("img/interior-taller-mecanico-automotriz-fourtech.webp") type("image/webp"),
        url("img/interior-taller-mecanico-automotriz-fourtech.jpg")  type("image/jpeg")
      ) center 45% / cover no-repeat;
  }
}
