/* IMP Industrial Mobility Paz */

:root {
  --bg: #11161B;            /* negro grafito de marca */
  --bg-alt: #0C1014;
  --surface: #171D23;
  --surface-2: #1E252C;
  --line: #29313A;
  --orange: #FF7900;
  --orange-hover: #FF8F2B;
  --white: #FFFFFF;
  --text: #E8ECEF;
  --muted: #A3ADB6;         /* 7.6:1 sobre grafito */

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.91rem + 0.15vw, 1rem);
  --step-1: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --radius: 6px;
  --header-h: 80px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
.contact__list a, .site-footer__list a { text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.contact__list a:hover, .site-footer__list a:hover { color: #FF7900; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 1.5em; height: 1.5em; stroke-width: 1.6; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--orange); color: var(--bg); padding: .75rem 1rem; font-weight: 700; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* Tipografía */
.h2, .h3, .hero__title { font-family: var(--font-head); margin: 0; text-wrap: balance; color: var(--white); }
.h2 { font-size: var(--step-3); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; }
.h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
p { margin: 0; max-width: 66ch; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--orange); font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 4px;
  font-family: var(--font); font-weight: 600; font-size: var(--step-0); line-height: 1.1; text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .2s var(--ease-out); }
.btn:hover .icon:not(.icon--lg) { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: var(--bg); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--outline { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--lg { min-height: 52px; padding: .85rem 1.6rem; }
.btn--block { width: 100%; }

/* Cabecera: transparente sobre la portada, sólida al desplazarse */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.is-solid { background: rgba(12, 16, 20, .94); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: rgba(12, 16, 20, .8); backdrop-filter: blur(12px); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; flex: none; }
.brand img { width: 72px; }
.brand__name {
  padding-left: .85rem; border-left: 1px solid rgba(255, 255, 255, .5);
  font-family: var(--font-head); font-size: .625rem; font-weight: 600; line-height: 1.35;
  letter-spacing: .2em; text-transform: uppercase; color: var(--white);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .75rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--white); padding-block: .5rem;
}
@media (min-width: 1024px) { .nav { gap: clamp(1.5rem, 3vw, 3rem); } .nav__cta { display: none; } }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transition: transform .25s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__cta { min-height: 42px; padding: .55rem 1.1rem; font-size: var(--step--1); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 2;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: var(--white); content: "";
  transition: transform .25s var(--ease-out), background-color .2s;
}
.menu-toggle__bars { top: 23px; }
.menu-toggle__bars::before { left: 0; top: -8px; }
.menu-toggle__bars::after { left: 0; top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: var(--header-h) var(--gutter) 2rem;
    background: var(--bg-alt);
    visibility: hidden; opacity: 0;
    transition: opacity .25s var(--ease-out), visibility 0s .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav a:not(.btn) { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; padding-block: .9rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 2rem; min-height: 54px; font-size: var(--step-0); }
}

/* Portada */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 960px); display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 2rem) 9rem;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg-alt); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Escenas: fundido entre fotos con movimiento lento de cámara */
.scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s ease; }
.scene.is-active { opacity: 1; z-index: 1; }
.scene.is-leaving { opacity: 0; z-index: 2; }
.scene picture { display: block; width: 100%; height: 100%; }
.scene img { object-position: var(--op, 55% 60%); transform: scale(1); transform-origin: 50% 60%; will-change: transform; }
.scene.is-active img, .scene.is-leaving img { animation: camera 9s linear forwards; }
@keyframes camera {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(calc(var(--kx, 0) / 2), calc(var(--ky, 0) / 2)); }
}

/* Polvo a contraluz */
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; mix-blend-mode: screen; }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 13, 16, .82) 0%, rgba(10, 13, 16, .55) 32%, rgba(10, 13, 16, 0) 58%),
    linear-gradient(0deg, rgba(10, 13, 16, .85) 0%, rgba(10, 13, 16, 0) 32%),
    linear-gradient(180deg, rgba(10, 13, 16, .65) 0%, rgba(10, 13, 16, 0) 22%);
}

.hero__content { display: grid; gap: 1.6rem; justify-items: start; }
.hero__title {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); font-weight: 800; line-height: .98;
  letter-spacing: -0.005em; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; }
.hero__title .line--accent { color: var(--orange); }
.hero__lead {
  max-width: 34rem; font-size: clamp(.8125rem, .76rem + .25vw, .95rem); font-weight: 500; line-height: 1.75;
  letter-spacing: .2em; text-transform: uppercase; color: #E3E7EA;
}
.hero__lead::after { content: ""; display: block; width: 60px; height: 3px; margin-top: 1.4rem; background: var(--orange); }

