/* =========================================================
   Home. Mobile-first: lo base es móvil, @media (min-width) amplía.
   Estados iniciales de animación solo con .js; .no-anim los anula.
   ========================================================= */

/* ---------- Texto partido en palabras (data-split) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
.w__i { display: inline-block; will-change: transform; }
.js [data-split]:not(.is-split) { visibility: hidden; }
.js .w__i { transform: translateY(118%); }
.no-anim [data-split]:not(.is-split) { visibility: visible; }
.no-anim .w__i { transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) 0 70px; overflow: hidden; isolation: isolate; background: var(--black);
}
.hero__glow { position: absolute; width: 80vmax; height: 80vmax; right: -20vmax; top: 50%; transform: translateY(-50%); z-index: -3; pointer-events: none; background: radial-gradient(closest-side, rgba(217, 172, 63, .2), transparent 70%); }
/* Alas del escudo: formas angulares que dan profundidad (parallax). */
.hero__shapes { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__wing { position: absolute; display: block; background: linear-gradient(135deg, rgba(244, 220, 143, .2), rgba(138, 100, 16, .04)); }
.hero__wing--a { width: 70vw; height: 22vw; right: -14vw; top: 16%; clip-path: polygon(0 100%, 100% 0, 100% 40%, 18% 100%); }
.hero__wing--b { width: 56vw; height: 16vw; right: -10vw; top: 34%; clip-path: polygon(0 100%, 100% 0, 100% 44%, 20% 100%); opacity: .8; }

.hero__grid { display: grid; gap: 20px; align-items: center; }
.hero__emblem { order: -1; position: relative; width: min(58vw, 280px); margin-inline: auto; aspect-ratio: 663 / 729; }
.hero__stage { position: absolute; inset: 0; }
.hero__logo { width: 100%; height: auto; filter: drop-shadow(0 24px 50px rgba(217, 172, 63, .4)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero__copy .eyebrow { margin-bottom: 18px; }
.hero__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: .9; font-size: clamp(2.9rem, 13.4vw, 7rem); letter-spacing: -.005em; }
.hero__line { display: block; }
.hero__line--accent { color: transparent; -webkit-text-stroke: 1.5px var(--gold-solid); }
.hero__line--accent .w__i { -webkit-text-stroke: inherit; }
.hero__lead { color: var(--muted); font-size: clamp(1.02rem, 2.7vw, 1.22rem); max-width: 52ch; margin-top: 26px; }
.hero__actions { display: grid; gap: 14px; margin-top: 32px; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; margin-top: 52px; }
.hero__stats dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1; color: var(--gold-solid); }
.hero__stats dd { margin: 6px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.35; max-width: 22ch; }
/* Franja de carretera animada */
.hero__road { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: #1a160d; overflow: hidden; }
.hero__road::before { content: ''; position: absolute; inset: 4px 0; background: repeating-linear-gradient(90deg, var(--gold-solid) 0 44px, transparent 44px 96px); animation: road 2.4s linear infinite; }
@keyframes road { to { transform: translateX(96px); } }
.js [data-hero-in] { opacity: 0; transform: translateY(26px); }
.no-anim [data-hero-in] { opacity: 1 !important; transform: none !important; }

@media (min-width: 560px) { .hero__actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .hero { padding-bottom: 96px; }
  .hero__grid { grid-template-columns: 1.25fr .75fr; gap: 0; }
  .hero__emblem { order: 0; width: min(46vw, 640px); margin-right: -8vw; justify-self: end; }
  .hero__line--accent { -webkit-text-stroke-width: 2px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
}

/* ---------- Quiénes somos ---------- */
.about__grid { display: grid; gap: 52px; align-items: center; }
.about__photo { position: relative; margin: 0; width: min(100%, 440px); margin-inline: auto; }
.about__photo::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; background: var(--gold-solid); clip-path: var(--chamfer); z-index: -1; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: var(--chamfer); --cut: 34px; }
.about__badge { position: absolute; left: -10px; bottom: 28px; padding: 10px 20px; background: var(--black); color: var(--gold-solid); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .08em; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.js .about__photo { clip-path: inset(-30px 100% -30px -30px); }
.no-anim .about__photo { clip-path: none !important; }
.about__values { display: grid; gap: 28px; margin-top: 40px; }
.about__values h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--gold-solid); }
.about__values p { color: var(--muted); margin-top: 6px; }
[data-scrub-text] .sw { opacity: .2; }
.no-anim [data-scrub-text] .sw { opacity: 1 !important; }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: .8fr 1.2fr; gap: 100px; }
  .about__photo { margin-inline: 0; }
  .about__values { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- Servicios ---------- */
.services__note { margin-top: 48px; }

/* ---------- Proceso (sección en dorado sólido) ---------- */
.process { background: var(--gold-solid); color: #140f03; }
.process .eyebrow { color: #5a430b; }
.process .section__title { color: #140f03; }
.steps { position: relative; display: grid; gap: 34px; --p: 0; }
.steps__rail { position: absolute; left: 18px; top: 10px; bottom: 10px; width: 0; border-left: 4px dashed rgba(20, 15, 3, .3); }
.steps__fill { position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; background: #140f03; transform-origin: top; transform: scaleY(var(--p)); margin-left: 0; }
.steps__item { position: relative; padding-left: 64px; opacity: .55; transition: opacity .5s var(--ease); }
.steps__item.is-active { opacity: 1; }
.steps__n { position: absolute; left: 0; top: -4px; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px #140f03; transition: color .5s; background: var(--gold-solid); padding-right: 6px; }
.steps__item.is-active .steps__n { color: #140f03; }
.steps__title { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; padding-top: 4px; }
.steps__text { margin-top: 8px; max-width: 34ch; color: #2b2210; font-size: 1.05rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; padding-top: 10px; }
  .steps__rail { left: 0; right: 0; top: 28px; bottom: auto; height: 0; width: auto; border-left: 0; border-top: 4px dashed rgba(20, 15, 3, .3); }
  .steps__fill { left: 0; right: 0; top: -4px; bottom: auto; width: auto; height: 4px; transform-origin: left; transform: scaleX(var(--p)); }
  .steps__item { padding: 0; margin-top: 0; padding-top: 0; }
  .steps__n { position: relative; display: block; left: 0; top: 0; font-size: clamp(6rem, 11vw, 9.5rem); margin-bottom: 4px; padding: 0 12px 0 0; width: max-content; -webkit-text-stroke-width: 2.5px; }
  .steps__item:nth-of-type(2) { margin-top: 36px; }
  .steps__item:nth-of-type(3) { margin-top: 72px; }
  .steps__item:nth-of-type(4) { margin-top: 108px; }
}

/* ---------- Reporte ---------- */
.report__grid { display: grid; gap: 56px; align-items: center; }
.ticks { display: grid; gap: 12px; margin-top: 30px; }
.ticks li { position: relative; padding-left: 28px; font-size: 1.08rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--gold-solid); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.report__stage { position: relative; display: grid; place-items: center; padding: 30px 0; }
.report__stage::before { content: ''; position: absolute; width: min(86%, 420px); aspect-ratio: 1; background: var(--gold-solid); clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%); transform: rotate(-6deg); }
.phone { position: relative; width: min(100%, 320px); border-radius: 34px; padding: 12px; background: #0b0a07; border: 2px solid #000; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); transform: rotate(3deg); }
.phone__bar { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; border-radius: 24px 24px 0 0; background: #17140d; }
.phone__bar img { width: 32px; height: auto; }
.phone__bar strong { display: block; font-size: .95rem; }
.phone__bar small { color: var(--ok); font-size: .75rem; }
.phone__chat { display: grid; gap: 10px; padding: 18px 12px; min-height: 290px; align-content: start; background: #0f0d09; }
.bubble { position: relative; max-width: 88%; padding: 9px 12px 20px; border-radius: 12px; font-size: .9rem; line-height: 1.4; }
.bubble time { position: absolute; right: 10px; bottom: 4px; font-size: .64rem; color: var(--muted); }
.bubble--in { background: #211d13; border-top-left-radius: 3px; justify-self: start; }
.bubble--out { background: #43340f; border-top-right-radius: 3px; justify-self: end; }
.js .bubble { opacity: 0; transform: translateY(14px) scale(.96); }
.no-anim .bubble { opacity: 1 !important; transform: none !important; }
.phone__caption { text-align: center; font-size: .72rem; color: var(--muted); padding: 10px 10px 4px; }
@media (min-width: 960px) { .report__grid { grid-template-columns: 1.1fr .9fr; gap: 90px; } }

/* ---------- Con quién trabajamos ---------- */
.who { display: grid; gap: 0; }
.who__item { position: relative; padding: 30px 0 32px; border-top: 1px solid var(--line); transition: padding .5s var(--ease); }
.who__item::after { content: ''; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--gold-solid); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.who__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; transition: color .3s, transform .5s var(--ease); }
.who__text { color: var(--muted); margin-top: 10px; max-width: 46ch; font-size: 1.05rem; }
@media (hover: hover) {
  .who__item:hover::after { transform: scaleX(1); }
  .who__item:hover .who__name { color: var(--gold-solid); transform: translateX(10px); }
}
@media (min-width: 900px) { .who { grid-template-columns: 1fr 1fr; column-gap: 70px; } }

/* ---------- Galería ---------- */
.gallery { padding-block: 70px 24px; overflow: hidden; }
.gallery__head { margin-bottom: 30px; max-width: 800px; }
.gallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; gap: 18px; padding: 0 20px 8px; width: max-content; align-items: flex-start; }
.shot { margin: 0; flex: none; width: 78vw; max-width: 340px; scroll-snap-align: center; }
.shot__frame { --cut: 30px; overflow: hidden; aspect-ratio: 4 / 5; clip-path: var(--chamfer); background: var(--panel); }
.shot__frame img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 1rem; max-width: 30ch; }
.shot--end { display: grid; align-content: center; justify-items: start; gap: 16px; align-self: stretch; padding: 30px; background: var(--gold-solid); color: #140f03; clip-path: var(--chamfer); --cut: 30px; aspect-ratio: 4 / 5; }
.shot--end img { width: 70px; height: auto; }
.shot--end p { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: .95; text-transform: uppercase; }
@media (min-width: 960px) {
  .gallery { padding-block: 0; --h: clamp(270px, calc(100vh - 320px), 500px); }
  .gallery__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-top: calc(var(--header-h) + 8px); }
  .gallery__head { margin-bottom: 0; }
  .gallery__head .section__title { font-size: clamp(2rem, 4.2vw, 3.4rem); }
  .gallery__viewport { overflow: visible; scroll-snap-type: none; }
  .gallery__track { gap: 44px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); align-items: flex-start; }
  /* Todas las fotos del mismo alto y ancho. */
  .shot { width: calc(var(--h) * .8); max-width: none; scroll-snap-align: none; }
  .shot__frame { height: var(--h); aspect-ratio: auto; }
  .shot--end { width: calc(var(--h) * .8); height: var(--h); aspect-ratio: auto; align-self: flex-start; padding: 22px; gap: 12px; }
  .shot--end p { font-size: clamp(1.5rem, calc(var(--h) * .075), 2.4rem); overflow-wrap: anywhere; }
}

/* ---------- Cobertura: ruta ---------- */
.coverage__grid { display: grid; gap: 40px; align-items: center; }
.route { margin: 0; }
.route svg { width: 100%; height: auto; overflow: visible; }
.route__base { fill: none; stroke: #3a3322; stroke-width: 6; stroke-dasharray: 16 14; stroke-linecap: butt; }
.route__draw { fill: none; stroke: var(--gold-solid); stroke-width: 6; stroke-linecap: round; }
.route__stop { opacity: .3; transition: opacity .5s; }
.route__stop.is-on { opacity: 1; }
.no-anim .route__stop { opacity: 1; }
.route__stop circle { fill: var(--black); stroke: var(--gold-solid); stroke-width: 5; }
.route__stop--main circle { fill: var(--gold-solid); }
.route__stop text { fill: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: .02em; }
.route__moto circle { fill: var(--gold-hi); stroke: var(--black); stroke-width: 4; }
.route__moto path { fill: #140f03; }
@media (min-width: 960px) { .coverage__grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }

/* ---------- Por qué ---------- */
.why__grid { display: grid; gap: 0; }
.why__item { padding: 30px 0 34px; border-top: 1px solid var(--line); }
.why__item h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--gold-solid); }
.why__item p { color: var(--muted); margin-top: 10px; max-width: 36ch; font-size: 1.05rem; }
@media (min-width: 760px) { .why__grid { grid-template-columns: 1fr 1fr; column-gap: 70px; } }
@media (min-width: 1100px) { .why__grid { grid-template-columns: repeat(4, 1fr); column-gap: 40px; } }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; gap: 48px; align-items: start; }
.contact__phone { display: inline-block; margin-top: 30px; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 12.5vw, 6.8rem); line-height: .92; color: var(--gold-solid); }
.contact__phone:hover { color: var(--gold-hi); }
.contact__list { display: grid; gap: 12px; margin-top: 22px; }
.contact__list li > a, .contact__list li > span { display: inline-flex; align-items: center; gap: 12px; color: var(--text); word-break: break-word; }
.contact__list .icon { color: var(--gold); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1.1fr .9fr; gap: 90px; } }
