/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Fondos / superficies */
  --bg: #09090B;
  --surface-1: #0E0E11;
  --surface-2: #18181B;
  --surface-3: #1F1F23;

  /* Bordes */
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Texto */
  --text: #FAFAFA;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --text-tenue: #83838C; /* tenue con contraste AA para texto pequeño */

  /* Acento "plata líquida": plata limpia y luminosa, sin horizonte oscuro
     (más moderna que el cromo brillante de varias bandas) */
  --metal: linear-gradient(180deg,
      #FFFFFF 0%,
      #F1F1F3 40%,
      #CBCBD2 100%);

  /* Canto metálico (bisel de 1px: luz arriba, sombra al medio, leve rim abajo) */
  --metal-edge: linear-gradient(180deg,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.07) 18%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(255, 255, 255, 0.04) 82%,
      rgba(255, 255, 255, 0.11) 100%);

  /* Curvas de animación */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Espaciado (base 8) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --s-10: 64px;
  --s-12: 96px;
  --s-16: 128px;
  --section-y: clamp(96px, 12vw, 160px);

  /* Radios */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Sombras en capas */
  --shadow-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 14px 28px -18px rgba(0, 0, 0, 0.85),
    0 40px 60px -42px rgba(0, 0, 0, 0.6);
  --shadow-card-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 24px 46px -20px rgba(0, 0, 0, 0.9),
    0 64px 90px -50px rgba(0, 0, 0, 0.72);
  --shadow-nav: 0 14px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-btn:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 14px 30px -12px rgba(0, 0, 0, 0.7);

  /* Medidas */
  --container: 1160px;

  /* Tipografía */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Archivo Expanded", "Montserrat", system-ui, sans-serif;
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Scrollbar oscura (WebKit) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #0b0b0d;
}

::-webkit-scrollbar-thumb {
  background: #26262b;
  border: 3px solid #0b0b0d;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #34343a;
}

/* ---------- Capas de fondo: resplandor + grano ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -8%, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 70%),
    radial-gradient(38% 28% at 50% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 60%),
    radial-gradient(70% 38% at 50% 109%, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 72%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Texto con acabado metálico (con fallback si no hay background-clip:text) */
.metal-text {
  color: #E8E8EC;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .metal-text {
    background-image: var(--metal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Relieve / bisel sutil para títulos metálicos */
.relief {
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6))
    drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.10))
    drop-shadow(0 18px 38px rgba(0, 0, 0, 0.4));
}

/* Tipografía display (titulares) */
.hero h1,
.section-title,
.step-num {
  font-family: var(--font-display);
  font-stretch: 125%;
}

/* Antetítulos */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tenue);
}

/* Eslogan */
.slogan {
  color: var(--text-tenue);
}

.slogan .sep {
  color: var(--text-3);
  margin-inline: 0.2em;
}

.slogan .slogan-hi {
  color: var(--text);
  font-weight: 600;
}

/* Enlace para saltar al contenido (accesibilidad) */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Foco visible ---------- */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Iconos ---------- */
.ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ico-fill {
  fill: currentColor;
  stroke: none;
}

/* 
   NAVEGACIÓN — píldora flotante glass
*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: clamp(12px, 1.6vw, 18px);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  width: min(100% - 28px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  padding-inline: clamp(14px, 1.4vw, 20px);
  border-radius: var(--r-pill);
  background:
    linear-gradient(rgba(14, 14, 17, 0.62), rgba(14, 14, 17, 0.62)) padding-box,
    var(--metal-edge) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-nav);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  transition: height 0.3s var(--ease), background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled .nav {
  height: 56px;
  background:
    linear-gradient(rgba(14, 14, 17, 0.74), rgba(14, 14, 17, 0.74)) padding-box,
    var(--metal-edge) border-box;
  box-shadow:
    0 18px 44px -20px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Fallback si no hay backdrop-filter (por ejemplo Firefox): cristal más opaco */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav {
    background:
      linear-gradient(rgba(14, 14, 17, 0.92), rgba(14, 14, 17, 0.92)) padding-box,
      var(--metal-edge) border-box;
  }

  .site-header.is-scrolled .nav {
    background:
      linear-gradient(rgba(14, 14, 17, 0.94), rgba(14, 14, 17, 0.94)) padding-box,
      var(--metal-edge) border-box;
  }
}

