/* 1000 Millas — Sitio público */

:root {
  /* Paleta 1000 Millas — naranja + marino oscuro del nuevo logo */
  --azul:     #2C3B52;   /* marino oscuro del logo */
  --azul-os:  #1E2D3F;   /* hover */
  --rojo:     #E55E20;   /* naranja del logo */
  --rojo-os:  #C44D16;   /* hover */
  /* superficie */
  --noche:    #111820;   /* fondo oscuro para secciones dark */
  --crema:    #FFF0E6;   /* tono cálido para datos de flota */
  --arena:    #F5F2EF;   /* fondo secciones claras */
  --texto:    #17181F;
  --suave:    #5E6270;
  --borde:    #DDD8D2;
  --r:        10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--texto);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.oculto { display: none; }
.btn-cob { margin-top: 2rem; }

/* ── Botones ─────────────────────────────────────── */
.btn-rojo {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--azul); color: #fff;
  padding: .7rem 1.5rem; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .9rem;
  transition: background .18s, transform .15s;
}
.btn-rojo:hover { background: var(--azul-os); transform: translateY(-1px); }
.btn-rojo.btn-lg { padding: .85rem 1.9rem; font-size: .95rem; }

.btn-linea {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85);
  padding: .7rem 1.5rem; border-radius: 6px;
  font-weight: 600; font-size: .9rem;
  transition: border-color .18s, background .18s, color .18s;
}
.btn-linea:hover { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.07); }
.btn-linea.btn-lg { padding: .85rem 1.9rem; font-size: .95rem; }

/* ── Navbar ──────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17,24,32,.92);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: rgba(255,255,255,.12); }
.nav-inner {
  display: flex; align-items: center;
  height: 64px; gap: 2rem;
  max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-marca {
  display: flex; flex-direction: column;
  line-height: 1.1; flex-shrink: 0;
}
.nav-marca strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.3rem;
  letter-spacing: -.01em; color: #fff;
}
.nav-marca span {
  font-size: .6rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.nav-links {
  list-style: none; display: flex;
  align-items: center; gap: .1rem; margin-left: auto;
}
.nav-links a {
  padding: .5rem .85rem; border-radius: 5px;
  font-size: .85rem; color: rgba(255,255,255,.6);
  font-weight: 500; transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { margin-left: .75rem; padding: .45rem 1rem; font-size: .85rem; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.75); border-radius: 2px; transition: .25s;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative; overflow: hidden;
  background:
    linear-gradient(100deg,
      rgba(17,24,32,.97) 0%,
      rgba(17,24,32,.84) 36%,
      rgba(17,24,32,.38) 60%,
      rgba(17,24,32,.05) 80%,
      transparent 100%
    ),
    url('../img/hero.jpeg') center 45% / cover no-repeat;
  padding-top: 64px;
}

.hero-inner {
  flex: 1;
  position: relative;
  padding: 4.5rem 0 2.5rem;
  display: flex; flex-direction: column; gap: 2.5rem;
  width: 100%;
  z-index: 2;
  min-height: 420px;
  justify-content: center;
}
.hero-sup {
  display: inline-block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: .9rem;
}
.hero-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.58);
  max-width: 500px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  gap: 0;
}
.hstat { padding: 0 2.5rem 0 0; }
.hstat-n {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 2.1rem;
  color: #fff; line-height: 1;
  letter-spacing: -.01em;
}
.hstat-l {
  display: block; font-size: .73rem;
  color: rgba(255,255,255,.42);
  font-weight: 500; margin-top: .2rem;
}
.hstat-sep {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.12);
  margin: 0 2.5rem 0 0;
  flex-shrink: 0;
}


/* ── Secciones ───────────────────────────────────── */
.seccion { padding: 5.5rem 0; }
.sec-oscura { background: var(--noche); }
.seccion:not(.sec-oscura) { background: var(--arena); }

