/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-2:      #f7f4f2;
  --paper:     #ffffff;
  --ink:       #1c1315;
  --ink-mute:  #6b5f62;
  --accent:    #7a1330;   /* wine / vino — brand color */
  --accent-2:  #16305c;   /* deep confident blue */
  --accent-on-dark:    #e8a0b3;  /* wine tint — legible on dark backgrounds */
  --accent-2-on-dark:  #9fb6dd;  /* blue tint — legible on dark backgrounds */
  --line:      rgba(28,19,21,0.12);
  --cream:     #ffffff;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", "JetBrains Mono", monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 700; }
ul, ol { padding: 0; margin: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 6px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.section-kicker {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .9rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.2rem;
  max-width: 24ch;
}

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
  transition-delay: var(--stagger-delay, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

[data-reveal-mask] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-soft); }
[data-reveal-mask].is-revealed { clip-path: inset(0); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 4px;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(122,19,48,.22);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(122,19,48,.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  box-shadow: 0 2px 12px rgba(28,19,21,.08);
}
.nav-inner {
  max-width: 1240px; margin-inline: auto;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
@media (min-width: 720px) { .nav-inner { padding: 1.1rem 2rem; } }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: none; gap: 1.8rem; align-items: center; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding: .25rem 0; font-weight: 500; font-size: .92rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-nav-cta { display: none; }
@media (min-width: 960px) { .btn-nav-cta { display: inline-flex; } }

.nav-burger {
  display: grid; gap: 5px; padding: .5rem; z-index: 101;
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.nav-mobile-link { font-family: var(--serif); font-size: 1.6rem; }
.nav-mobile .btn { margin-top: 1rem; }

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .9s, clip-path 1.1s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-logo { opacity: 0; animation: splashFade .6s .1s forwards; }
@keyframes splashFade { to { opacity: 1; } }

/* =============================================================
   7. Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear;
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  animation: ambientZoom 30s ease-in-out infinite;
}
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.04); }
  50%      { transform: scale(1.1); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,8,10,.72) 0%, rgba(15,8,10,.5) 30%, rgba(15,8,10,.62) 60%, rgba(15,8,10,.85) 100%),
    linear-gradient(90deg, rgba(15,8,10,.55) 0%, rgba(15,8,10,.15) 55%, rgba(15,8,10,.1) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1240px; margin-inline: auto;
  padding: 8rem 1.25rem 4rem;
  color: #fff;
}
@media (min-width: 720px) { .hero-content { padding-inline: 2rem; } }
.hero .eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
  color: #f0d9dd; margin-bottom: 1.3rem;
}
.hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  max-width: 23ch;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.4);
}
.split-word { display: inline-block; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 42ch;
  color: rgba(255,255,255,.88);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: #fff; }

/* =============================================================
   8b. Ticker (route strip)
   ============================================================= */
.ticker {
  display: flex; flex-wrap: nowrap;
  overflow: hidden; position: relative;
  background: var(--accent);
  padding: .75rem 0;
}
.ticker-track {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .9rem;
  white-space: nowrap; will-change: transform;
  padding-inline: .9rem;
}
.ticker-item {
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; color: rgba(255,255,255,.94);
}
.ticker-dot { color: rgba(255,255,255,.55); font-size: .5rem; }

/* =============================================================
   9. Trust bar
   ============================================================= */
.trust-bar { background: var(--ink); color: #fff; padding: 2.6rem 0; position: relative; overflow: hidden; }
.road-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 26px, transparent 26px 52px);
  background-size: 104px 2px;
  animation: roadMove 3.2s linear infinite;
  pointer-events: none;
}
@keyframes roadMove { to { background-position: -104px 0; } }
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.8rem; text-align: center;
}
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-num {
  display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--accent-2-on-dark); background: linear-gradient(180deg, #fff, #cfd9ec);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.trust-label {
  display: block; margin-top: .3rem; font-size: .85rem; letter-spacing: .03em;
  color: rgba(255,255,255,.7); text-transform: uppercase;
}

/* =============================================================
   10. Intro / Nosotros
   ============================================================= */
.intro { padding: 6rem 0; }
.intro-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; } }
.intro-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 1.3rem; }
.intro-lead { color: var(--ink-mute); font-size: 1.08rem; max-width: 46ch; }
.intro-img { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   11. Services
   ============================================================= */
.services { padding: 6rem 0; background: var(--bg-2); }
.services-list { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .services-list { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.2rem;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .5s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(28,19,21,.16);
  border-color: rgba(122,19,48,.25);
}
.service-num {
  font-family: var(--mono); font-size: .85rem; font-weight: 600;
  color: var(--accent); display: block; margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.service-card p { color: var(--ink-mute); }

/* =============================================================
   12. Misión / Visión / Objetivo
   ============================================================= */
.mv { padding: 6rem 0; }
.mv-grid { display: grid; gap: 1.75rem; }
@media (min-width: 720px) { .mv-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.mv-card {
  padding: 2.2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 6px 6px 0;
}
.mv-card:nth-child(2) { border-left-color: var(--accent-2); }
.mv-card:nth-child(3) { border-left-color: var(--ink-mute); }
.mv-card h3 { font-size: 1.35rem; margin-bottom: .9rem; }
.mv-card .section-kicker { margin-bottom: .6rem; }
.mv-card p:last-child { color: var(--ink-mute); font-size: 1rem; }

/* =============================================================
   13. Valores
   ============================================================= */
.values { padding: 6rem 0; background: var(--bg-2); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-chip {
  display: flex; align-items: baseline; gap: .7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.3rem 1.2rem;
  transition: transform .4s var(--ease-soft), border-color .4s;
}
.value-chip:hover { transform: translateY(-4px); border-color: rgba(122,19,48,.3); }
.value-chip-num {
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  color: var(--accent-2);
}
.value-chip-label {
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  letter-spacing: -.01em;
}

/* =============================================================
   14. Política de calidad
   ============================================================= */
.quality { padding: 6rem 0; background: var(--ink); color: #fff; }
.quality-inner { max-width: 820px; }
.quality .section-kicker { color: var(--accent-2-on-dark); }
.quality-list {
  display: grid; gap: .9rem;
  margin-top: 1.6rem;
}
@media (min-width: 720px) { .quality-list { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; } }
.quality-item {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: 1.05rem; color: rgba(255,255,255,.9);
}
.quality-item svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .2rem; color: var(--accent-2-on-dark); }

/* =============================================================
   14b. Respaldo legal
   ============================================================= */
.legal-bar { padding: 3rem 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-kicker {
  font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-mute); margin-bottom: 1.1rem; text-align: center;
}
.legal-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem;
}
.legal-item {
  font-size: .85rem; font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 100px; padding: .5rem 1rem;
}

/* =============================================================
   15. Flota / galería
   ============================================================= */
.fleet { padding: 6rem 0; }
.fleet-lead { color: var(--ink-mute); max-width: 56ch; margin-bottom: 2.5rem; font-size: 1.05rem; }
.fleet-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
}
@media (min-width: 720px) { .fleet-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .fleet-grid { grid-template-columns: repeat(4, 1fr); } }
.fleet-item {
  position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3;
  background: var(--bg-2);
}
.fleet-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft), filter .5s;
}
.fleet-item:hover img { transform: scale(1.1); filter: saturate(1.1) contrast(1.04); }

/* Tilt (subtle 3D) — mouse-driven, desktop only */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .55s var(--ease-soft), box-shadow .4s;
}
.has-tilt:hover {
  transition-duration: .12s;
  box-shadow: 0 24px 48px -16px rgba(28,19,21,.28);
  z-index: 2;
}

