/* ═══════════════════════════════════════════════
   ALPE Transportes — Subiendo contigo
   Paleta: pino #1E6B3F · esmeralda #0E8C63 ·
   carbón #20262F · niebla #F2F5F2 · cal #A8DDBE
   Tipos: Barlow Condensed (display) · Barlow (texto)
          IBM Plex Mono (datos)
   ═══════════════════════════════════════════════ */

:root {
  --pino: #1E6B3F;
  --pino-oscuro: #14522F;
  --esmeralda: #0E8C63;
  --carbon: #20262F;
  --carbon-2: #2A313C;
  --niebla: #F2F5F2;
  --cal: #A8DDBE;
  --tinta: #26313B;
  --tinta-suave: #5A6873;
  --blanco: #FFFFFF;
  --borde: #DFE6E0;
  --radius: 10px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pino); }

:focus-visible {
  outline: 3px solid var(--esmeralda);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Tipografía ───────────────────────────── */

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: inherit;
}

h1 {
  font-size: clamp(3.4rem, 9.5vw, 6.75rem);
  font-weight: 700;
}

h1 em {
  font-style: normal;
  color: var(--cal);
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  max-width: 18ch;
}

h3 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--esmeralda);
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.75em;
  transform: skewY(-14deg);
}

.kicker--center { text-align: center; }

.section-lead {
  max-width: 62ch;
  margin-top: 1.25rem;
  color: var(--tinta-suave);
}

.section--dark .section-lead { color: #B8C2C9; }

/* ── Botones ──────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.65em 1.5em;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--esmeralda);
  color: var(--blanco);
}

.btn-solid:hover { background: var(--pino); }

.btn-ghost {
  border-color: currentColor;
  color: var(--blanco);
}

.btn-lg { font-size: 1.25rem; padding: 0.7em 1.7em; }

.wa-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex-shrink: 0;
}

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

/* ── Header ───────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.8rem;
}

.brand img { width: 240px; height: auto; }

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--tinta);
}

.site-nav a:hover { color: var(--esmeralda); }

.header-cta { flex-shrink: 0; }

/* ── Hero ─────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(26, 32, 40, 0.97) 28%, rgba(26, 32, 40, 0.62) 70%, rgba(26, 32, 40, 0.78)),
    radial-gradient(90rem 40rem at 85% -20%, rgba(14, 140, 99, 0.30), rgba(27, 46, 38, 0.55) 65%),
    url("assets/acepted-images/truck.jpeg") center 58% / cover no-repeat var(--carbon);
  color: var(--blanco);
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(3rem, 6vw, 4.5rem);
}

.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.route-line {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.route-line--ghost {
  stroke: rgba(168, 221, 190, 0.12);
  stroke-width: 26;
}

.route-line--main {
  stroke: var(--esmeralda);
  stroke-width: 4;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: draw 2.4s ease-out 0.3s forwards;
}

.route-marks circle {
  fill: var(--carbon);
  stroke: var(--cal);
  stroke-width: 3;
  opacity: 0;
  animation: pop 0.4s ease-out forwards;
}

.route-marks circle:nth-child(1) { animation-delay: 0.9s; }
.route-marks circle:nth-child(2) { animation-delay: 1.3s; }
.route-marks circle:nth-child(3) { animation-delay: 1.7s; }
.route-marks circle:nth-child(4) { animation-delay: 2.1s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-line--main { animation: none; stroke-dashoffset: 0; }
  .route-marks circle { animation: none; opacity: 1; }
  .btn:hover { transform: none; }
}

.hero-inner { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cal);
  margin-bottom: 1.5rem;
}

.tick {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background: var(--esmeralda);
  margin-right: 0.7em;
  transform: rotate(45deg);
}

.hero .lead {
  max-width: 54ch;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #C9D3D9;
}

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

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(168, 221, 190, 0.25);
  border: 1px solid rgba(168, 221, 190, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.hero-stats > div {
  background: rgba(32, 38, 47, 0.85);
  padding: 1.4rem 1.6rem;
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #93A3AC;
  margin-bottom: 0.35rem;
}

.hero-stats dd {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stats dd span { color: var(--esmeralda); font-size: 0.6em; }

/* ── Secciones ────────────────────────────── */

.section { padding-block: clamp(3.75rem, 8vw, 6.5rem); }

.section--tint { background: var(--niebla); }

.section--dark {
  background: linear-gradient(180deg, var(--carbon), var(--carbon-2));
  color: var(--blanco);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.prose p + p { margin-top: 1.1rem; }
.prose { color: var(--tinta-suave); }
.prose strong { color: var(--tinta); }

/* ── Foto de Nosotros ─────────────────────── */

.about-photo {
  position: relative;
  margin-top: 2rem;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 0 var(--cal);
}

/* ── Galería ──────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 1rem;
  margin-top: 2.5rem;
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.g-item img,
.g-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-wide { grid-column: span 2; }
.g-tall2 { grid-row: span 2; }

/* Duotono de marca: unifica las fotos irregulares */
.tone img {
  filter: grayscale(1) contrast(1.08) brightness(0.94);
}

.tone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, var(--esmeralda), var(--pino-oscuro));
  mix-blend-mode: color;
  opacity: 0.45;
  pointer-events: none;
}