.sec-cab { margin-bottom: 3.5rem; }
.sec-cab h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  letter-spacing: -.025em; line-height: 1;
  color: var(--texto); margin-bottom: .75rem;
}
.sec-cab p { color: var(--suave); font-size: .92rem; max-width: 540px; }
.sec-cab-claro h2 { color: #fff; }
.sec-cab-claro p { color: rgba(255,255,255,.5); }

.sec-etiq {
  display: inline-block;
  font-size: .67rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: .6rem;
}
.sec-etiq-claro { color: rgba(255,255,255,.4); }

/* ── Servicios ───────────────────────────────────── */
.servicios-grilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--borde);
  border: 1px solid var(--borde);
  border-radius: var(--r);
  overflow: hidden;
}
.srv {
  background: #fff;
  padding: 2rem;
  transition: background .15s;
}
.srv:hover { background: #f7f9ff; }
.srv-ico {
  width: 30px; height: 30px;
  color: var(--rojo); margin-bottom: 1rem;
}
.srv h3 {
  font-weight: 700; font-size: .92rem;
  color: var(--texto); margin-bottom: .45rem;
}
.srv p { font-size: .85rem; color: var(--suave); line-height: 1.6; }

/* ── Flota ───────────────────────────────────────── */
.flota-grilla {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 2rem;
}
.vehiculo {
  background: rgba(255,255,255,.03);
  padding: 2rem;
  transition: background .18s;
}
.vehiculo:hover { background: rgba(255,255,255,.06); }
.vehiculo-cap {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1;
  color: var(--crema);
  letter-spacing: -.02em;
  margin-bottom: .9rem;
}
.vehiculo-cap span {
  font-size: 52%;
  color: rgba(255,240,230,.3);
  font-weight: 700;
  margin-left: .15em;
}
.vehiculo h3 {
  font-weight: 600; font-size: .88rem;
  color: rgba(255,255,255,.8);
  margin-bottom: .4rem;
}
.vehiculo-specs {
  font-size: .76rem;
  color: rgba(255,255,255,.3);
  margin-bottom: .8rem;
  font-weight: 500;
  line-height: 1.5;
}
.vehiculo p { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.6; }
.flota-nota {
  text-align: center;
  color: rgba(255,255,255,.35); font-size: .88rem;
}
.flota-nota a {
  color: rgba(255,255,255,.65);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flota-nota a:hover { color: #fff; }

/* ── Cobertura ───────────────────────────────────── */
.cobertura-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}
.cobertura-texto .sec-etiq { display: block; }
.cobertura-texto h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -.025em; line-height: .95;
  color: var(--texto);
  margin-bottom: 1rem;
}
.cobertura-texto p { color: var(--suave); font-size: .92rem; }

.zonas-panel {
  border: 1px solid var(--borde);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 20px rgba(44,59,82,.06);
}
.zona-fila {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--borde);
  transition: background .12s;
}
.zona-fila:last-child { border-bottom: none; }
.zona-fila:hover { background: var(--arena); }
.zona-id {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: .95rem;
  letter-spacing: .08em;
  color: var(--rojo);
  flex-shrink: 0; min-width: 54px;
}
.zona-detalle { font-size: .875rem; color: var(--suave); line-height: 1.4; }
.zona-fila-extra .zona-id { color: var(--borde); }
.zona-fila-extra .zona-detalle { color: rgba(0,0,0,.3); font-style: italic; }