/* Franja inferior: sectores, scroll y lema */
.hero__bottom {
  position: absolute; left: 0; right: 0; bottom: 2.25rem; z-index: 2;
  width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1.5rem;
}
.hero__sectors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; white-space: nowrap; }
.hero__sectors li + li { border-left: 1px solid rgba(255, 255, 255, .25); }
.hero__sectors a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .95rem;
  color: var(--white); text-decoration: none; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s;
}
.hero__sectors li:first-child a { padding-left: 0; }
.hero__sectors a:hover { color: var(--orange); }
.hero__sectors .icon { width: 1.9em; height: 1.9em; stroke-width: 1.4; }
.hero__scroll {
  display: grid; justify-items: center; gap: .45rem; color: var(--white); text-decoration: none;
  font-size: .625rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.hero__scroll-mouse { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.hero__scroll-mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px;
  background: currentColor; border-radius: 2px; animation: wheel 1.8s var(--ease-in-out) infinite;
}
.hero__scroll .icon { width: 14px; height: 14px; animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero__tagline { justify-self: end; display: grid; justify-items: end; gap: .9rem; text-align: right; }
.hero__tagline p {
  font-family: var(--font-head); font-size: .8125rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--white);
  max-width: none; line-height: 1.6;
}
.hero__tagline p::after { content: ""; display: block; width: 40px; height: 3px; margin: .7rem 0 0 auto; background: var(--orange); }

/* Barras de avance de escenas */
.reel-nav__bars { display: flex; gap: 6px; }
.reel-nav__bars span { width: 26px; height: 2px; background: rgba(255, 255, 255, .25); border-radius: 2px; overflow: hidden; }
.reel-nav__bars span::after { content: ""; display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.reel-nav__bars span.is-done::after { transform: scaleX(1); }
.reel-nav__bars span.is-current::after { animation: reel-progress var(--scene-ms, 7000ms) linear forwards; }
@keyframes reel-progress { to { transform: scaleX(1); } }

@media (max-width: 959px) {
  .hero { align-items: flex-end; padding-bottom: 7.5rem; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(10, 13, 16, .6) 0%, rgba(10, 13, 16, .05) 26%, rgba(10, 13, 16, .2) 46%, rgba(10, 13, 16, .92) 74%, var(--bg) 100%);
  }
  .scene img { object-position: var(--op-m, 60% 55%); }
  .hero__bottom { grid-template-columns: 1fr auto; bottom: 1.5rem; }
  .hero__scroll { display: none; }
  .hero__sectors a { padding: .3rem .7rem; font-size: .625rem; letter-spacing: .1em; }
  .hero__sectors .icon { width: 1.6em; height: 1.6em; }
  .hero__tagline p { font-size: .6875rem; }
}
/* Celular y tablet vertical: la foto se muestra completa, sin recortes ni zoom */
@media (max-width: 959px) {
  .hero { display: block; min-height: 0; padding: var(--header-h) 0 0; }
  .hero::before { display: none; }
  .hero__media { position: relative; inset: auto; z-index: 0; width: 100%; aspect-ratio: 16 / 9; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background: linear-gradient(180deg, rgba(17, 22, 27, 0) 72%, var(--bg) 100%);
  }
  .scene img, .scene.is-active img, .scene.is-leaving img { object-position: 50% 50%; transform: none; animation: none; }
  .hero__content { padding-top: 1.5rem; }
  .hero__bottom { position: static; padding-block: 1.75rem 2.25rem; }
}
@media (max-width: 559px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__tagline { display: none; }
  .hero__sectors { justify-content: space-between; width: 100%; }
  .hero__sectors li + li { border-left: 0; }
  .hero__sectors a { flex-direction: column; gap: .35rem; padding: 0; }
}

/* Secuencia de carga */
.js .hero__media { opacity: 0; transition: opacity 1s ease; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform .85s var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.js .hero__lead, .js .hero__bottom { opacity: 0; transition: opacity .8s ease; }
.js .hero__lead { transition-delay: .45s; }
.js .hero__bottom { transition-delay: .9s; }
.is-loaded .hero__media, .is-loaded .hero__lead, .is-loaded .hero__bottom { opacity: 1; }
.is-loaded .hero__title .line > span { transform: none; }

/* Secciones */
.section { --sb: var(--bg); padding-block: var(--section); position: relative; border-top: 1px solid var(--line); background: var(--sb); }
.section--alt { --sb: var(--bg-alt); }
.section__head { display: grid; gap: 1rem; justify-items: start; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__intro { font-size: var(--step-0); line-height: 1.65; color: var(--muted); max-width: 58ch; }

/* Reserva */
.booking { position: relative; z-index: 3; padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.booking__card {
  display: grid; gap: 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--orange); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.booking__intro { display: grid; gap: .5rem; justify-items: start; }
.booking__title { margin: 0; font-family: var(--font-head); font-size: var(--step-2); font-weight: 700; color: var(--white); }
.booking__form { display: grid; gap: 1rem; align-items: end; }
@media (min-width: 640px) { .booking__form { grid-template-columns: 1fr 1fr; } .booking__submit { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .booking__card { grid-template-columns: 17rem 1fr; align-items: end; gap: 2.5rem; }
  .booking__title { font-size: var(--step-1); }
  .booking__form { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .booking__submit { grid-column: auto; }
}

/* Campos de formulario */
.field label { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; color: var(--white);
  font-size: 1rem; /* evita el zoom automático en iOS */
  color-scheme: dark;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3B4550; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 121, 0, .25); }
.field input::placeholder, .field textarea::placeholder { color: #6F7A84; }
.field.is-invalid input { border-color: #FF6B4A; }
.field.is-invalid label::after { content: " (requerido)"; color: #FF8F73; font-weight: 600; }
.field.is-invalid label[data-error]::after { content: " (" attr(data-error) ")"; }
.field.is-invalid label .optional { display: none; }
.optional { color: #7D8892; }

/* Vehículos: carrusel con el vehículo destacado al centro */
.fleet { border-top: 0; }
.carousel { position: relative; margin-top: 1rem; }
.carousel__viewport { overflow: hidden; padding-block: 1rem 0; touch-action: pan-y; }
.carousel__track { list-style: none; margin: 0; padding: 0; display: grid; }
.slide {
  grid-area: 1 / 1; justify-self: center;
  width: min(62%, 720px);
  --pos: 0;
  transform: translateX(calc(var(--pos) * 82%)) scale(.72);
  opacity: .35; filter: grayscale(1) brightness(.7);
  transition: transform .7s var(--ease-out), opacity .5s ease, filter .5s ease;
  cursor: pointer;
}
.slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; border-radius: var(--radius); }
.slide.is-active { transform: none; opacity: 1; filter: none; z-index: 2; cursor: default; }
.slide.is-active img { box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.slide.is-far { opacity: 0; pointer-events: none; }
.slide__info {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-top: 1.4rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease .15s, transform .4s var(--ease-out) .15s;
}
.slide.is-active .slide__info { opacity: 1; transform: none; }
.slide__name { margin: 0; font-family: var(--font-head); font-size: var(--step-2); font-weight: 700; color: var(--white); }
.slide__meta { color: var(--muted); font-size: var(--step--1); margin-top: .2rem; }
.slide__link {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  color: var(--orange); font-weight: 600; font-size: var(--step--1); text-decoration: none;
}
.slide__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.carousel__btn {
  position: absolute; top: calc(1rem + var(--img-h, 300px) / 2); z-index: 3;
  width: 56px; height: 56px; margin-top: -28px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(23, 29, 35, .85); color: var(--white); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
@supports (backdrop-filter: blur(1px)) { .carousel__btn { backdrop-filter: blur(8px); } }
.carousel__btn:hover { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.carousel__btn--prev { left: max(0px, calc(19% - 28px)); }
.carousel__btn--next { right: max(0px, calc(19% - 28px)); }
.carousel__dots { display: flex; justify-content: center; gap: .35rem; margin-top: 1.75rem; }
.carousel__dots button { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel__dots button::before {
  content: ""; width: 8px; height: 3px; border-radius: 2px; background: #3A444E;
  transition: width .35s var(--ease-out), background-color .35s;
}
.carousel__dots button[aria-current="true"]::before { width: 28px; background: var(--orange); }
.fleet__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2rem; }
@media (max-width: 759px) {
  .slide { width: 84%; transform: translateX(calc(var(--pos) * 96%)) scale(.86); }
  .slide__info { flex-direction: column; align-items: flex-start; }
  .carousel__btn { width: 44px; height: 44px; margin-top: -22px; font-size: 1rem; }
  .carousel__btn--prev { left: -.25rem; }
  .carousel__btn--next { right: -.25rem; }
}

/* Modalidades de servicio */
.services { overflow: hidden; isolation: isolate; }
.services__bg { position: absolute; inset: 0 0 0 auto; width: min(58%, 900px); z-index: -2; }
.services__bg img { width: 100%; height: 100%; object-fit: cover; }
.services::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--sb) 42%, color-mix(in srgb, var(--sb) 70%, transparent) 70%, color-mix(in srgb, var(--sb) 35%, transparent) 100%);
}
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; max-width: 820px; }
.feature { display: grid; gap: .75rem; justify-items: start; align-content: start; }
.feature p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .feature { padding-right: 1.75rem; }
  .feature + .feature { padding-left: 1.75rem; border-left: 1px solid var(--line); }
}
@media (max-width: 959px) {
  .services__bg { width: 100%; opacity: .35; }
  .services::before { background: linear-gradient(180deg, color-mix(in srgb, var(--sb) 85%, transparent), var(--sb)); }
}
.icon-ring {
  width: 56px; height: 56px; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--orange); border-radius: 50%; color: var(--orange);
}
.icon-ring--sm { width: 44px; height: 44px; }

/* Nosotros */
.about__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; } }
.about__body { display: grid; gap: 1.1rem; justify-items: start; }
.about__facts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.25rem 2rem; width: 100%; }
@media (min-width: 560px) { .about__facts { grid-template-columns: 1fr 1fr; } }
.about__facts li { display: flex; align-items: center; gap: 1rem; font-size: var(--step--1); font-weight: 500; color: var(--text); }
.about__media { position: relative; overflow: hidden; }
.about__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.about__media::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 24%; aspect-ratio: 1 / 1.3;
  background: var(--orange); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
@media (max-width: 959px) { .about__media img { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); } }

/* Sectores */
.sectors__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .sectors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sectors__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sector {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.sector:hover { border-color: rgba(255, 121, 0, .55); transform: translateY(-4px); }
.sector__media { overflow: hidden; }
.sector__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease-out); }
.sector:hover .sector__media img { transform: scale(1.05); }
.sector__body { position: relative; padding: 2.25rem 1.4rem 1.6rem; display: grid; gap: .5rem; }
.sector__icon { position: absolute; top: -28px; left: 1.4rem; background: var(--sb); }
.sector__body p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }

