:root {
  --radius: 0.25rem;
  --background: oklch(0.13 0.025 250);
  --foreground: oklch(0.97 0.012 220);
  --primary: oklch(0.82 0.15 210);
  --muted-foreground: oklch(0.68 0.03 232);
  --border: oklch(0.82 0.15 210 / 16%);

  --font-display:
    "Monument Extended", "Arial Black", Arial, system-ui, sans-serif;

  --font-body: "Monument Extended", Arial, system-ui, sans-serif;

  --font-mono: "Monument Extended", Arial, system-ui, sans-serif;

  --glow-cyan: 0 0 40px oklch(0.82 0.15 210 / 35%);

  --glass: linear-gradient(
    145deg,
    oklch(0.82 0.15 210 / 8%),
    oklch(0.13 0.025 250 / 40%)
  );
}

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

html {
  background: var(--background);
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: oklch(0.82 0.15 210 / 30%);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* =========================================================
   ESTRUCTURA GENERAL
   ========================================================= */

main,
.story {
  position: relative;
}

.story {
  z-index: 10;
}

.scene,
.atmosphere,
.vignette {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.atmosphere {
  opacity: 0.4;
}

.vignette {
  background: radial-gradient(
    circle at 50% 50%,
    transparent 35%,
    var(--background) 92%
  );
}

.grid-veil {
  background-image:
    linear-gradient(oklch(0.82 0.15 210 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.82 0.15 210 / 6%) 1px, transparent 1px);

  background-size: 64px 64px;

  -webkit-mask-image: radial-gradient(
    circle at 50% 40%,
    #000 0%,
    transparent 72%
  );

  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}

/* =========================================================
   CABECERA
   ========================================================= */

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1.5rem;

  background: linear-gradient(to bottom, rgb(3 6 12 / 32%), transparent);
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #3fe8ff !important;
}

/* =========================================================
   MENÚ
   ========================================================= */

.site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1.5rem;

  display: grid;

  width: min(23rem, calc(100vw - 3rem));
  padding: 0.75rem;

  border-radius: var(--radius);
  background-color: rgb(3 6 12 / 94%);

  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-0.75rem) scale(0.98);
  transform-origin: top right;

  transition:
    opacity 0.25s,
    visibility 0.25s,
    transform 0.25s;
}

.site-nav[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav a {
  display: flex;
  gap: 0.9rem;

  padding: 0.9rem 0.8rem;
  border-radius: 0.125rem;

  opacity: 0.78;

  transition:
    background-color 0.25s,
    color 0.25s,
    opacity 0.25s;
}

.site-nav a:hover {
  color: var(--primary);
  background: rgb(63 232 255 / 8%);
  opacity: 1;
}

.site-nav small {
  color: var(--primary);
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.22rem;

  padding: 0.65rem 0.75rem;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  color: var(--foreground);
  background: rgb(3 6 12 / 58%);

  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  cursor: pointer;
  backdrop-filter: blur(12px);
}

.menu-toggle span {
  display: block;

  width: 1.1rem;
  height: 1px;

  background: var(--primary);

  transition:
    transform 0.25s,
    opacity 0.25s;
}

.menu-toggle span:nth-child(2) {
  width: 0.72rem;
}

.menu-toggle b {
  margin-left: 0.45rem;
  font: inherit;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translate(1.04rem, 0.22rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-1.04rem, -0.22rem) rotate(-45deg);
}

.menu-toggle:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-cyan);
}

/* =========================================================
   BARRA DE PROGRESO
   ========================================================= */

.progress-track {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  pointer-events: none;
}

.progress-bar {
  width: 100%;
  height: 1px;

  background: var(--primary);
  box-shadow: var(--glow-cyan);

  transform: scaleX(0);
  transform-origin: left center;

  will-change: transform;
}

/* =========================================================
   SECCIONES
   ========================================================= */

.stage {
  position: relative;

  display: flex;
  min-height: 130vh;

  align-items: center;
  justify-content: center;

  padding: 6rem 1.5rem;
}

.stage-inner {
  width: 100%;
  max-width: 72rem;

  will-change: transform, opacity, filter;
}