/* ── Contacto ────────────────────────────────────── */
.contacto-grilla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contacto-tarjetas { display: flex; flex-direction: column; gap: .65rem; }
.ctarj {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .9rem 1.25rem;
  transition: background .15s;
}
.ctarj:hover { background: rgba(255,255,255,.08); }
.ctarj strong {
  display: block; font-size: .8rem;
  color: rgba(255,255,255,.8); font-weight: 600;
  margin-bottom: .15rem;
}
.ctarj a { font-size: .82rem; color: rgba(255,240,230,.65); }
.ctarj a:hover { color: var(--crema); text-decoration: underline; text-underline-offset: 2px; }
.ctarj span { font-size: .82rem; color: rgba(255,240,230,.45); }
.ctarj-ico {
  width: 36px; height: 36px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ctarj-ico svg { width: 17px; height: 17px; }
.ctarj-verde   { background: rgba(34,197,94,.15);  color: #4ade80; }
.ctarj-azul    { background: rgba(96,165,250,.15); color: #93c5fd; }
.ctarj-naranja { background: rgba(251,146,60,.15); color: #fdba74; }
.ctarj-morado  { background: rgba(192,132,252,.15);color: #d8b4fe; }
.ctarj-teal    { background: rgba(45,212,191,.15); color: #5eead4; }

.contacto-cta {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: 2.5rem;
}
.cta-titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 2rem;
  letter-spacing: -.02em; line-height: 1;
  color: #fff; margin-bottom: .75rem;
}
.cta-desc { color: rgba(255,255,255,.5); font-size: .9rem; margin-bottom: 1.75rem; line-height: 1.6; }
.cta-pie { font-size: .78rem; color: rgba(255,255,255,.28); margin-top: 1rem; }
#cta-actions { display: flex; flex-direction: column; gap: .75rem; }

/* ── Footer ──────────────────────────────────────── */
.pie {
  background: #0D1017;
  color: rgba(255,255,255,.4);
  padding: 3rem 0 0;
}
.pie-inner {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pie-marca strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.1rem;
  color: #fff; margin-bottom: .4rem;
}
.pie-marca p { font-size: .82rem; max-width: 240px; }
.pie-nav { display: flex; flex-direction: column; gap: .5rem; }
.pie-nav a { font-size: .85rem; transition: color .15s; }
.pie-nav a:hover { color: #fff; }
.pie-social { display: flex; gap: .6rem; align-items: center; }
.pie-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 7px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.5);
  transition: background .15s, color .15s;
}
.pie-social a:hover { background: var(--azul); color: #fff; }
.pie-copy {
  padding: 1.1rem 0;
  text-align: center; font-size: .75rem;
}

/* ── WhatsApp flotante ───────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,.32);
}
@media print { .wa-float { display: none !important; } }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .flota-grilla { grid-template-columns: repeat(2, 1fr); }
  .servicios-grilla { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cobertura-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacto-grilla  { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--noche);
    flex-direction: column; align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: 0; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .75rem; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hstat { padding-right: 1.75rem; }
  .hstat-sep { margin-right: 1.75rem; }
}
@media (max-width: 600px) {
  .servicios-grilla { grid-template-columns: 1fr; }
  .flota-grilla { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 2.9rem; }
  .hstat-sep { display: none; }
  .hstat { padding-right: 2rem; }
  .pie-inner { flex-direction: column; gap: 1.5rem; }
  /* En móvil el gradiente cubre más para leer sobre la imagen */
  .hero {
    background:
      linear-gradient(to bottom,
        rgba(17,24,32,.85) 0%,
        rgba(17,24,32,.75) 60%,
        rgba(17,24,32,.55) 100%
      ),
      url('../img/hero.jpeg') 70% center / cover no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Impresión / PDF ─────────────────────────────── */
@media print {
  /* A4 apaisada sin márgenes. Chrome escala todo al 55% → entra en una sola hoja */
  @page { size: A4 landscape; margin: 0; }

  /* Forzar impresión de fondos, gradientes e imágenes */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Escalar el contenido para que todo entre en UNA sola hoja */
  html { zoom: 55%; }

  /* Ocultar navbar y botón mobile */
  .nav, .nav-toggle { display: none !important; }

  /* Hero: sin padding-top del nav fijo, altura fija compacta */
  .hero {
    padding-top: 0 !important;
    min-height: 0 !important;
    height: 310px !important;
  }

  /* Secciones muy compactas */
  .seccion { padding: 1.75rem 0 !important; }

  /* Contenedor al ancho completo */
  .container { max-width: 100% !important; padding: 0 2rem !important; }

  /* Encabezados de sección más ajustados */
  .sec-cab { margin-bottom: 1.5rem !important; }

  /* Grillas en configuración escritorio */
  .servicios-grilla { grid-template-columns: repeat(3, 1fr) !important; }
  .flota-grilla     { grid-template-columns: repeat(4, 1fr) !important; }
  .cobertura-layout { grid-template-columns: 1fr 1.3fr !important; gap: 2.5rem !important; }
  .contacto-grilla  { grid-template-columns: 1fr 1fr !important; }

  /* Que nada se corte entre páginas (por si el zoom no alcanza) */
  .hero, .seccion, .pie { break-inside: avoid; }
  .srv, .vehiculo, .ctarj, .zona-fila,
  .servicios-grilla, .flota-grilla, .zonas-panel,
  .contacto-grilla, .contacto-cta { break-inside: avoid; }

  /* Pie compacto */
  .pie { padding: 1.25rem 0 0 !important; }
  .pie-inner { padding-bottom: 1rem !important; }
}
