/* ==========================================================================
   Vinara Transportes — hoja de estilos unica
   Fuentes auto-hospedadas, tokens de marca, layout responsivo.
   ========================================================================== */

/* --- Fuentes (subconjunto latino, auto-hospedadas) ----------------------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/barlow-condensed-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  --brand: #0ea5e9;
  --brand-light: #5cc5f0;
  --brand-dark: #0284c7;

  --ink-900: #16212b;
  --ink-800: #1c2933;
  --ink-700: #26333d;
  --ink-600: #33424e;

  --text: #1c2933;
  --text-muted: #3a434c;
  --text-soft: #55606a;
  --on-dark: #c7d2d9;
  --on-dark-soft: #94a0aa;
  --on-dark-faint: #55606a;

  --surface: #f2f5f7;
  --surface-alt: #e7ecf0;
  --card: #ffffff;
  --border: #dbe2e8;
  --border-strong: #c9d3da;

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

  --shell: 1280px;
  --gutter: 32px;
  --section-y: 96px;
  --radius: 2px;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* la barra sticky no debe tapar la seccion al saltar por anchor */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Utilidades de layout ----------------------------------------------- */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--ink-900); color: #fff; }

/* --- Tipografia --------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 3px;
  background: var(--brand);
  flex: none;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 20ch;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  text-transform: uppercase;
  margin: 0 0 48px;
  max-width: 22ch;
}
.h2--tight {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 20px;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark);
  max-width: 60ch;
  margin: 0;
}
.body-copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* --- Botones ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 16px 32px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: #4a4f58; color: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-light); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--surface-alt); color: var(--brand-dark); }
.btn--sm { font-size: 14px; padding: 10px 20px; }

/* --- Navegacion --------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-900);
  border-bottom: 3px solid var(--brand);
}
.site-nav__inner {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__logo img { height: 46px; width: auto; }
@media (max-width: 860px) {
  .site-nav__logo img { height: 38px; }
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__links a {
  color: var(--on-dark);
  font-weight: 600;
  font-size: 14px;
}
.site-nav__links a:hover { color: #fff; }
.site-nav__links .btn { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-800);
    border-bottom: 3px solid var(--brand);
    padding: 8px 0 16px;
  }
  .site-nav__links[data-open='true'] { display: flex; }
  .site-nav__links a {
    padding: 14px var(--gutter);
    border-bottom: 1px solid var(--ink-700);
    font-size: 16px;
  }
  .site-nav__links .btn {
    margin: 12px var(--gutter) 0;
    text-align: center;
    border-bottom: 0;
  }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--ink-900) 30%, rgba(20, 21, 26, .75) 55%, rgba(20, 21, 26, .35) 100%);
}
.hero__stripe {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--brand) 0 24px, var(--ink-900) 24px 48px);
}
.hero__inner {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter) clamp(80px, 12vw, 140px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 560px;
  justify-content: center;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* --- Cifras ------------------------------------------------------------- */
.stats {
  background: var(--ink-800);
  border-bottom: 1px solid var(--ink-700);
}
.stats__grid {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 40px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  list-style: none;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--brand);
  line-height: 1.1;
}
.stat__label {
  font-size: 13px;
  color: var(--on-dark-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 4px;
}

/* --- Servicios ---------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card__body { padding: 24px; }
.card__body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}

/* --- Bloques a dos columnas --------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--flota {
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
.split > img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.quote-block {
  background: var(--ink-900);
  padding: 24px 28px;
  border-left: 4px solid var(--brand);
  margin: 0 0 32px;
}
.quote-block__label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  font-style: italic;
  margin: 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.values li { text-align: center; }
.values .values__icon {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
}
.values strong {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* --- Flota -------------------------------------------------------------- */
.fleet-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fleet-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--ink-700);
  padding-bottom: 20px;
}
.fleet-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.fleet-list b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--brand);
  flex: none;
}
.fleet-list strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.fleet-list p {
  font-size: 14px;
  color: var(--on-dark-soft);
  line-height: 1.5;
  margin: 0;
}

/* --- Seguridad ---------------------------------------------------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}
.check-list li::before {
  content: '\2713';
  color: var(--brand);
  font-weight: 800;
  flex: none;
}

.badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.badges li {
  border: 2px solid var(--border-strong);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text-muted);
}

/* --- Clientes ----------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}
.logo-wall li {
  height: 80px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #9aa5ad;
}

.testimonial {
  background: var(--ink-900);
  padding: 40px 48px;
  border-left: 6px solid var(--brand);
  margin: 0;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-style: italic;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 16px;
}
.testimonial figcaption {
  font-size: 14px;
  color: var(--on-dark-soft);
  font-weight: 600;
}

/* --- Trabaja con nosotros ----------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--brand);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(20, 21, 26, .06) 0 24px, transparent 24px 48px);
}
.cta-band__inner {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 80px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band .h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 16px;
  color: #eaf6ff;
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

/* --- Contacto ----------------------------------------------------------- */
.contact {
  background: var(--ink-800);
  color: #fff;
}
.contact .split { align-items: start; }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  color: var(--on-dark);
  margin: 0;
}
.contact__details dt {
  color: var(--brand);
  font-weight: 700;
  display: inline;
}
.contact__details dd {
  display: inline;
  margin: 0 0 0 6px;
}
.contact__details > div { display: block; }
.contact__details a { color: var(--on-dark); }
.contact__details a:hover { color: var(--brand-light); }

.contact-form {
  background: var(--ink-900);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label { display: block; }
.contact-form input,
.contact-form textarea {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  color: #fff;
  padding: 14px;
  font-size: 14px;
  font-family: var(--font-body);
  border-radius: var(--radius);
  width: 100%;
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #7b8a97; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { border-color: var(--brand); }
.contact-form .hp {
  position: absolute;
  left: -9999px;
}
.contact-form .btn { width: 100%; }

.form-status {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--on-dark);
}
.form-status:empty { display: none; }
.form-status[data-state='ok'] { color: var(--brand-light); }
.form-status[data-state='error'] { color: #ff8f8f; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--on-dark-soft);
}
.site-footer__grid {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 56px var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer img {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
}
.site-footer p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}
.site-footer h2 {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
  font-family: var(--font-body);
}
.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer ul a { color: var(--on-dark-soft); }
.site-footer ul a:hover { color: #fff; }
.site-footer ul a.is-accent { color: var(--brand); }
.site-footer__bar { border-top: 1px solid var(--ink-700); }
.site-footer__bar div {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--on-dark-faint);
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Pagina 404 --------------------------------------------------------- */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 80px var(--gutter);
  background: var(--ink-900);
  color: #fff;
}
.error-page .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 16vw, 140px);
  color: var(--brand);
  line-height: 1;
}
.error-page p {
  color: var(--on-dark);
  max-width: 46ch;
  margin: 0;
}

/* --- Responsivo --------------------------------------------------------- */
@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
  }
  .split,
  .split--flota {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split > img { height: 320px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: 1fr; }
  .values {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
  }
  .testimonial { padding: 28px 24px; }
  .cta-band__inner { padding: 56px var(--gutter); }
  .contact-form { padding: 24px; }
  .hero__inner { min-height: 480px; }
}
@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}
.error-page img {
  height: 38px;
  width: auto;
}
.error-page__title {
  color: #fff;
  margin: 0;
}
