/* ==========================================================================
   MÜX TRANSPORTES — Hoja de estilos
   Paleta: blanco, negro y tonos oscuros. Look premium / minimalista.
   Mobile-first y 100% responsivo.
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --bg: #080808;
  --bg-elevated: #0e0e0e;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --border: #262626;
  --border-soft: #1f1f1f;

  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-faint: #737373;

  --accent: #ffffff;            /* CTA principal (blanco sobre negro) */
  --whatsapp: #25d366;          /* Verde WhatsApp (reconocible para conversión) */

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 72px;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Foco visible para navegación por teclado (accesibilidad) */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Offset para anclas con header fijo */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

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

/* ---------- Utilidades ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.icon { width: 20px; height: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--whatsapp); color: var(--whatsapp); }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* ---------- Header / Navegación ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-color: var(--border);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* LOGO: gorila vectorizado (assets/logo.svg) */
.logo-mark { height: 40px; width: auto; display: block; }
.brand-word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.nav { display: none; }
.nav-links { display: flex; gap: 8px; }

.nav-link {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: var(--surface-2); }

.nav-cta { display: none; }

/* Hamburguesa (mobile) */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil desplegable */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 99;
}
.mobile-menu.open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a {
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.mobile-menu a:hover { color: var(--text); background: var(--surface-2); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
  /* Fondo oscuro elegante con brillos sutiles (sin imagen) */
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(255, 255, 255, 0.09), transparent 60%),
    radial-gradient(820px 520px at -10% 110%, rgba(255, 255, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #0b0b0b 0%, #070707 100%);
}

.hero-content { max-width: 680px; }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-trust li { position: relative; padding-left: 22px; }
.hero-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--whatsapp);
}

/* ---------- Métricas ---------- */
.stats {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  padding: 40px 20px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Servicios (grid 3 columnas) ---------- */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  background: var(--surface-2);
}
.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Nuestra Flota ---------- */
.flota { background: var(--bg-elevated); border-top: 1px solid var(--border-soft); }
.flota-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.flota-media { position: relative; }
/* GALERÍA DE FOTOS DE LA FLOTA (JAC Refine 2023 + Hyundai Staria 2023) */
.flota-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.flota-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flota-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.flota-item figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}
@media (min-width: 520px) {
  .flota-gallery { grid-template-columns: 1fr 1fr; }
}

.flota-body h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 18px; }
.flota-body > p { color: var(--text-muted); margin-bottom: 24px; }

.check-list { margin-bottom: 32px; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
}
.check-list li::after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--whatsapp);
}

/* ---------- Por qué elegirnos ---------- */
.why { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature:hover { border-color: var(--border); transform: translateY(-4px); }
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--bg-elevated); border-top: 1px solid var(--border-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; max-width: 460px; }

.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--text); }
.contact-list a:hover { color: var(--whatsapp); }

/* Formulario */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.field select { appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 100px; }

.form-note { font-size: 0.8rem; color: var(--text-faint); text-align: center; margin-top: 14px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.footer-logo { height: 38px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #000;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Animación de aparición (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive (tablet y desktop) ---------- */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-cta { display: block; }
  .menu-toggle { display: none; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }

  .flota-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

/* ---------- Marcas (carrusel de logos) ---------- */
.brands { background: var(--bg); border-top: 1px solid var(--border-soft); padding: 72px 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.brands-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands-track {
  display: flex;
  width: max-content;
  animation: brands-scroll 38s linear infinite;
}
.brands-carousel:hover .brands-track { animation-play-state: paused; }

.brands-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}
.brand-item {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s ease;
}
.brand-item:hover { opacity: 1; }
.brand-logo { display: block; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  opacity: 0.5;
}

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

/* ---------- Conductores (equipo) ---------- */
.conductores { background: var(--bg-elevated); border-top: 1px solid var(--border-soft); }
.conductores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.conductor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.conductor-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.conductor-card h3 { font-size: 1.2rem; margin: 0; }
.conductor-role { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.conductor-badge {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: var(--whatsapp);
}
@media (min-width: 640px) {
  .conductores-grid { grid-template-columns: 1fr 1fr; }
}

/* Respeta a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