/* Proyectos */
.projects { overflow: hidden; isolation: isolate; }
.projects__bg { position: absolute; inset: 0; z-index: -2; }
.projects__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; filter: grayscale(.4); }
.projects::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--sb) 30%, color-mix(in srgb, var(--sb) 75%, transparent) 100%);
}
.steps { list-style: none; counter-reset: step; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.5rem;
  background: rgba(23, 29, 35, .9); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.4rem; top: 1.3rem;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--orange); color: var(--orange); font-family: var(--font-head); font-weight: 700;
}
.steps p { color: var(--muted); font-size: var(--step--1); margin-top: .35rem; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { padding: 4.25rem 1.4rem 1.6rem; }
}

/* Contacto */
.contact { overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0 0 0 auto; width: 38%; z-index: -2; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--sb) 62%, color-mix(in srgb, var(--sb) 40%, transparent) 100%);
}
@media (max-width: 959px) { .contact__bg { display: none; } }
.contact__grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: .8fr 1.3fr; gap: 4rem; align-items: start; } }
.contact__intro { display: grid; gap: 1rem; justify-items: start; }
.contact__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list .icon { color: var(--white); margin-top: .15rem; }
.contact__list span { display: block; font-size: var(--step--1); color: var(--muted); }
.contact__list strong { font-weight: 600; color: var(--white); }