.tone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(32, 38, 47, 0) 55%, rgba(32, 38, 47, 0.35));
  pointer-events: none;
}

/* ── Servicios ────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--carbon-2), var(--carbon) 65%);
  border: 1px solid rgba(168, 221, 190, 0.16);
  border-top: 3px solid var(--esmeralda);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 140, 99, 0.65);
  box-shadow: 0 22px 44px -20px rgba(20, 82, 47, 0.55);
}

.card-chip {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pino), var(--esmeralda));
  box-shadow: 0 8px 18px -8px rgba(14, 140, 99, 0.8);
  margin-bottom: 1.3rem;
}

.card-chip svg {
  width: 32px;
  height: 32px;
  stroke: var(--blanco);
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.card-mark {
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  stroke: var(--cal);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.09;
  transform: rotate(-6deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.card:hover .card-mark {
  opacity: 0.18;
  transform: rotate(0deg) scale(1.05);
}

.card h3 {
  position: relative;
  z-index: 1;
  color: var(--blanco);
  margin-bottom: 0.5rem;
}

.card p {
  position: relative;
  z-index: 1;
  font-size: 0.97rem;
  color: #B8C2C9;
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-mark { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card-mark { transform: rotate(-6deg); }
}

/* ── Flota ────────────────────────────────── */

.fleet-wrap {
  margin-top: 2.5rem;
  align-items: center;
}

.fleet-wrap .fleet {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.fleet-photo img {
  border-radius: var(--radius);
  box-shadow: -10px 10px 0 0 var(--cal);
}

.fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.fleet-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border-top: 3px solid var(--esmeralda);
  padding-top: 1.25rem;
}

.fleet-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  stroke: var(--esmeralda);
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.fleet-item h3 { margin-bottom: 0.35rem; color: var(--tinta); }

.fleet-item p { font-size: 0.95rem; color: var(--tinta-suave); }

/* ── Tecnología ───────────────────────────── */

.tech-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(168, 221, 190, 0.2);
  border: 1px solid rgba(168, 221, 190, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}

.tech-grid li {
  background: var(--carbon);
  padding: 1.5rem 1.6rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tech-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--cal);
  margin-bottom: 0.5rem;
}

/* ── Seguridad ────────────────────────────── */

.checklist {
  list-style: none;
  display: grid;
  gap: 1rem;
  align-self: center;
}

.checklist li {
  position: relative;
  background: var(--niebla);
  border-left: 4px solid var(--esmeralda);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem 1rem 3.1rem;
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.35rem;
  width: 0.9em;
  height: 0.45em;
  border-left: 3px solid var(--pino);
  border-bottom: 3px solid var(--pino);
  transform: rotate(-45deg);
}

/* ── Clientes ─────────────────────────────── */

.clients {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.25rem 3.5rem;
  margin-top: 2rem;
}

.clients img {
  display: block;
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.clients img.logo-tall { height: 64px; }
.clients img.logo-mid { height: 50px; }

.clients li:hover img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .clients img { transition: none; }
}

/* ── Equipo ───────────────────────────────── */

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  max-width: 720px;
  margin-inline: auto;
}

.team-card {
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pino), var(--esmeralda));
  color: var(--blanco);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.team-card h3 { color: var(--tinta); }

.team-card p {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--esmeralda);
  margin-top: 0.4rem;
}

/* ── Contacto ─────────────────────────────── */

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-route {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 55%;
}

.contact .wrap { position: relative; }

.contact .kicker { justify-content: center; }

.contact h2, .contact .section-lead { margin-inline: auto; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.contact-tel {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: #B8C2C9;
}

.contact-tel a { color: var(--cal); text-decoration: none; }
.contact-tel a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────── */

.site-footer {
  background: var(--pino-oscuro);
  color: var(--blanco);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--blanco);
  border-radius: 12px;
  flex-shrink: 0;
}

.footer-mark img { width: 40px; height: auto; }

.footer-brand p {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.footer-brand strong { font-size: 1.15rem; }

.footer-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
}

.footer-meta a { color: var(--cal); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────── */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .grid-2 { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

@media (max-width: 560px) {
  .brand img { width: 190px; }
  .header-cta { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; max-width: 420px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-meta { text-align: center; }
}
