:root {
  --black: #0a0a0a;
  --near-black: #131314;
  --panel: #1b1b1d;
  --red: #e2001a;
  --red-dark: #a3040f;
  --white: #ffffff;
  --offwhite: #f4f3f1;
  --ink: #17171a;
  --gray: #6b6b6f;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(0, 0, 0, 0.1);
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 14px;
  line-height: 1.05;
}
p { margin: 0 0 14px; }
.section-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--red);
  margin: 0 0 10px;
}
.eyebrow-light { color: var(--red); }
h2.light, .servicios h2 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  font-size: 15px; padding: 11px 20px; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-wa { background: #25d366; color: #06210f; }
.btn-wa:hover { background: #2ee579; }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-lg { font-size: 17px; padding: 15px 26px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  color: var(--white); font-size: 16px; letter-spacing: 0.4px;
  margin-right: auto; white-space: nowrap;
}
.nav-brand img { flex: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.82); font-size: 14.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.4px;
  transition: color 0.12s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { flex: none; }

.lang-switch { display: flex; gap: 6px; flex: none; }
.lang-btn {
  background: none; border: 1.5px solid transparent; border-radius: 4px;
  padding: 3px; cursor: pointer; line-height: 0;
  opacity: 0.55; transition: opacity 0.15s ease, border-color 0.15s ease;
}
.lang-btn svg { display: block; border-radius: 2px; }
.lang-btn:hover { opacity: 0.85; }
.lang-btn.active { opacity: 1; border-color: var(--red); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta span { display: none; }
  .lang-switch { gap: 4px; }
}

@media (max-width: 480px) {
  .nav { padding: 10px 12px; gap: 10px; }
  .nav-brand span { font-size: 13px; }
  .lang-switch { gap: 3px; }
  .lang-btn { padding: 2px; }
  .lang-btn svg { width: 18px; height: 12px; }
  .nav-cta { padding: 11px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: 76px 0 90px;
}
.hero-shape {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(135deg, transparent 55%, var(--red-dark) 55.3%, var(--red) 58%, transparent 58.3%),
    radial-gradient(1200px 500px at 85% 0%, rgba(226, 0, 26, 0.16), transparent 60%);
  opacity: 0.9;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.hero-text .eyebrow { color: var(--red); }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  color: var(--white);
}
.hero h1 .accent { color: var(--red); }
.hero .lead {
  color: rgba(255, 255, 255, 0.78); font-size: 17px; max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.hero-image {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px;
}
.hero-comp-wrap {
  transform-origin: center center;
  will-change: transform;
  position: relative; z-index: 2;
}
.hero-comp {
  position: relative; width: 100%; aspect-ratio: 1772 / 592;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}
.hc-part { position: absolute; width: auto; height: auto; }
.hc-truck-l { left: 0.06%; top: 0; width: 38.71%; }
.hc-shield { left: 39.84%; top: 11.15%; width: 19.02%; }
.hc-truck-r { left: 61.96%; top: 0; width: 38.03%; }
.hero-image-caption {
  width: 100%; margin: 0;
  text-align: justify; text-align-last: justify; text-justify: inter-character;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; text-transform: uppercase;
  color: var(--white); font-size: clamp(18px, 2.4vw, 28px);
}

/* ---------- Animación de entrada del hero ---------- */
@keyframes heroInL { from { transform: translateX(-170%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes heroInR { from { transform: translateX(170%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes heroShield {
  0% { transform: scale(0.2) rotate(-16deg); opacity: 0; }
  70% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoomSettle {
  from { transform: translateX(var(--hero-dx, 0px)) scale(var(--hero-scale, 1)); }
  to { transform: translateX(0) scale(1); }
}

.hc-truck-l { animation: heroInL 0.9s cubic-bezier(.16,.84,.44,1) 0.15s both; }
.hc-truck-r { animation: heroInR 0.9s cubic-bezier(.16,.84,.44,1) 0.15s both; }
.hc-shield { animation: heroShield 0.7s ease-out 0.85s both; }
.hero-image-caption { animation: heroFadeUp 0.6s ease-out 1.5s both; }
.hero-comp-wrap { animation: heroZoomSettle 0.9s cubic-bezier(.3,.7,.2,1) 2.1s both; }

.hero-text .eyebrow,
.hero-text h1,
.hero-text .lead,
.hero-text .hero-actions {
  animation: heroFadeUp 0.6s ease-out both;
}
.hero-text .eyebrow { animation-delay: 3.05s; }
.hero-text h1 { animation-delay: 3.2s; }
.hero-text .lead { animation-delay: 3.35s; }
.hero-text .hero-actions { animation-delay: 3.5s; }
.stats > .stat { animation: heroFadeUp 0.6s ease-out both; }
.stats > .stat:nth-child(1) { animation-delay: 3.65s; }
.stats > .stat:nth-child(2) { animation-delay: 3.75s; }
.stats > .stat:nth-child(3) { animation-delay: 3.85s; }
.stats > .stat:nth-child(4) { animation-delay: 3.95s; }

@media (prefers-reduced-motion: reduce) {
  .hero-comp-wrap,
  .hc-truck-l, .hc-truck-r, .hc-shield, .hero-image-caption,
  .hero-text .eyebrow, .hero-text h1, .hero-text .lead, .hero-text .hero-actions,
  .stats > .stat {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ---------- Reveal al scrollear (resto de las secciones) ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { max-width: none; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--near-black);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 26px 16px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block; font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--red);
}
.stat span { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
}

/* ---------- Quiénes somos ---------- */
.nosotros { background: var(--offwhite); padding: 84px 0; }
.nosotros-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.nosotros-text h2 { color: var(--ink); font-size: clamp(26px, 3.6vw, 38px); }
.nosotros-text p { color: #383838; max-width: 62ch; }
.nosotros-shield { justify-self: center; opacity: 0.94; }
.nosotros-shield img { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18)); }

@media (max-width: 760px) {
  .nosotros-inner { grid-template-columns: 1fr; text-align: center; }
  .nosotros-text p { margin-inline: auto; }
}

/* ---------- Servicios ---------- */
.servicios { background: var(--black); padding: 84px 0; color: var(--white); }
.servicios .eyebrow { text-align: center; }
.servicios h2 { text-align: center; max-width: 20ch; margin: 0 auto 44px; }
.serv-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.serv-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.serv-card:hover { border-color: var(--red); transform: translateY(-3px); }
.serv-card svg { width: 30px; height: 30px; color: var(--red); margin-bottom: 14px; }
.serv-card h3 {
  font-size: 19px; color: var(--white); margin-bottom: 6px;
}
.serv-card p { color: rgba(255, 255, 255, 0.68); font-size: 14px; margin: 0; }

/* ---------- Clientes ---------- */
.clientes { background: var(--offwhite); padding: 84px 0; }
.clientes h2 { color: var(--ink); margin: 0 auto 40px; }
.clientes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .clientes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .clientes-grid { grid-template-columns: 1fr; } }
.cliente-card {
  background: var(--white); border: 1px solid var(--line-dark); border-radius: 12px;
  height: 110px; display: flex; align-items: center; justify-content: center; padding: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cliente-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08); }
.cliente-card img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }

@media (max-width: 900px) { .serv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .serv-grid { grid-template-columns: 1fr; } }

/* ---------- TikTok ---------- */
.tiktok { background: var(--black); padding: 60px 0; }
.tiktok-inner {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.tiktok-icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #25f4ee, #ff0050);
  color: var(--black);
}
.tiktok-text { flex: 1 1 320px; min-width: 0; }
.tiktok-text .eyebrow { color: #ff0050; }
.tiktok-text h2 { color: var(--white); margin-bottom: 6px; font-size: clamp(22px, 3vw, 30px); }
.tiktok-text .lead { color: rgba(255, 255, 255, 0.72); font-size: 15px; margin: 0; max-width: 56ch; }
.tiktok-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tiktok-followers { text-align: right; }
.tiktok-count {
  display: block; color: var(--white); font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; font-size: 26px; line-height: 1.1;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tiktok-count.is-visible { opacity: 1; transform: translateY(0); }
.tiktok-at {
  display: block; color: var(--white); font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; font-size: 16px;
}
.tiktok-followers span:not(.tiktok-at) { color: rgba(255, 255, 255, 0.55); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-tiktok { background: var(--white); color: var(--black); }
.btn-tiktok:hover { background: #ff0050; color: var(--white); }

@media (max-width: 640px) {
  .tiktok-inner { flex-direction: column; text-align: center; }
  .tiktok-side { align-items: center; }
  .tiktok-followers { text-align: center; }
}

/* ---------- Contacto ---------- */
.contacto { background: var(--offwhite); padding: 84px 0; }
.contacto-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start;
}
.contacto-info h2 { color: var(--ink); font-size: clamp(26px, 3.6vw, 36px); }
.contacto-info .lead { color: #383838; }
.contacto-datos { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contacto-datos li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.contacto-datos svg { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 1px; }
.contacto-datos a:hover { color: var(--red); }
.contacto-urgente a { font-weight: 700; color: var(--red); }
.contacto-urgente svg { color: var(--red); }

.contacto-form {
  background: var(--white); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}
.contacto-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--gray);
}
.contacto-form .opt { text-transform: none; font-weight: 400; letter-spacing: 0; }
.contacto-form input, .contacto-form textarea, .contacto-form select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid #dcdad6; border-radius: 9px; padding: 11px 13px;
  background: var(--offwhite); resize: vertical;
}
.contacto-form input:focus, .contacto-form textarea:focus, .contacto-form select:focus {
  outline: none; border-color: var(--red); background: var(--white);
}
.contacto-form button { align-self: flex-start; }
.contacto-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .contacto-form .row-2 { grid-template-columns: 1fr; } }

.mapa-wrap {
  margin-top: 36px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}
.mapa-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }
.mapa-link {
  display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--red);
}
.mapa-link:hover { text-decoration: underline; }

@media (max-width: 900px) { .contacto-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--black); color: rgba(255, 255, 255, 0.72);
  display: flex; align-items: center; gap: 16px;
  padding: 26px 24px; max-width: 1120px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.footer p { margin: 0; font-size: 13px; }
.footer p b { color: var(--white); }
.footer .muted { color: rgba(255, 255, 255, 0.5); margin-top: 2px; }

@media (max-width: 560px) {
  .footer { flex-direction: column; text-align: center; }
}