.form {
  background: rgba(23, 29, 35, .96); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem;
}
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__error { color: #FF8F73; font-weight: 600; font-size: var(--step--1); }
.form__note { font-size: var(--step--1); color: var(--muted); text-align: center; margin-inline: auto; }

/* Preguntas */
.faq__grid { display: grid; gap: 1rem; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.75rem 1.2rem 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: var(--step-0); color: var(--white); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 14px; height: 2px; background: var(--orange);
  transition: transform .25s var(--ease-out);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq summary:hover { color: var(--orange); }
.faq details p { padding: 0 0 1.4rem; color: var(--muted); }

/* Pie */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: clamp(3rem, 7vw, 4.5rem) 0 1.75rem; }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }
.site-footer__brand { display: grid; gap: 1.25rem; justify-items: start; }
.site-footer p { color: var(--muted); font-size: var(--step--1); max-width: 38ch; }
.site-footer__title { margin: 0 0 1rem; font-family: var(--font-head); font-size: var(--step-0); font-weight: 600; color: var(--white); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; color: var(--muted); font-size: var(--step--1); }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { color: var(--orange); }
.site-footer__list--icons li { display: flex; align-items: center; gap: .6rem; }
.site-footer__list--icons .icon { color: var(--orange); }
.site-footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; color: #7D8892; max-width: none; }