.stage-center {
  text-align: center;
}

.data-label {
  margin-bottom: 0;

  color: var(--primary);

  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.text-glow {
  text-shadow:
    0 0 18px oklch(0.82 0.15 210 / 45%),
    0 0 70px oklch(0.62 0.21 262 / 30%);
}

.glass-panel,
.tag-list span,
.loop-chip {
  border: 1px solid var(--border);

  background-image: var(--glass);

  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 6%),
    0 24px 60px -30px oklch(0.82 0.15 210 / 35%);

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* =========================================================
   PORTADA
   ========================================================= */

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem) !important;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

[data-kinetic] span {
  display: inline-block;
}

.hero-title span {
  overflow: hidden;
}

.hero-tagline {
  margin: 0;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.32em;
}

.hero-copy-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-copy-group .hero-title {
  order: 1;
}

.hero-copy-group .hero-logo {
  order: 2;
}

.hero-copy-group .hero-tagline {
  order: 3;
}

/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.hero-cta {
  display: inline-flex;
  position: relative;
  overflow: hidden;

  align-items: center;
  justify-content: center;

  width: auto;
  min-height: 2.9rem;
  margin-top: 2.5rem;
  padding: 0.75rem 1.45rem;

  /* Borde degradado */
  border: 1.5px solid transparent;
  border-radius: 999px;

  color: #03060c;

  /* Interior blanco hielo + borde degradado */
  background:
    linear-gradient(#eaf8ff, #eaf8ff) padding-box,
    linear-gradient(120deg, #3fe8ff 0%, #eaf8ff 45%, #1668ff 100%) border-box;

  box-shadow:
    0 0 0 1px rgb(63 232 255 / 10%),
    0 0 24px rgb(63 232 255 / 22%);

  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;

  animation: cta-glow 3.5s ease-in-out infinite;
}

.hero-cta span {
  position: relative;
  z-index: 1;
}

/* Elimina efectos interiores anteriores */
.hero-cta::before {
  content: none;
  display: none;
}

.hero-cta:hover {
  color: #03060c;
  border-color: transparent;

  /* Mismo interior, degradado invertido */
  background:
    linear-gradient(#eaf8ff, #eaf8ff) padding-box,
    linear-gradient(300deg, #3fe8ff 0%, #eaf8ff 45%, #1668ff 100%) border-box;

  transform: translateY(-0.2rem) scale(1.025);

  box-shadow:
    0 0 0 1px rgb(63 232 255 / 18%),
    0 0 42px rgb(63 232 255 / 42%);
}

.hero-cta:active {
  transform: translateY(0) scale(0.98);
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgb(63 232 255 / 10%),
      0 0 20px rgb(63 232 255 / 18%);
  }

  50% {
    box-shadow:
      0 0 0 1px rgb(63 232 255 / 20%),
      0 0 32px rgb(63 232 255 / 32%);
  }
}

/* =========================================================
   CARRUSEL DE LOGOTIPOS
   ========================================================= */

.brand-marquee {
  display: block;

  width: min(100%, 72rem);
  height: 5rem;

  margin: 1.4rem auto 0;

  overflow: hidden;

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );

  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.brand-marquee-track {
  display: flex;

  width: max-content;
  height: 100%;

  flex-flow: row nowrap;
  align-items: center;

  animation: brand-scroll 34s linear infinite;

  will-change: transform;
}

/*
 * Los logotipos están más juntos.
 * El espacio anterior era de 2rem.
 */

.brand-sequence {
  display: flex;
  height: 100%;
  flex: 0 0 auto;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.brand-slot {
  display: flex;
  width: 9rem;
  height: 3.75rem;
  flex: 0 0 9rem;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.brand-slot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 7.5rem;
  max-height: 2.75rem;
  object-fit: contain;
  background: transparent;
}

.brand-slot-icon img {
  max-width: 4.75rem;
  max-height: 2.75rem;
}

@keyframes brand-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

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

  50% {
    opacity: 0.5;
  }
}

/* =========================================================
   BLOQUES DE CONTENIDO
   ========================================================= */

.copy {
  max-width: 42rem;
}

.copy h2 {
  margin: 1.25rem 0 0;

  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.95;
}

.copy-right {
  margin-left: auto;
  text-align: right;
}

.copy-right .body-copy {
  margin-left: auto;
}

.copy-marketing {
  max-width: 48rem;
}

.body-copy {
  max-width: 32rem;

  margin: 1.5rem 0 0;

  color: var(--muted-foreground);

  font-size: 1.125rem;
  line-height: 1.55;
}

/* =========================================================
   ETIQUETAS
   ========================================================= */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;

  margin-top: 2.5rem;

  font-family: var(--font-mono);
  font-size: 0.75rem;

  will-change: transform;
}

.tag-list span {
  padding: 0.375rem 0.75rem;

  border-radius: var(--radius);

  color: var(--primary);
}

/* =========================================================
   METODOLOGÍA
   ========================================================= */

.section-heading {
  margin: 1.25rem 0 0;

  font-size: 3.75rem;
  font-weight: 700;
}

.loop-list {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 0.75rem 1rem;

  margin-top: 2.5rem;
}

.loop-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.loop-item b {
  color: var(--primary);
  font-weight: 400;
}

.loop-chip {
  padding: 0.5rem 1rem;

  border-radius: var(--radius);

  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.revenue-title {
  font-size: 6rem !important;
  line-height: 0.9 !important;
}

/* =========================================================
   SERVICIOS Y MÉTRICAS
   ========================================================= */

.capabilities-heading,
.metrics-heading {
  margin-bottom: 3rem;
}

.capabilities-grid,
.metrics-grid {
  display: grid;
  gap: 0.75rem;
}

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

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

.capability {
  display: block;
  position: relative;

  padding: 1.25rem;

  border-radius: 0.125rem;

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.5s,
    border-color 0.5s;
}

.capability:hover {
  border-color: oklch(0.82 0.15 210 / 60%);
  transform: translateY(-0.375rem);
}

.capability small {
  color: oklch(0.82 0.15 210 / 70%);

  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.capability p {
  margin: 0.75rem 0 0;

  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
}

.capability i {
  display: block;

  width: 0;
  height: 1px;

  margin-top: 1rem;

  background: var(--primary);

  transition: width 0.5s;
}

.capability:hover i {
  width: 100%;
}

.metric {
  position: relative;

  overflow: hidden;

  padding: 1.5rem;

  border-radius: 0.125rem;
}

.metric-grid-veil {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.metric > *:not(.metric-grid-veil) {
  position: relative;
}

.metric strong {
  display: block;

  margin-top: 0.75rem;

  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1;
}

.metric > small {
  display: block;

  margin-top: 0.5rem;

  color: var(--muted-foreground);

  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bars {
  display: flex;

  height: 2.5rem;

  align-items: end;
  gap: 0.25rem;

  margin-top: 1.25rem;
}

.bars i {
  flex: 1;

  background: linear-gradient(
    to top,
    oklch(0.82 0.15 210 / 15%),
    oklch(0.82 0.15 210 / 80%)
  );
}

/* =========================================================
   BLOQUE FINAL
   ========================================================= */

.finale h2 {
  max-width: 56rem;

  margin: 0 auto;

  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
}

.finale > p {
  margin: 2rem 0 0;

  color: var(--muted-foreground);

  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

.cta {
  display: inline-flex;

  align-items: center;
  gap: 1rem;

  margin-top: 3.5rem;
  padding: 1.25rem 2.5rem;

  border-radius: 0.125rem;

  color: var(--primary);

  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    transform 0.5s,
    border-color 0.5s,
    box-shadow 0.5s;
}

.cta:hover {
  border-color: var(--primary);

  transform: translateY(-0.25rem);

  box-shadow: var(--glow-cyan);
}

.finale > small {
  display: block;

  margin-top: 6rem;

  color: color-mix(in oklch, var(--muted-foreground) 60%, transparent);

  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 15;

  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  gap: 0.7rem;

  padding: 2rem 1.5rem;

  border-top: 1px solid var(--border);

  color: var(--muted-foreground);
  background: #03060c;

  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: none;

  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--primary);
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0 1.5rem;
}

.hero-logo-mark {
  display: block;
  width: 3.25rem;
  aspect-ratio: 1026 / 535;
  background-color: #869ca8;
  -webkit-mask: url("/assets/isotipo-mediatrika-transparente.png") center /
    contain no-repeat;
  mask: url("/assets/isotipo-mediatrika-transparente.png") center / contain
    no-repeat;
  filter: drop-shadow(0 0 12px rgb(134 156 168 / 25%));
}

.brand-sequence .brand-slot img {
  filter: brightness(0) saturate(100%) invert(85%) sepia(66%) saturate(1398%)
    hue-rotate(154deg) brightness(105%) contrast(104%);
}

.brand-isotipo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-isotipo {
  display: block;
  width: 3.5rem;
  height: auto;
  object-fit: contain;
  filter:
    brightness(0)
    saturate(100%)
    invert(85%)
    sepia(66%)
    saturate(1398%)
    hue-rotate(154deg)
    brightness(105%)
    contrast(104%)
    drop-shadow(0 0 12px rgb(63 232 255 / 30%));
}

/* =========================================================
   MÓVILES
   ========================================================= */

@media (max-width: 767px) {
  .site-header {
    align-items: flex-start;
  }
  .brand {
    font-size: 0.75rem;
  }
  .site-nav {
    right: 1rem;
    width: calc(100vw - 2rem);
  }
  .menu-toggle b {
    display: none;
  }
  .header-isotipo {
    width: 3rem;
  }
  .stage:first-child .stage-inner {
    top: 0;
  }

  .hero-copy-group {
    position: relative;
    top: -9rem;
  }

  .hero-copy-group .hero-title {
    margin: 0;
    font-size: clamp(1.3rem, 5.8vw, 2.2rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  .hero-copy-group .hero-logo {
    margin: 1.25rem 0 1.5rem;
  }
  .hero-copy-group .hero-logo-mark {
    width: 2.5rem;
  }

  .hero-copy-group .hero-tagline {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.35;
    letter-spacing: 0.22em;
  }

  .hero-cta {
    position: relative;
    top: -4rem;
    width: auto;
    min-height: 2.7rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1rem;
    font-size: 0.58rem;
  }

  .copy h2 {
    font-size: 3rem;
  }
  .section-heading {
    font-size: 2.25rem;
  }
  .revenue-title {
    font-size: 3.75rem !important;
  }
  .capabilities-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .capability p {
    font-size: 1rem;
  }
  .metric strong {
    font-size: 2.25rem;
  }
  .finale h2 {
    font-size: 2.25rem;
  }
  .finale > p {
    font-size: 1.125rem;
  }
  .cta {
    padding-inline: 1.5rem;
    font-size: 0.75rem;
  }

  .brand-marquee {
    position: relative;
    top: -2rem;
    width: 100vw;
    height: 4rem;
    margin-top: 1.5rem;
    margin-left: calc(50% - 50vw);
  }

  .brand-marquee-track {
    animation-duration: 28s;
  }
  .brand-sequence {
    gap: 0.3rem;
    padding-right: 0.3rem;
  }
  .brand-slot {
    width: 7.5rem;
    height: 3.5rem;
    flex: 0 0 7.5rem;
  }
  .brand-slot img {
    max-width: 6.5rem;
    max-height: 2.5rem;
  }
  .brand-slot-icon img {
    max-width: 4.5rem;
    max-height: 2.65rem;
  }

  .brand-sequence .brand-slot:first-child {
    width: 9rem;
    min-width: 9rem;
    max-width: 9rem;
    flex: 0 0 9rem;
    padding-inline: 0.75rem;
  }

  .brand-sequence .brand-slot:first-child img {
    width: 100%;
    max-width: 7rem;
  }

  .brand-sequence .brand-slot:nth-child(3) {
    width: 7.75rem;
    min-width: 7.75rem;
    max-width: 7.75rem;
    flex: 0 0 7.75rem;
  }

  .brand-sequence .brand-slot:nth-child(3) img {
    max-width: 7.2rem !important;
    max-height: 3rem !important;
  }

  .brand-sequence .brand-slot:nth-child(6) {
    width: 8.6rem;
    min-width: 8.6rem;
    max-width: 8.6rem;
    flex: 0 0 8.6rem;
  }

  .brand-sequence .brand-slot:nth-child(6) img {
    max-width: 8.1rem !important;
    max-height: 3rem !important;
  }

  .site-footer {
    gap: 0.45rem 0.65rem;
    font-size: 0.56rem;
    text-align: center;
  }
}

/* =========================================================
   TABLET Y ESCRITORIO
   ========================================================= */

@media (min-width: 768px) {
  .site-header {
    padding-inline: 3rem;
  }
  .site-nav {
    right: 3rem;
  }
  .stage {
    padding-inline: 3rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 3rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.025em;
  }

  .hero-tagline {
    margin-top: 0.8rem;
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.22em;
  }

  .hero-copy-group,
  .hero-cta {
    position: relative;
    top: -5rem;
  }

  .brand-sequence .brand-slot:nth-child(3) img {
    max-width: 8.5rem;
    max-height: 5.2rem;
  }

  .brand-sequence .brand-slot:nth-child(6) img {
    max-width: 10.25rem;
    max-height: 5.2rem;
  }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-cta {
    animation: none;
  }
  .brand-marquee-track {
    animation-duration: 70s;
  }
}

/* =========================================================
   PÁGINA LEGAL / NORMATIVA
   ========================================================= */

html {
  scroll-behavior: smooth;
}

.legal-page {
  background: #03060c;
}

.legal-page main {
  overflow: clip;
}

.legal-hero,
.legal-navigation,
.legal-layout {
  position: relative;
  z-index: 10;
}

.legal-shell {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.legal-hero {
  display: flex;
  min-height: 72vh;
  align-items: center;
  padding: 9rem 0 5rem;
}

.legal-hero h1 {
  max-width: 62rem;
  margin: 1.5rem 0 0;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.legal-lead {
  max-width: 46rem;
  margin: 2rem 0 0;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.legal-index {
  position: absolute;
  right: 4vw;
  bottom: 2rem;
  color: rgb(63 232 255 / 10%);
  font-family: var(--font-display);
  font-size: clamp(9rem, 23vw, 20rem);
  font-weight: 700;
  line-height: 0.72;
  pointer-events: none;
}

.legal-navigation {
  padding-bottom: 4rem;
}

.legal-navigation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.legal-navigation-card {
  display: flex;
  min-height: 7.5rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: 0.15rem;
  color: var(--foreground);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.legal-navigation-card:hover {
  border-color: rgb(63 232 255 / 55%);
  transform: translateY(-0.25rem);
}

.legal-navigation-card small {
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}

.legal-navigation-card span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 2rem;
  padding-block: 3rem 8rem;
}

.legal-sidebar {
  position: relative;
}

.legal-sidebar-inner {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 0.15rem;
}

.legal-sidebar a {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.legal-sidebar a:hover {
  color: var(--primary);
}

.legal-sidebar .legal-back-top {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  color: var(--primary);
}

.legal-document {
  display: grid;
  min-width: 0;
  gap: 1.25rem;
}

.legal-section {
  scroll-margin-top: 7rem;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: 0.15rem;
  background-color: rgb(3 6 12 / 72%);
}

.legal-section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section-heading > span {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.legal-section-heading p {
  margin: 0 0 0.45rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.legal-section h3 {
  margin: 3rem 0 1rem;
  color: #eaf8ff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.legal-section h4 {
  margin: 2rem 0 0.75rem;
  color: #eaf8ff;
  font-size: 1rem;
  line-height: 1.45;
}

.legal-section p,
.legal-section li {
  color: var(--muted-foreground);
  font-size: 0.94rem;
  line-height: 1.8;
}

.legal-section p {
  margin: 0 0 1rem;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
  padding-left: 1.35rem;
}

.legal-section li::marker {
  color: var(--primary);
}

.legal-section strong {
  color: #eaf8ff;
  font-weight: 600;
}

.legal-section a {
  color: var(--primary);
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.legal-contact-box,
.legal-note {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--primary);
  background: rgb(63 232 255 / 5%);
}

.legal-contact-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.legal-note {
  color: #eaf8ff !important;
  font-style: italic;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    display: none;
  }
}

@media (max-width: 767px) {
  .legal-shell {
    width: min(100% - 2rem, 72rem);
  }
  .legal-hero {
    min-height: 66vh;
    padding-top: 8rem;
  }
  .legal-hero h1 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }
  .legal-index {
    right: 1rem;
  }
  .legal-navigation-grid {
    grid-template-columns: 1fr;
  }
  .legal-navigation-card {
    min-height: 5.5rem;
  }
  .legal-layout {
    padding-top: 1rem;
    padding-bottom: 5rem;
  }

  .legal-section-heading {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  .legal-contact-box {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .legal-navigation-card {
    transition: none;
  }
}

/* =========================================================
   CASOS DE CRECIMIENTO — BOTÓN DE ACCESO
   ========================================================= */

.cases-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground);
  background-image: var(--glass);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 6%),
    0 24px 60px -30px oklch(0.82 0.15 210 / 35%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.cases-button span {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.cases-button:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-0.2rem);
  box-shadow: var(--glow-cyan);
}

.cases-button:hover span {
  transform: translateX(0.25rem);
}

/* =========================================================
   PROCESO CIRCULAR
   ========================================================= */

.process-ring {
  --ring-radius: clamp(9.25rem, 24vw, 14rem);
  position: relative;
  width: min(92vw, 38rem);
  aspect-ratio: 1;
  margin: 4rem auto 0;
  border-radius: 50%;
  isolation: isolate;
}

.process-ring::before,
.process-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.process-ring::before {
  inset: 15%;
  border: 1px solid rgb(63 232 255 / 32%);
  background: radial-gradient(circle, rgb(63 232 255 / 6%), transparent 67%);
  box-shadow: 0 0 55px rgb(63 232 255 / 10%);
}

.process-ring::after {
  inset: 22%;
  border: 1px dashed rgb(134 156 168 / 28%);
  animation: process-orbit 36s linear infinite;
}

.process-ring-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(7.5rem, 24vw, 10.5rem);
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgb(63 232 255 / 12%),
    rgb(3 6 12 / 94%) 68%
  );
  box-shadow:
    inset 0 0 30px rgb(63 232 255 / 8%),
    0 0 48px rgb(63 232 255 / 12%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.process-ring-core small {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.process-ring-core strong {
  margin-top: 0.3rem;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2vw, 1rem);
  letter-spacing: 0.1em;
}

.process-ring-core span {
  margin-top: 0.35rem;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
}

.process-step {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: clamp(7rem, 20vw, 10rem);
  min-height: 3.5rem;
  place-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  background: rgb(3 6 12 / 90%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 16px 38px -24px rgb(63 232 255 / 65%);
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 1.5vw, 0.76rem);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(var(--angle))
    translateX(var(--ring-radius)) rotate(var(--inverse));
}

.process-step b {
  margin-bottom: 0.18rem;
  color: var(--primary);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.process-ring-service {
  margin-top: 3.5rem;
}

.method-copy-centered {
  margin-inline: auto;
  text-align: center;
}

@keyframes process-orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .cases-button {
    font-size: 0.6rem;
  }

  .process-ring {
    --ring-radius: clamp(7.25rem, 31vw, 9.2rem);
    width: min(96vw, 27rem);
    margin-top: 3rem;
  }

  .process-step {
    min-width: 6.6rem;
    min-height: 3.1rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.53rem;
  }

  .process-ring-core {
    width: 7rem;
  }
}

@media (max-width: 420px) {
  .process-ring {
    --ring-radius: 7rem;
    width: 22rem;
    max-width: 100%;
  }

  .process-step {
    min-width: 5.8rem;
    font-size: 0.47rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-ring::after {
    animation: none;
  }
}
