/* ==========================================================================
   Henry Pellan Reyes · Automatización de Elevadores Industriales  (v2)
   Mobile-first con 3 puntos de ruptura:
     MÓVIL   < 768px
     TABLET  768px – 1023px   (@media min-width: 768px)
     DESKTOP ≥ 1024px         (@media min-width: 1024px)
   Orden: tokens → base → componentes → secciones → efectos → breakpoints → movimiento
   ========================================================================== */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #0b0f14;
  --surface: #131a23;
  --surface-2: #1a2330;
  --orange: #f57c1f;
  --orange-2: #ff9a3c;
  --steel: #3ba3ff;
  --text: #f2f4f7;
  --muted: #9aa4b2;
  --line: rgba(59, 163, 255, 0.18);
  --line-strong: rgba(59, 163, 255, 0.4);

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bevel: 16px;
  --header-h: 64px;
  --gutter: 16px;
  --maxw: 1200px;
  --space-section: clamp(56px, 8vw, 104px);
  --skew: clamp(14px, 3vw, 44px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 76px; /* espacio para la barra fija de WhatsApp (móvil y tablet) */
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--orange);
  color: #0b0f14;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Botones ---------- */
.btn {
  --tx: 0px;
  --ty: 0px;
  --lift: 0px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transform: translate(var(--tx), calc(var(--ty) + var(--lift)));
  transition: transform 0.18s ease-out, background-color 0.18s ease, border-color 0.18s ease,
    filter 0.18s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* Brillo que barre el botón */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #0b0f14; /* contraste AA sobre naranja */
}

.btn--ghost {
  background: rgba(59, 163, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost::after {
  opacity: 0.25;
}

.btn--lg {
  min-height: 60px;
  padding: 16px 34px;
  font-size: 1.1rem;
}

.btn--lg.btn--primary::after {
  animation: shine 6s ease-in-out 2s infinite;
}

@media (hover: hover) {
  .btn:hover {
    --lift: -2px;
  }

  .btn--primary:hover {
    filter: brightness(1.08);
  }

  .btn--ghost:hover {
    background: rgba(59, 163, 255, 0.14);
    border-color: var(--steel);
  }

  .btn:hover::after {
    transform: translateX(130%);
    transition: transform 0.7s ease;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

/* El desenfoque va en un pseudo-elemento: backdrop-filter en el propio header
   atraparía el menú fixed dentro de su caja. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 15, 20, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled::before {
  background: rgba(11, 15, 20, 0.97);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2), var(--steel));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .progress {
    animation: grow linear both;
    animation-timeline: scroll(root block);
  }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__tag {
  font-size: 0.68rem;
  color: var(--orange-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-block: 8px;
}

.nav a {
  display: inline-block;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--text);
}

.nav .nav__cta {
  display: none;
}

.header-cta {
  display: none;
}

.cta-long {
  display: none;
}

/* Menú en overlay (móvil y tablet; sin JS el menú queda visible en una fila) */
@media (max-width: 1023px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 4;
    width: 100%;
  }

  .js .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .js .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: radial-gradient(70% 50% at 50% 0%, rgba(245, 124, 31, 0.14), transparent 70%),
      rgba(11, 15, 20, 0.985);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .js .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 6vw, 2rem);
    font-weight: 800;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out), color 0.15s;
  }

  .js .nav.is-open a {
    opacity: 1;
    transform: none;
  }

  .js .nav.is-open a:nth-child(1) { transition-delay: 0.04s; }
  .js .nav.is-open a:nth-child(2) { transition-delay: 0.1s; }
  .js .nav.is-open a:nth-child(3) { transition-delay: 0.16s; }
  .js .nav.is-open a:nth-child(4) { transition-delay: 0.22s; }
  .js .nav.is-open a:nth-child(5) { transition-delay: 0.28s; }
  .js .nav.is-open a:nth-child(6) { transition-delay: 0.34s; }

  .js .nav .nav__cta {
    display: inline-flex;
    align-self: stretch;
    margin-top: 28px;
    border-bottom: 0;
    font-size: 1.05rem;
    color: #0b0f14;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 32px 56px;
  background: linear-gradient(180deg, transparent calc(100% - 140px), var(--bg)),
    radial-gradient(60% 55% at 78% 18%, rgba(59, 163, 255, 0.14), transparent 70%),
    radial-gradient(45% 40% at 10% 90%, rgba(245, 124, 31, 0.1), transparent 70%), var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  opacity: 0.55;
  pointer-events: none;
}

/* Resplandor que sigue al cursor */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 30%), rgba(59, 163, 255, 0.13), transparent 60%);
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.circuits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.circuits .trace {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.35;
}