/* Botón flotante */
.float-cta {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.2rem;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 600; font-size: var(--step--1);
  border-radius: 999px; box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
  transition: transform .25s var(--ease-out), background-color .18s;
}
.float-cta:hover { background: #1EBE5A; transform: translateY(-2px); }
.float-cta { width: 60px; height: 60px; padding: 0; justify-content: center; }
.float-cta span { display: none; }
.float-cta .icon { width: 32px; height: 32px; }
@media (max-width: 479px) {
  .float-cta { width: 56px; height: 56px; }
  .float-cta .icon { width: 30px; height: 30px; }
}


/* ===== Animaciones ===== */

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--orange), #FFB066);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* Brillo que cruza los botones principales al pasar el ratón */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }

/* La línea de las etiquetas crece al aparecer la sección */
.js .reveal .eyebrow::before, .js .eyebrow.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out) .25s; }
.js .reveal.is-in .eyebrow::before, .js .eyebrow.reveal.is-in::before { transform: none; }

/* Elementos que entran en cascada */
.js .stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.reveal { opacity: 1; transform: none; }

/* Foto de Nosotros: se descubre en diagonal y la cuña naranja entra después */
.js .about__media.reveal { opacity: 1; transform: none; }
.js .about__media.reveal img { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transition: clip-path 1.2s var(--ease-in-out); }
.js .about__media.reveal.is-in img { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.js .about__media.reveal::after { transform: translate(40%, 40%); opacity: 0; transition: transform .8s var(--ease-out) .9s, opacity .4s ease .9s; }
.js .about__media.reveal.is-in::after { transform: none; opacity: 1; }
@media (max-width: 959px) { .js .about__media.reveal.is-in img { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); } }

/* Las fotos de fondo se desplazan más lento que la página */
[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.15); }

/* Íconos: el círculo se dibuja al aparecer */
.icon-ring { position: relative; transition: background-color .3s, color .3s; }
.feature:hover .icon-ring, .about__facts li:hover .icon-ring, .sector:hover .icon-ring { background: var(--orange); color: var(--bg); }

/* Tarjetas de proyecto: línea naranja que crece al pasar el ratón */
.steps li { overflow: hidden; transition: border-color .3s; }
.steps li::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.steps li:hover { border-color: rgba(255, 121, 0, .4); }
.steps li:hover::after { transform: none; }

/* Luz suave que sigue al cursor en las tarjetas de sectores */
.sector::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 121, 0, .14), transparent 60%);
  transition: opacity .3s;
}
.sector:hover::before { opacity: 1; }

/* Aparición suave al desplazarse */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .booking .reveal { transform: translateY(16px); }

/* Celular: toques cómodos, textos legibles y menos trabajo para el procesador */
a, button, summary, select, input, label { -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }
@media (max-width: 759px) {
  /* la cabecera sin desenfoque de fondo: es costoso en celulares modestos */
  .site-header.is-solid { background: rgba(12, 16, 20, .97); backdrop-filter: none; }
  .brand__name { font-size: .6875rem; }
  .hero__sectors a { min-height: 48px; font-size: .6875rem; justify-content: center; }
  .slide__link { min-height: 44px; padding-block: .6rem; }
  .carousel__dots button { width: 44px; height: 44px; }
  .site-footer__list a { display: inline-block; padding-block: .75rem; }
  .site-footer__list { gap: .1rem; }
  .faq summary { min-height: 52px; }
  .float-cta { bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .section { padding-block: clamp(3.25rem, 12vw, 4.5rem); }
}

/* Movimiento reducido: estado final inmediato */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js .hero__media, .js .hero__bottom, .js .hero__title .line > span,
  .js .hero__lead, .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
  .js .about__media.reveal img { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  .js .reveal .eyebrow::before, .js .about__media.reveal::after { transform: none; opacity: 1; }
  [data-parallax] { transform: none; }
  .reel-nav__bars, .hero__dust { display: none; }
  .scroll-progress { display: none; }
}