/* Marca */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 7px;
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .brand-logo {
  height: 30px;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-name .bn-1 {
  font-weight: 800;
}

.brand-name .bn-2 {
  font-weight: 500;
}

/* Enlaces (segmentos tipo control) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a:not(.btn) {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links > a:not(.btn).is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-cta {
  margin-left: 6px;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle .ico-close {
  display: none;
}

/* 
   BOTONES
*/
.btn {
  --btn-py: 15px;
  --btn-px: 26px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:active {
  transform: translateY(0);
}

/* Primario: pastilla cromada con gloss convexo + barrido en hover */
.btn-primary {
  color: #0A0A0C;
  background-image: linear-gradient(180deg, #FFFFFF 0%, #E0E0E5 100%);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 22px 44px -14px rgba(0, 0, 0, 0.85);
}

.btn-primary:active {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: sheen 0.85s var(--ease);
}

@keyframes sheen {
  0% { left: -45%; opacity: 0; }
  18% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Secundario: transparente con canto metálico */
.btn-secondary {
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)) padding-box,
    var(--metal-edge) border-box;
  border: 1px solid transparent;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)) padding-box,
    var(--metal-edge) border-box;
}

.btn-sm {
  --btn-py: 10px;
  --btn-px: 18px;
  font-size: 0.9rem;
}

.btn-wide {
  width: 100%;
}

.btn-ico {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-ico {
  transform: translateX(3px);
}

/* 
   HERO
*/
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: clamp(124px, 17vh, 188px);
  padding-bottom: clamp(88px, 12vh, 132px);
}

/* Spotlight que sigue el cursor (estático y centrado en touch / sin hover):
   la superficie oscura se siente iluminada por una luz que controlas */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 520px at var(--hx, 50%) var(--hy, 44%),
      rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 62%);
}

/* Retícula técnica finísima detrás del hero (firma de "ingeniería") */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(72% 62% at 50% 42%, #000 0%, transparent 76%);
}

.hero-inner {
  max-width: 940px;
}

.hero .slogan {
  margin-bottom: 32px;
  font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.84rem);
}

.hero h1 {
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero .line-1 {
  display: block;
  font-weight: 600;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--text-2);
  margin-bottom: clamp(8px, 1.2vw, 18px);
}

.hero .line-2 {
  display: block;
  font-weight: 800;
  font-size: clamp(2.9rem, 1.3rem + 6.6vw, 5.6rem);
  letter-spacing: -0.035em;
  color: #E8E8EC;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.10));
}

/* Cromo + barrido de luz (firma) sobre el remate del hero */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .line-2 {
    background-image:
      linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.92) 50%, transparent 65%),
      var(--metal);
    background-size: 220% 100%, 100% 100%;
    background-position: 200% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .hero .line-2.is-swept {
    animation: chromeSweep 1.5s var(--ease-out) 0.25s both;
  }
}

@keyframes chromeSweep {
  0% { background-position: 200% 0, 0 0; }
  100% { background-position: -130% 0, 0 0; }
}

.hero .lead {
  margin: 32px auto 0;
  max-width: 640px;
  color: var(--text-2);
  font-size: clamp(1.08rem, 1rem + 0.55vw, 1.32rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 38px);
  transform: translateX(-50%);
  color: var(--text-3);
  animation: cue 2.4s ease-in-out infinite;
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: var(--text);
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* 
   SECCIONES
*/
.section {
  position: relative;
  padding-block: var(--section-y);
}

/* Luz ambiental tenue detrás del encabezado de cada sección */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92%);
  height: 360px;
  pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Costura de panel: hairline con brillo central, como junta de acero mecanizado */
.section--alt {
  background: var(--surface-1);
  border-block: 1px solid transparent;
  border-inline: 0 solid transparent;
  border-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.16) 50%,
      rgba(255, 255, 255, 0.04)) 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-title {
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-intro {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(1.02rem, 0.97rem + 0.3vw, 1.2rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-intro {
  margin-inline: auto;
}

/* 
   GRID + TARJETAS
*/
.grid {
  display: grid;
  gap: clamp(16px, 1.6vw, 22px);
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px);
  background: linear-gradient(180deg, #1C1C20 0%, #161619 62%, #141417 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}

/* Canto metálico (anillo de 1px, más brillante arriba) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: var(--metal-edge);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

/* Reflejo que sigue el cursor (luz sobre metal) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(200px 200px at var(--mx, 50%) var(--my, 0%),
      rgba(255, 255, 255, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

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

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

.card-ico {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: var(--r-sm);
  color: #E8E8EC;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)) padding-box,
    var(--metal-edge) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-2);
  font-size: 0.99rem;
  line-height: 1.62;
  text-wrap: pretty;
}

/* 
   PROCESO (timeline)
*/
.steps {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  grid-template-columns: 1fr;
}

.step {
  position: relative;
  padding-top: 26px;
}

/* Barra superior del paso: por defecto un nodo claro + línea tenue.
   Al pasar el cursor, TODA la barra se pone blanca con brillo. */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.62) 0,
      rgba(255, 255, 255, 0.62) 46px,
      rgba(255, 255, 255, 0.14) 46px,
      rgba(255, 255, 255, 0.14) 100%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.step:hover::before {
  background: linear-gradient(90deg,
      #FFFFFF 0,
      #FFFFFF 46px,
      #FFFFFF 46px,
      #FFFFFF 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.step-num {
  display: block;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 2rem + 2.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  transition: transform 0.35s ease;
}

.step:hover .step-num {
  transform: translateY(-3px);
}

.step h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-2);
  font-size: 0.99rem;
  line-height: 1.62;
  text-wrap: pretty;
}

/*
   CONTACTO
*/
.contact-card {
  position: relative;
  overflow: hidden;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #1C1C20, #151518) padding-box,
    var(--metal-edge) border-box;
  box-shadow: var(--shadow-card);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.07), transparent 60%);
}