.fleet-specs { margin-top: 3.5rem; }
.fleet-specs-title {
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 1rem;
}
.fleet-specs-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.fleet-specs-table tr { border-top: 1px solid var(--line); }
.fleet-specs-table tr:first-child { border-top: 0; }
.fleet-specs-table td {
  padding: .95rem 1.2rem; font-size: .92rem; color: var(--ink-mute);
  vertical-align: top;
}
.fleet-specs-unit {
  font-family: var(--sans); font-weight: 700; color: var(--ink);
  white-space: nowrap; width: 1%;
}
@media (max-width: 719px) {
  .fleet-specs-table, .fleet-specs-table tbody, .fleet-specs-table tr, .fleet-specs-table td { display: block; width: auto; }
  .fleet-specs-table tr { padding: .9rem 1.1rem; }
  .fleet-specs-unit { margin-bottom: .25rem; }
}

/* =============================================================
   16. Ubicación
   ============================================================= */
.location { padding: 6rem 0; background: var(--bg-2); }
.location-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .location-grid { grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; } }
.location-info h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 1.6rem; }
.location-list { display: grid; gap: 1.3rem; }
.location-list dt {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .25rem;
}
.location-list dd { font-size: 1.05rem; }
.location-list a { color: var(--accent); font-weight: 600; }
.location-list a:hover { text-decoration: underline; }
.location-list-contacts {
  margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.location-map {
  position: relative;
  border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/3; background: var(--paper);
}
.location-map iframe { width: 100%; height: 100%; border: 0; }
.location-map-link {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 2;
  background: var(--ink); color: #fff;
  font-size: .82rem; font-weight: 600;
  padding: .6rem 1rem; border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .3s var(--ease-soft), background-color .3s;
}
.location-map-link:hover { background: var(--accent); transform: translateY(-2px); }

/* =============================================================
   17. Contacto
   ============================================================= */
.contact { padding: 7rem 0; text-align: center; }
.contact .section-kicker { text-align: center; }
.contact .section-title { margin-inline: auto; }
.contact-lead { color: var(--ink-mute); max-width: 50ch; margin-inline: auto; margin-bottom: 2.2rem; font-size: 1.08rem; }
.contact-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* =============================================================
   18. Footer
   ============================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 4rem 0 1.5rem; }
.footer-grid {
  display: grid; gap: 2.4rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand img {
  height: 44px; width: auto; margin-bottom: 1.2rem;
  background: #fff; padding: .5rem .8rem; border-radius: 6px;
}
.footer-brand p { max-width: 32ch; color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: .7rem; font-size: .92rem; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { padding-top: 1.6rem; font-size: .82rem; color: rgba(255,255,255,.5); }

/* =============================================================
   19. Responsive top-level
   ============================================================= */
@media (min-width: 1600px) {
  .container { max-width: 1360px; }
}

/* =============================================================
   20. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .splash { animation: none; opacity: 0; clip-path: inset(0 0 100% 0); }
}