.circuits .pulse {
  fill: none;
  stroke: var(--steel);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 70 930;
  stroke-dashoffset: 1000;
  animation: travel 5s linear infinite;
}

.circuits .pulse--orange {
  stroke: var(--orange-2);
  animation-duration: 6.5s;
  animation-delay: -2s;
}

.circuits .pulse--b {
  animation-delay: -1.6s;
}

.circuits .pulse--c {
  animation-delay: -3.2s;
}

.circuits circle {
  fill: var(--steel);
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero__grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--steel);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--steel);
}

.hero h1 {
  font-size: clamp(1.5rem, 7.2vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.h1-o,
.h1-w {
  display: block; /* tres líneas, como en la tarjeta de presentación */
}

.h1-o {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orange);
}

.h1-w {
  color: #fff;
}

.h1-loc {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(0.95rem, 3.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Titular letra por letra (el JS divide el texto; sin JS queda estático) */
.hero h1.is-split .word {
  display: inline-block;
  white-space: nowrap;
}

.hero h1.is-split .ch {
  display: inline-block;
  opacity: 0.12;
  transform: translateY(0.45em) scale(0.9);
  animation: ch-in 0.6s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 16ms + 80ms);
}

/* El degradado vive en cada letra: background-clip:text no pinta bien
   descendientes con transform propio. */
.hero h1.is-split .h1-o {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero h1.is-split .h1-o .ch {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 56ch;
  margin-top: 22px;
  color: #c9d1db;
  font-size: 1.05rem;
}

.hero__lead strong {
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.pills li {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(59, 163, 255, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pills li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: var(--orange);
  vertical-align: 1px;
}

/* Columna del video */
.hero__media {
  position: relative;
  display: grid;
  justify-items: center;
}

/* Elevador animado como capa de profundidad detrás del video */
.hero__shaft {
  display: none;
  position: absolute;
  inset: -4% -16%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.hero__shaft .hero-art {
  width: 100%;
  height: 100%;
}

.hero__shaft svg {
  width: 100%;
  height: 100%;
}

.hero-art .cab {
  animation: lift 8s ease-in-out infinite;
}

.hero-art .gear-l {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 14s linear infinite;
}

.hero-art .gear-r {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 14s linear infinite reverse;
}

.hero-art .arrow {
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-art .arrow--2 {
  animation-delay: 1.2s;
}

/* Reel de video */
.reel {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  z-index: 1;
  width: min(78vw, 320px);
  margin: 0;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.2s ease-out;
  animation: reel-in 0.9s var(--ease-out) 0.15s both;
}

.reel::before {
  content: "";
  position: absolute;
  inset: -14% -22%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 124, 31, 0.28), transparent 70%),
    radial-gradient(closest-side at 80% 20%, rgba(59, 163, 255, 0.3), transparent 70%);
  pointer-events: none;
}

.reel__frame {
  position: relative;
  padding: 3px;
  border-radius: 24px;
  background: conic-gradient(
    from var(--angle),
    rgba(59, 163, 255, 0) 0deg,
    rgba(59, 163, 255, 0.2) 110deg,
    var(--steel) 200deg,
    var(--orange) 280deg,
    rgba(245, 124, 31, 0) 345deg
  );
  box-shadow: 0 0 0 1px rgba(59, 163, 255, 0.28), 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: angle 6s linear infinite;
}

.reel__wrap {
  position: relative;
  overflow: hidden;
  border-radius: 21px;
  background: #05080c;
  aspect-ratio: 368 / 496;
}

.reel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Línea de escaneo */
.reel__wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(59, 163, 255, 0.16), transparent);
  animation: scan 4.5s linear infinite;
  pointer-events: none;
}

.reel__controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.reel__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 15, 20, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s;
}

.reel__btn:hover {
  background: rgba(245, 124, 31, 0.3);
  border-color: var(--orange);
}

.reel__btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.reel__btn .i-b {
  display: none;
}

.reel__btn[data-state="paused"] .i-a,
.reel__btn[data-state="muted"] .i-a {
  display: none;
}

.reel__btn[data-state="paused"] .i-b,
.reel__btn[data-state="muted"] .i-b {
  display: block;
}

.reel--noplay .reel__controls {
  display: none;
}

.reel__cap {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Esquinas tipo HUD */
.hud {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 2px solid var(--orange);
  pointer-events: none;
}

.hud--tl {
  top: -8px;
  left: -8px;
  border-right: 0;
  border-bottom: 0;
}

.hud--tr {
  top: -8px;
  right: -8px;
  border-left: 0;
  border-bottom: 0;
}

.hud--bl {
  bottom: 44px;
  left: -8px;
  border-right: 0;
  border-top: 0;
}

.hud--br {
  bottom: 44px;
  right: -8px;
  border-left: 0;
  border-top: 0;
}

/* Chips de vidrio flotantes */
.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(19, 26, 35, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  flex: none;
}

.chip--1 {
  top: 7%;
  left: -6px;
}

.chip--2 {
  top: 44%;
  right: -6px;
  animation-delay: -2s;
}

.chip--3 {
  bottom: 18%;
  left: -6px;
  animation-delay: -4s;
}

/* ---------- Cinta de servicios ---------- */
.ribbon {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(245, 124, 31, 0.1), rgba(59, 163, 255, 0.1));
}

.ribbon__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ribbon__track {
  display: flex;
  width: max-content;
  padding-block: 16px;
  animation: marquee 38s linear infinite;
}

.ribbon.is-paused .ribbon__track,
.ribbon:focus-within .ribbon__track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .ribbon:hover .ribbon__track {
    animation-play-state: paused;
  }
}

.ribbon__list {
  display: flex;
  flex: none;
  align-items: center;
}

.ribbon__list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ribbon__list li:nth-child(even) {
  color: var(--orange-2);
}

.ribbon__list li::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--steel);
  transform: rotate(45deg);
}

