:root {
  --y: #FFC80A;
  --y2: #ffd84a;
  --k: #0a0a0a;
  --k2: #111;
  --k3: #191919;
  --line: #262626;
  --w: #f5f2ea;
  --m: #a5a199;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  background: var(--k);
  color: var(--w);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
.y { color: var(--y); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--y); color: var(--k); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-stretch: 90%; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn-y { background: var(--y); color: var(--k); }
.btn-y:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 200, 10, .55); }
.btn-o { border-color: var(--y); color: var(--y); }
.btn-o:hover { background: var(--y); color: var(--k); }
.btn-sm { padding: .6rem 1.1rem; font-size: .8rem; }
.btn-block { width: 100%; }
.i { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100% - 1180px) / 2));
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(10, 10, 10, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 8px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand img { height: 42px; width: auto; mix-blend-mode: lighten; }
.brand b { display: block; font-size: 1.35rem; font-weight: 900; letter-spacing: .02em; }
.brand small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--m); margin-top: 3px; }
.nav { display: flex; gap: 28px; font-weight: 700; font-size: .92rem; }
.nav a { position: relative; color: #d8d4cb; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--w); }
.nav a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 480px) {
  .top .btn-sm { width: 42px; height: 42px; padding: 0; }
  .top .btn-sm span { display: none; }
  .top .btn-sm .i { width: 22px; height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px; max-height: 1100px; display: flex; flex-direction: column;
  padding-top: 100px; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 58%, #121212 58% 70%, transparent 70%),
    var(--k);
}
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--y); z-index: 2; }
.hero-copy { display: grid; gap: 28px; align-items: end; position: relative; z-index: 1; }
@media (min-width: 1000px) { .hero-copy { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--y); margin-bottom: 18px; opacity: 0; animation: fade .8s .1s forwards; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 0 rgba(255, 200, 10, .6); animation: ping 2s infinite; }
.headline { font-weight: 900; font-stretch: 82%; text-transform: uppercase; font-size: clamp(2.7rem, 5.4vw, 5.4rem); line-height: .92; letter-spacing: -.01em; }
.headline .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.headline .ln > span { display: inline-block; transform: translateY(110%); animation: up .95s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
.headline .y { color: var(--y); }
.hero-copy .bar { display: block; height: 6px; width: min(520px, 100%); background: var(--y); margin-top: 22px; transform: scaleX(0); transform-origin: left; animation: grow 1s .8s var(--ease) forwards; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d8d4cb; max-width: 34ch; opacity: 0; animation: rise .9s .9s var(--ease) forwards; }
.lead b { color: var(--w); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; opacity: 0; animation: rise .9s 1.05s var(--ease) forwards; }

.scene-wrap { position: relative; flex: 1; min-height: 280px; margin-top: 8px; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 700px) {
  .hero { height: auto; min-height: 0; max-height: none; padding-top: 92px; }
  .hero-copy { gap: 18px; }
  .scene-wrap { flex: none; min-height: 0; aspect-ratio: 950 / 340; margin-top: 18px; }
  .lead { font-size: 1rem; }
  .ctas { margin-top: 16px; }
  .ctas .btn { flex: 1 1 auto; }
}
#scene text { font-family: 'Archivo', system-ui, sans-serif; font-weight: 900; }

/* ---------- Cintas ---------- */
.tapes { position: relative; height: 150px; overflow: hidden; margin-block: -20px; z-index: 3; }
.tape { position: absolute; left: -5%; width: 110%; overflow: hidden; font-weight: 900; font-stretch: 85%; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .06em; white-space: nowrap; }
.tape .track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.tape span { padding-right: .5em; }
.tape-a { top: 34px; background: var(--y); color: var(--k); transform: rotate(-2.5deg); padding: 12px 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.tape-b { top: 74px; background: #000; color: var(--y); transform: rotate(1.8deg); padding: 10px 0; border-block: 3px solid var(--y); }
.tape-b .track { animation-direction: reverse; animation-duration: 26s; }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(84px, 12vw, 150px); position: relative; }
.sec-dark { background: var(--k2); }
.two { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1.1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--y); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; }
.h2 { font-weight: 900; font-stretch: 85%; text-transform: uppercase; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: .95; margin-bottom: 26px; }
.p { color: #cfcbc2; font-size: 1.1rem; max-width: 52ch; margin-bottom: 14px; }
.p b { color: var(--w); }

/* Revelado al scrollear */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Quiénes somos ---------- */
.logo-fig { position: relative; width: min(440px, 100%); margin-inline: auto; aspect-ratio: 1; display: grid; place-items: center; }
.logo-fig img { width: 74%; height: auto; mix-blend-mode: lighten; position: relative; animation: float 5s ease-in-out infinite; }
.logo-fig .glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 10, .22), transparent 65%); filter: blur(10px); }
.logo-fig .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.values { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.values li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--y); border-radius: 12px; background: var(--k2); }
.values li:nth-child(2) { --rd: .08s; }
.values li:nth-child(3) { --rd: .16s; }
.plus { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--y); color: var(--k); display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; line-height: 1; }
.values b { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.values span { color: var(--m); }

/* ---------- Qué hacemos ---------- */
.cards { display: grid; gap: 20px; margin-top: 46px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--k); border: 1px solid var(--line); border-top: 5px solid var(--y); border-radius: 16px;
  padding: 26px 26px 30px; transition: transform .35s var(--ease), border-color .35s, opacity .8s var(--ease);
}
.card:nth-child(2) { --rd: .1s; }
.card:nth-child(3) { --rd: .2s; }
.card:hover { transform: translateY(-6px); border-color: #3a3a3a; }
.card h3 { font-weight: 900; font-stretch: 85%; text-transform: uppercase; font-size: 1.6rem; margin: 18px 0 8px; }
.card p { color: var(--m); }
.ic { width: 100%; height: 150px; background: #0d0d0d; border-radius: 10px; padding: 10px; }
.ic * { transform-box: fill-box; }
/* Contenedor: se abren las puertas */
.ic-cont .door { transition: transform 1s var(--ease) .35s; }
.ic-cont .dl { transform-origin: left center; }
.ic-cont .dr { transform-origin: right center; }
.card.in .ic-cont .dl, .card.in .ic-cont .dr { transform: scaleX(.12); }
.card:hover .ic-cont .dl, .card:hover .ic-cont .dr { transform: scaleX(.08); }
/* Camión: llega y frena */
.ic-truck .tk { transform: translateX(-120%); }
.card.in .ic-truck .tk { animation: drive 1.6s var(--ease) .3s forwards; }
.ic-truck .wh { transform-origin: center; }
.card.in .ic-truck .wh { animation: wheel 1.6s var(--ease) .3s; }
.card:hover .ic-truck .tk { animation: drive 1.6s var(--ease) forwards, idle .12s linear 1.6s infinite; }
/* Depósito: se acomodan las cajas */
.ic-dep .db { opacity: 0; }
.card.in .ic-dep .db { animation: stack 6s var(--ease) infinite; animation-delay: calc(var(--d) * .32s + .3s); }

/* ---------- Cómo trabajamos ---------- */
.route { position: relative; margin-top: 50px; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route-base { fill: none; stroke: #333; stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.route-fill { fill: none; stroke: var(--y); stroke-width: 4; stroke-linecap: round; }
.route-box text { font-family: 'Archivo', sans-serif; }
.steps { list-style: none; position: relative; display: grid; gap: clamp(46px, 8vw, 90px); padding-block: 20px; }
.step { position: relative; display: flex; gap: 22px; align-items: flex-start; padding-left: 64px; opacity: .35; transition: opacity .5s; }
.step.on { opacity: 1; }
.step .dot { position: absolute; left: 14px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--k); border: 3px solid #444; transition: background .4s, border-color .4s, box-shadow .4s; }
.step.on .dot { background: var(--y); border-color: var(--y); box-shadow: 0 0 0 8px rgba(255, 200, 10, .15); }
.step .n { display: block; font-weight: 900; color: var(--y); font-size: .9rem; letter-spacing: .2em; }
.step h3 { font-weight: 900; font-stretch: 85%; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1; margin: 6px 0 8px; }
.step p { color: var(--m); max-width: 38ch; }
@media (min-width: 900px) {
  .step { width: 50%; padding-left: 0; padding-right: 70px; justify-content: flex-end; text-align: right; }
  .step p { margin-left: auto; }
  .step .dot { left: auto; right: -11px; }
  .step:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 70px; justify-content: flex-start; text-align: left; }
  .step:nth-child(even) p { margin-left: 0; }
  .step:nth-child(even) .dot { right: auto; left: -11px; }
}

/* ---------- Contacto ---------- */
.contact { background: var(--y); color: var(--k); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background: repeating-linear-gradient(90deg, #000 0 60px, transparent 60px 120px);
}
.contact .wrap { position: relative; }
.eyebrow-k { color: var(--k); }
.contact .p { color: #2a2a2a; }
.phone { display: inline-block; margin-top: 18px; line-height: 1; transition: transform .3s var(--ease); }
.phone small { display: block; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; margin-bottom: 8px; }
.phone span { display: block; font-weight: 900; font-stretch: 82%; font-size: clamp(2.8rem, 8vw, 5.6rem); letter-spacing: -.01em; }
.phone:hover { transform: translateX(6px); }
.where { margin-top: 18px; font-weight: 700; }
.form { background: var(--k); color: var(--w); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); display: grid; gap: 16px; }
.form h3 { font-weight: 900; font-stretch: 85%; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.hint { color: var(--m); font-size: .95rem; margin-top: -8px; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; color: #d8d4cb; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 2px solid #333; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: var(--y); border-color: var(--y); color: var(--k); }
.chips input:focus-visible + span { outline: 3px solid var(--y); outline-offset: 2px; }
.row { display: grid; gap: 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 6px; }
.f > span { font-weight: 700; font-size: .9rem; color: #d8d4cb; }
.f input, .f textarea { width: 100%; background: var(--k3); border: 2px solid #2c2c2c; border-radius: 12px; padding: 12px 14px; resize: vertical; transition: border-color .2s; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--y); }
.f input::-webkit-calendar-picker-indicator { filter: invert(1); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 38px 0 calc(38px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; color: var(--m); font-size: .92rem; }
.foot a:hover { color: var(--y); }
.made { color: #6d6a64; }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--y); color: var(--k);
  display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .6);
  transform: scale(0); transition: transform .35s var(--ease);
}
.fab svg { width: 28px; height: 28px; }
.fab.show { transform: scale(1); }
.fab.show::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--y); animation: ring 2.4s infinite; }
.fab.hide-on-contact { transform: scale(0); }

/* ---------- Keyframes ---------- */
@keyframes up { to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 200, 10, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 200, 10, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drive { from { transform: translateX(-120%); } to { transform: none; } }
@keyframes wheel { from { transform: rotate(-720deg); } to { transform: none; } }
@keyframes idle { 0%, 100% { translate: 0 0; } 50% { translate: 0 .6px; } }
@keyframes stack {
  0% { opacity: 0; transform: translateY(-60px); }
  10% { opacity: 1; transform: translateY(3px); }
  14%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: none; }
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ic-dep .db { opacity: 1; }
}
