/* Arlex Logística — demo.crayder.net */
:root {
  --brand: #FCEC00;
  --brand-deep: #E0D000;
  --brand-glow: rgba(252, 236, 0, .22);
  --orange: #F97316;
  --ink: #0F1014;
  --ink-2: #1A1B22;
  --ink-3: #2A2B34;
  --paper: #FFFFFF;
  --paper-2: #F8F8F6;
  --paper-3: #EFEFEC;
  --rule: #E5E5E2;
  --text: #1A1A1A;
  --text-2: #5B6573;
  --text-3: #8B94A1;
  --f-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --section-y: clamp(64px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }
::selection { background: var(--brand); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { color: var(--text-2); max-width: 65ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn--primary { background: var(--brand); color: var(--ink); box-shadow: 0 0 0 0 var(--brand-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--brand-glow); }
.btn--ghost { border: 1.5px solid currentColor; color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn--arrow::after { content: "→"; transition: transform .15s ease; }
.btn--arrow:hover::after { transform: translateX(4px); }

/* TOPBAR (delgada, datos rápidos) */
.topbar { background: var(--ink); color: var(--text-3); font-size: .8rem; }
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .55rem var(--pad);
  display: flex; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--brand); }
.topbar__group { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar__dot {
  display: inline-block; width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, .7);
  margin-right: .4rem; vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* NAV sticky */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 38px; width: auto; }
.nav__menu {
  display: flex; gap: 2rem;
  font-size: .95rem; font-weight: 500;
}
.nav__menu a { color: var(--paper); position: relative; padding: .5rem 0; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--brand);
  transition: width .25s ease;
}
.nav__menu a:hover::after,
.nav__menu a[aria-current="page"]::after { width: 100%; }
.nav__menu a[aria-current="page"] { color: var(--brand); }
.nav__social { display: flex; gap: .6rem; }
.nav__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ink-3);
  color: var(--paper);
  transition: all .2s ease;
}
.nav__social a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  color: var(--paper);
  place-items: center;
}
@media (max-width: 880px) {
  .nav__menu, .nav__social { display: none; }
  .nav__toggle { display: grid; }
  .nav.is-open { background: var(--ink); }
  .nav.is-open .nav__menu, .nav.is-open .nav__social {
    display: flex;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink-2);
    padding: 1.25rem var(--pad);
    border-bottom: 1px solid var(--ink-3);
  }
  .nav.is-open .nav__menu { flex-direction: column; gap: .75rem; padding-bottom: .5rem; }
  .nav.is-open .nav__social { padding-top: 0; gap: .75rem; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid; align-items: center;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlide 14s ease-in-out infinite;
}
.hero__bg img:nth-child(1) { animation-delay: 0s; }
.hero__bg img:nth-child(2) { animation-delay: 7s; }
@keyframes heroSlide {
  0%, 50%   { opacity: 1; transform: scale(1.04); }
  55%, 100% { opacity: 0; transform: scale(1.10); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(15,16,20,.78) 0%, rgba(15,16,20,.55) 55%, rgba(15,16,20,.85) 100%);
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 12vw, 140px) var(--pad);
  width: 100%;
}
.hero__tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .35rem .8rem;
  background: var(--brand);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 4px;
}
.hero__title {
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 16ch;
  color: var(--paper);
}
.hero__title em { color: var(--brand); font-style: normal; }
.hero__title small {
  display: block;
  font-size: .35em;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
}
.hero__sub {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
}
.hero__actions { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.hero--small { min-height: 44vh; }
.hero--small .hero__title { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 22ch; }

/* SECTION */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p { color: rgba(255,255,255,.7); }
.section--dark .eyebrow { color: var(--brand); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 720px; }

/* SPLIT */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split__media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.18);
  position: relative;
}
.split__media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  pointer-events: none;
}
.split__media img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.split__body p + p { margin-top: 1rem; }
.split__cta { margin-top: 2rem; }

/* VALUES grid */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.value {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px -16px var(--brand-glow);
}
.value__num {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 1.75rem; font-weight: 800;
  color: var(--brand-deep);
  line-height: 1;
  padding-bottom: .25rem;
  border-bottom: 3px solid var(--brand);
}
.value__name {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
.value__desc { margin-top: .35rem; font-size: .92rem; color: var(--text-2); }

/* CLIENTS */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 720px) { .clients { grid-template-columns: repeat(2, 1fr); } }
.clients__item {
  height: 110px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem;
  transition: all .25s ease;
}
.clients__item img {
  max-height: 70px; max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .25s ease, opacity .25s ease;
}
.clients__item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -14px rgba(0,0,0,.12);
}
.clients__item:hover img { filter: grayscale(0); opacity: 1; }

/* SERVICE LIST */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.service {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all .2s ease;
  display: flex; flex-direction: column; gap: .75rem;
}
.service:hover {
  border-color: var(--brand);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.service__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 800;
}
.service h3 { font-size: 1.1rem; }
.service p { font-size: .92rem; }

/* UNIDADES grid */
.units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.unit {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: all .2s ease;
}
.unit:hover {
  border-color: var(--brand);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.unit__media {
  height: 160px;
  background: var(--paper-3);
  overflow: hidden;
}
.unit__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.unit:hover .unit__media img { transform: scale(1.05); }
.unit__body { padding: 1.25rem; }
.unit__name {
  font-size: .98rem; font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}

/* MISSION blocks (Acerca) */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.mission {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: "";
  position: absolute; top: 0; left: 0;
  height: 4px; width: 60px;
  background: var(--brand);
  border-bottom-right-radius: 4px;
}
.mission__label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: .75rem;
}
.mission__body { color: var(--text); font-size: 1rem; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 2.5rem;
}
.contact-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--rule); }
.contact-row:first-of-type { border-top: 0; padding-top: 0; }
.contact-row__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--ink);
  border-radius: 10px;
}
.contact-row__label { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text-2); }
.contact-row__value { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-top: .15rem; }
.contact-row__value a:hover { color: var(--brand-deep); }

/* CTA stripe */
.cta-stripe {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  border-radius: 18px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative; overflow: hidden;
}
.cta-stripe::before {
  content: ""; position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
}
.cta-stripe h2 { color: var(--paper); max-width: 18ch; position: relative; }
.cta-stripe__actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; }
@media (max-width: 720px) { .cta-stripe { grid-template-columns: 1fr; } }

/* FOOTER */
.footer {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: rgba(255,255,255,.75);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 1.5rem;
  margin-top: 0;
}
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer h4 {
  color: var(--paper);
  font-size: .9rem; font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.footer__logo { height: 64px; width: auto; margin-bottom: 1.25rem; }
.footer__list li { margin-bottom: .5rem; }
.footer__list a { color: rgba(255,255,255,.75); }
.footer__list a:hover { color: var(--brand); }
.footer__contact { display: flex; flex-direction: column; gap: .75rem; }
.footer__contact-row { display: flex; gap: .75rem; align-items: flex-start; }
.footer__contact-row svg { flex-shrink: 0; margin-top: 4px; color: var(--brand); }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--paper);
  transition: all .2s ease;
}
.footer__social a:hover { background: var(--brand); color: var(--ink); transform: translateY(-2px); }
.footer__bottom {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 1.5rem var(--pad) 0;
  border-top: 1px solid var(--ink-3);
  display: flex; justify-content: space-between;
  font-size: .85rem;
  flex-wrap: wrap; gap: .5rem;
}

/* REVEAL on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero__bg img { animation: none !important; opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