.ribbon__pause {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 15, 20, 0.85);
  cursor: pointer;
  transform: translateY(-50%);
}

.ribbon__pause svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ribbon__pause .i-b {
  display: none;
}

.ribbon__pause[data-state="paused"] .i-a {
  display: none;
}

.ribbon__pause[data-state="paused"] .i-b {
  display: block;
}

/* ---------- Secciones ---------- */
.section {
  padding-block: var(--space-section);
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* Secciones alternas con bordes diagonales */
.section--alt {
  position: relative;
  margin-block: calc(var(--skew) * -1);
  padding-block: calc(var(--space-section) + var(--skew));
  background: linear-gradient(180deg, var(--surface), var(--bg));
  clip-path: polygon(0 var(--skew), 100% 0, 100% calc(100% - var(--skew)), 0 100%);
}

.section__head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section__head h2,
.project__copy h2 {
  font-size: clamp(1.6rem, 5.2vw, 2.4rem);
  font-weight: 800;
}

.section__head h2 em,
.project__copy h2 em {
  font-style: normal;
  color: var(--orange);
}

.section__head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Tarjetas de servicio ---------- */
.cards {
  display: grid;
  gap: 16px;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    var(--bevel) 0,
    100% 0,
    100% calc(100% - var(--bevel)),
    calc(100% - var(--bevel)) 100%,
    0 100%,
    0 var(--bevel)
  );
  transition: box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent 70%);
  opacity: 0.55;
  transition: opacity 0.2s;
}