.contact-card > * {
  position: relative;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s ease;
}

.contact-email .contact-ico {
  display: inline-grid;
  place-items: center;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #fff;
}

.contact-email:hover .contact-ico {
  color: var(--text);
}

/* Redes */
.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  color: var(--text-2);
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)) padding-box,
    var(--metal-edge) border-box;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), color 0.25s ease, background 0.25s ease;
}

.social:hover {
  transform: translateY(-3px);
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)) padding-box,
    var(--metal-edge) border-box;
}

/* 
   FOOTER
*/
.site-footer {
  position: relative;
  background: var(--surface-1);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.14) 50%,
      rgba(255, 255, 255, 0.04)) 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding-block: clamp(48px, 7vw, 76px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand .brand-logo {
  height: 36px;
}

.footer-brand .brand-name {
  font-size: 1.3rem;
}

.footer-slogan {
  font-size: 0.74rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.03)) 1;
}

.footer-mail {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.footer-copy {
  color: var(--text-tenue);
  font-size: 0.9rem;
}

/* 
   ANIMACIONES DE ENTRADA
*/
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--sd, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Sin JavaScript: mostramos el contenido directamente (sin animación de entrada) */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Escalonado dentro de un contenedor .stagger */
.stagger > *:nth-child(1) { --sd: 0ms; }
.stagger > *:nth-child(2) { --sd: 70ms; }
.stagger > *:nth-child(3) { --sd: 140ms; }
.stagger > *:nth-child(4) { --sd: 210ms; }
.stagger > *:nth-child(5) { --sd: 280ms; }
.stagger > *:nth-child(6) { --sd: 350ms; }
.stagger > *:nth-child(7) { --sd: 420ms; }
.stagger > *:nth-child(8) { --sd: 490ms; }

/* 
   RESPONSIVE
*/
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Menú móvil (<= 880px): panel desplegable bajo la píldora */
@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--r-lg);
    background:
      linear-gradient(rgba(14, 14, 17, 0.92), rgba(14, 14, 17, 0.92)) padding-box,
      var(--metal-edge) border-box;
    border: 1px solid transparent;
    box-shadow: var(--shadow-nav);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .site-header.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links > a:not(.btn) {
    padding: 13px 14px;
    font-size: 1.05rem;
    border-radius: var(--r-md);
    color: var(--text);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 6px;
  }

  .site-header.nav-open .nav-toggle .ico-menu { display: none; }
  .site-header.nav-open .nav-toggle .ico-close { display: block; }
}

/* 
   PREFERENCIA: REDUCIR MOVIMIENTO
*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-cue {
    animation: none;
  }

  .hero .line-2 {
    animation: none !important;
  }

  /* Reflejo estático sutil en las tarjetas (sin seguir el cursor) */
  .card::after {
    opacity: 0.5;
  }
}

/* 
   PREFERENCIA: MÁS CONTRASTE
*/
@media (prefers-contrast: more) {
  :root {
    --text-2: #C9C9D0;
    --text-3: #A1A1AA;
    --text-tenue: #B5B5BD;
    --border: rgba(255, 255, 255, 0.22);
    --border-strong: rgba(255, 255, 255, 0.34);
  }
}

/*
   ALTO CONTRASTE / FORCED COLORS (Windows)
*/
@media (forced-colors: active) {
  .metal-text,
  .hero .line-2 {
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
    background: none;
  }

  .card,
  .nav,
  .btn,
  .contact-card,
  .social {
    border: 1px solid CanvasText;
  }
}