/* Brillo que sigue al cursor */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 124, 31, 0.2), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover {
    --lift: -4px;
    box-shadow: inset 0 0 0 1px var(--line-strong);
  }

  .card:hover::before {
    opacity: 1;
  }

  .card:hover::after {
    opacity: 1;
  }
}

.card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 124, 31, 0.45);
  background: rgba(245, 124, 31, 0.08);
  color: var(--orange-2);
}

.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  position: relative;
  font-size: 1.15rem;
  font-weight: 800;
}

.card p {
  position: relative;
  flex: 1;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

.card__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-block: 12px;
  color: var(--orange-2);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.card__link::after {
  content: "→";
  transition: transform 0.18s;
}

.card__link:hover::after {
  transform: translateX(4px);
}

.card--cta {
  justify-content: center;
  background: linear-gradient(160deg, rgba(245, 124, 31, 0.16), var(--surface));
  box-shadow: inset 0 0 0 1px rgba(245, 124, 31, 0.45);
}

.card--cta .btn {
  margin-top: 20px;
}

/* ---------- Proyecto real ---------- */
.project {
  display: grid;
  gap: 48px;
  align-items: center;
}

.project__media {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  padding-bottom: 28px;
}

.project__photo {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 5 / 6;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(
    var(--bevel) 0,
    100% 0,
    100% calc(100% - var(--bevel)),
    calc(100% - var(--bevel)) 100%,
    0 100%,
    0 var(--bevel)
  );
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.2s ease-out;
}

.project__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}

.project__thumb {
  position: absolute;
  right: -4px;
  bottom: 0;
  z-index: 2;
  width: 36%;
  margin: 0;
  border: 3px solid var(--bg);
  background: var(--bg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-strong);
  animation: floaty 7s ease-in-out infinite;
}

.project__thumb img {
  width: 100%;
  height: auto;
}

.project__thumb figcaption {
  padding: 6px 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project__copy .eyebrow {
  margin-bottom: 14px;
}

.project__copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.project__copy .ticks {
  margin-top: 22px;
}

.project__copy .btn {
  margin-top: 28px;
}

/* ---------- Proceso (línea de tiempo) ---------- */
.steps {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 30px;
  counter-reset: step;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-strong);
}

.steps::after {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease-out);
}

.steps.is-visible::after {
  transform: scaleY(1);
}

.step {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--surface);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.step::after {
  content: "";
  position: absolute;
  left: -30px;
  top: 28px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: var(--bg);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Equipos e industrias ---------- */
.split {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 28px 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.panel h3 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange-2);
}

.panel__title--spaced {
  margin-top: 26px;
}

.panel__note {
  margin-top: 22px;
  color: var(--muted);
}

.panel__btn {
  margin-top: 22px;
}

.ticks li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line);
  color: #d5dbe3;
}

.ticks li:last-child {
  border-bottom: 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg);
}

/* ---------- Por qué ---------- */
.why {
  display: grid;
  gap: 16px;
}

.why__item {
  padding: 24px 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.why__item h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.why__item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.values {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(245, 124, 31, 0.4);
  background: rgba(245, 124, 31, 0.07);
  color: var(--orange-2);
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Cobertura ---------- */
.coverage {
  display: grid;
  gap: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(59, 163, 255, 0.06);
  color: #d5dbe3;
  font-size: 0.92rem;
}

.chips li.is-base {
  border-color: var(--orange);
  background: rgba(245, 124, 31, 0.12);
  color: var(--orange-2);
  font-weight: 700;
}

.address {
  margin-top: 20px;
  font-style: normal;
  color: #d5dbe3;
}

.address strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq details {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] {
  box-shadow: inset 0 0 0 1px rgba(245, 124, 31, 0.5);
}

.faq .faq__a {
  padding: 0 20px 20px;
  color: var(--muted);
}

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(var(--space-section) * 0.85);
  background: var(--surface);
  border-top: 1px solid rgba(245, 124, 31, 0.4);
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* Malla de degradado que se desplaza */
.cta::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background: radial-gradient(40% 45% at 30% 30%, rgba(245, 124, 31, 0.26), transparent 70%),
    radial-gradient(38% 42% at 72% 62%, rgba(59, 163, 255, 0.2), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta h2 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(1.7rem, 6vw, 2.7rem);
  font-weight: 800;
}

.cta__lead {
  max-width: 54ch;
  margin: 16px auto 0;
  color: #c9d1db;
  font-size: 1.05rem;
}

.cta__action {
  position: relative;
  display: inline-block;
  margin-top: 30px;
}

.cta__action::before {
  content: "";
  position: absolute;
  inset: -22px -36px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 124, 31, 0.5), transparent);
  animation: glow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.contact-list {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 40px auto 0;
  padding: 24px;
  background: rgba(11, 15, 20, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}

.contact-list div {
  display: grid;
  gap: 2px;
}

.contact-list dt {
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-size: 1.02rem;
}

.contact-list a {
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 36px;
  background: #080b0f;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-inner > * {
  min-width: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-nav a {
  display: inline-block;
  padding: 8px 0;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

.site-footer address {
  font-style: normal;
}

.site-footer .brand__name {
  color: var(--text);
}

.site-footer .brand__tag {
  white-space: normal;
}

.copy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #0b0f14;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.wa-float svg {
  width: 24px;
  height: 24px;
}

.wa-float::before {
  display: none;
}

/* ---------- Animación de aparición (solo con JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tras aparecer, vuelven las transiciones propias de cada componente */
.js .reveal.is-done {
  transition: box-shadow 0.2s ease;
}

.js .card.reveal.is-visible.is-done {
  transform: perspective(900px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.18s ease-out, box-shadow 0.2s ease;
}

/* Revelado en cortina de la foto del proyecto */
.js .reveal--wipe .project__photo {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out) 0.1s;
}

.js .reveal--wipe.is-visible .project__photo {
  clip-path: polygon(
    var(--bevel) 0,
    100% 0,
    100% calc(100% - var(--bevel)),
    calc(100% - var(--bevel)) 100%,
    0 100%,
    0 var(--bevel)
  );
}

/* Los íconos de servicio se dibujan al aparecer */
.js .reveal .card__icon :is(path, circle, rect) {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.1s ease 0.25s;
}

.js .reveal.is-visible .card__icon :is(path, circle, rect) {
  stroke-dashoffset: 0;
}

/* Línea de tiempo: solo se anima con JS */
.js .steps:not(.is-visible)::after {
  transform: scaleY(0);
}

/* ==========================================================================
   TABLET ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }

  .header-cta {
    display: inline-flex;
    order: 2;
    margin-left: auto;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.92rem;
  }

  .js .nav-toggle {
    margin-left: 0;
  }

  .hero {
    padding-block: 48px 64px;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .reel {
    width: 100%;
    max-width: 320px;
  }

  .hero__shaft {
    display: block;
  }

  .chip {
    font-size: 0.7rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .project {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
  }

  .steps::before,
  .steps::after,
  .step::after {
    display: none;
  }

  .step {
    border-left: 3px solid var(--orange);
  }

  .why {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage {
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-nav {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* ==========================================================================
   DESKTOP ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  body {
    padding-bottom: 0;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .nav {
    padding: 0;
    gap: 4px 22px;
  }

  .header-cta {
    order: 0;
    margin-left: 0;
  }

  .hero {
    display: grid;
    align-items: center;
    min-height: min(100svh, 860px);
    padding-block: 64px 88px;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  }

  .hero__lead {
    font-size: 1.1rem;
  }

  .reel {
    max-width: 400px;
  }

  .hero__shaft {
    inset: -8% -26%;
  }

  .chip {
    padding: 10px 16px;
    font-size: 0.74rem;
  }

  .chip--1 {
    left: -22px;
  }

  .chip--2 {
    right: -22px;
  }

  .chip--3 {
    left: -22px;
  }

  .ribbon__track {
    padding-block: 20px;
  }

  .ribbon__list li {
    gap: 28px;
    padding-right: 28px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .project {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 72px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 36px;
  }

  .steps::before,
  .steps::after {
    display: block;
    left: 0;
    right: 0;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .steps::after {
    transform: scaleX(0);
    transform-origin: left;
  }

  .steps.is-visible::after {
    transform: scaleX(1);
  }

  .js .steps:not(.is-visible)::after {
    transform: scaleX(0);
  }

  .step {
    border-left: 0;
    border-top: 0;
  }

  .step::after {
    display: block;
    left: 22px;
    top: -36px;
  }

  .why {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-nav {
    grid-column: auto;
    order: 0;
  }

  .wa-float {
    left: auto;
    right: 28px;
    bottom: 28px;
    min-height: 58px;
    padding: 14px 24px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(245, 124, 31, 0.35), 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.18s ease, filter 0.18s ease;
  }

  .wa-float::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--orange-2);
    animation: ring 2.6s ease-out infinite;
    pointer-events: none;
  }

  .wa-float:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
  }
}

@media (min-width: 1200px) {
  .cta-long {
    display: inline;
    margin-left: -5px; /* compensa el gap del flex para que se lea como una frase */
  }

  .nav {
    gap: 4px 28px;
  }
}

/* ==========================================================================
   Animaciones (solo transform / opacity / stroke-dashoffset)
   ========================================================================== */
@keyframes lift {
  0%,
  8% {
    transform: translateY(0);
  }
  46%,
  58% {
    transform: translateY(-170px);
  }
  96%,
  100% {
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes angle {
  to {
    --angle: 360deg;
  }
}

@keyframes scan {
  from {
    transform: translateY(-70px);
  }
  to {
    transform: translateY(560px);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes reel-in {
  from {
    opacity: 0;
    transform: perspective(1000px) translateY(26px) rotateX(8deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  }
}

@keyframes ch-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes travel {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes shine {
  0%,
  60% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-4%, -3%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(4%, 3%, 0) rotate(8deg);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes ring {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.35, 1.7);
  }
}

@keyframes grow {
  to {
    transform: scaleX(1);
  }
}

/* Parallax sin JS donde hay animaciones guiadas por scroll */
@supports (animation-timeline: scroll()) {
  .hero__shaft {
    animation: shaft-move linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 90vh;
  }

  @keyframes shaft-move {
    to {
      transform: translateY(70px);
    }
  }
}

/* ==========================================================================
   Preferencias de movimiento
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .reveal--wipe .project__photo {
    clip-path: polygon(
      var(--bevel) 0,
      100% 0,
      100% calc(100% - var(--bevel)),
      calc(100% - var(--bevel)) 100%,
      0 100%,
      0 var(--bevel)
    );
  }

  .js .reveal .card__icon :is(path, circle, rect) {
    stroke-dashoffset: 0;
  }

  .js .steps::after {
    transform: none;
  }

  .progress {
    display: none;
  }

  .hero h1.is-split .ch {
    opacity: 1;
    transform: none;
  }

  /* La cinta pasa a ser una lista estática */
  .ribbon__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ribbon__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ribbon__list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .ribbon__list[aria-hidden="true"],
  .ribbon__pause {
    display: none;
  }
}
