/* ═══════════════════════════════════════════════════════
   VISION-XTREMA 2026 · LIQUID GLASS DESIGN SYSTEM
   Fuente: Outfit (100–900) — google fonts
   ═══════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────── */
:root {
  --teal:    #009CB0;
  --teal-l:  #4DBAC9;
  --teal-d:  #00768A;
  --purple:  #9B8FD4;
  --peach:   #D4A08A;
  --mint:    #7DCFBB;

  --bg:    #ECECEC;
  --white: #FFFFFF;
  --text:  #303D32;
  --text2: #5C6B60;
  --text3: #98A69C;

  /* ── Glass tokens ── */
  /* Fondo claro translúcido — tarjetas, nav pill */
  --g-bg:  rgba(255,255,255,0.38);
  --g-bg2: rgba(255,255,255,0.55);
  /* Borde blanco suave */
  --g-bd:  rgba(255,255,255,0.72);
  --g-bd2: rgba(255,255,255,0.90);
  /* Sombra compuesta: profundidad + highlight superior + inner */
  --g-sh:
    0 12px 48px rgba(0,0,0,.07),
    inset 0 1.5px 0 rgba(255,255,255,.92),
    inset 0 -1px  0 rgba(0,0,0,.035),
    inset 1.5px 0 0 rgba(255,255,255,.55),
    0 1px 0 rgba(255,255,255,.65);

  --r:    3px;
  --r-sm: 6px;
  --r-lg: 9px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  {
  scroll-behavior: smooth;
  overflow-x: clip;          /* clip > hidden: no crea scroll-context, mejor en móvil */
  width: 100%;
}
body  {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  position: relative;       /* contexto para position:absolute de blobs */
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Blobs animados ─────────────────────────────────── */
.bg-layer {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(140deg, #ECECEC 0%, #F1F1F1 55%, #E7E7E7 100%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: .24; pointer-events: none;
}
.b1 { width:750px; height:750px; top:-200px; left:-180px;
      background: radial-gradient(circle, #6FD6DE, transparent 68%);
      animation: bf 16s var(--ease) infinite; }
.b2 { width:600px; height:600px; top:10%; right:-120px;
      background: radial-gradient(circle, #C0B4EC, transparent 68%);
      animation: bf 19s var(--ease) infinite reverse 2s; }
.b3 { width:520px; height:520px; bottom:2%; left:12%;
      background: radial-gradient(circle, #9DE4CC, transparent 68%);
      animation: bf 12s var(--ease) infinite 4s; }
.b4 { width:440px; height:440px; bottom:20%; right:8%;
      background: radial-gradient(circle, #EAD0BE, transparent 68%);
      animation: bf 17s var(--ease) infinite 6s; }
@keyframes bf {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-55px) scale(1.07); }
  66%     { transform: translate(-28px,30px) scale(.93); }
}

/* ════════════════════════════════════════════════════
   GLASS UTILITIES
   ════════════════════════════════════════════════════ */
.glass {
  background: var(--g-bg2);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 3px solid var(--g-bd);
  box-shadow: var(--g-sh);
}
.glass-deep {
  background: var(--g-bg);
  backdrop-filter: blur(42px) saturate(200%);
  -webkit-backdrop-filter: blur(42px) saturate(200%);
  border: 3px solid var(--g-bd2);
  box-shadow:
    0 20px 70px rgba(0,0,0,.065),
    inset 0 2px   0 rgba(255,255,255,.95),
    inset 0 -1px  0 rgba(0,0,0,.03),
    inset 2px 0   0 rgba(255,255,255,.6),
    0 1px 2px rgba(255,255,255,.7);
}

/* Highlight superior reutilizable (::before en el elemento) */
.glass-hi::before {
  content: ''; pointer-events: none;
  position: absolute; top: 0; left: 6%; right: 6%; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.52) 0%, transparent 100%);
  border-radius: inherit; z-index: 1;
}

/* ════════════════════════════════════════════════════
   BOTONES — físico glossy (ref. imagen teal dome)
   ════════════════════════════════════════════════════
   Técnica:
   · Gradiente de cuerpo: borde superior claro → cuerpo medio → base oscura
   · ::before  → cúpula gloss (white dome en la mitad superior)
   · ::after   → shimmer diagonal en hover
   · box-shadow inset: borde inferior oscuro = peso/profundidad
   · box-shadow exterior: sombra coloreada + drop shadow
   ════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .875rem;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s;
  text-decoration: none; white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

/* Cúpula gloss compartida (::before) */
.btn::before {
  content: ''; pointer-events: none;
  position: absolute;
  top: 3px; left: 6%; right: 6%;
  height: 48%;
  background: linear-gradient(180deg,
    rgba(255,255,255,.70) 0%,
    rgba(255,255,255,.22) 60%,
    rgba(255,255,255,.00) 100%);
  /* Forma oval/dome: bordes superiores cuadrados, inferior redondeado */
  border-radius: 3px 3px 60% 60% / 3px 3px 100% 100%;
  z-index: 1;
}

/* Shimmer diagonal (::after) */
.btn::after {
  content: ''; pointer-events: none;
  position: absolute; top: 0; left: -120%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.38),
    transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ease);
  z-index: 2;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(1px) scale(.985); filter: brightness(.94); }

/* ── TEAL: botón primario sólido (coincide con la imagen de referencia) ── */
.btn-teal {
  /* Gradiente vertical: borde sup claro → cuerpo teal → base más oscura */
  background: linear-gradient(180deg,
    #4DBAC9 0%,    /* borde superior iluminado */
    #00B4C4 18%,   /* cuerpo superior */
    #009CB0 62%,   /* cuerpo principal */
    #00768A 100%); /* base / sombra */
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
  border: 0px solid #176858;
  box-shadow:
    /* Línea luminosa en el borde interior superior */
    inset 0  2px 0 rgba(255,255,255,.55),
    /* Sombra interna en la base = peso 3D */
    inset 0 -4px 8px rgba(0,0,0,.28),
    /* Sombra exterior coloreada */
    0  6px 18px rgba(0,118,138,.45),
    0  2px  5px rgba(0,0,0,.22);
}
.btn-teal:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.55),
    inset 0 -4px 8px rgba(0,0,0,.28),
    0 10px 28px rgba(0,118,138,.55),
    0  3px  8px rgba(0,0,0,.20);
}

/* ── IRIS: botón glass iridiscente (fondo claro, tinte suave) ── */
.btn-iris {
  background: linear-gradient(180deg,
    rgba(240,253,252,.98) 0%,
    rgba(220,245,248,.95) 30%,
    rgba(200,235,245,.92) 70%,
    rgba(175,220,235,.90) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--teal-d);
  font-weight: 700;
  border: 0px solid rgba(255,255,255,.90);
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.95),
    inset 0 -3px 7px rgba(0,156,176,.18),
    0  5px 18px rgba(0,156,176,.22),
    0  2px  5px rgba(0,0,0,.08);
}
.btn-iris:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.95),
    inset 0 -3px 7px rgba(0,156,176,.18),
    0 10px 30px rgba(0,156,176,.32),
    0  3px  8px rgba(0,0,0,.10);
}

/* ── GHOST: botón neutro semitransparente ── */
.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, .72) 21%, rgba(240, 248, 252, .60) 33%, rgba(220, 238, 248, .52) 44%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text2);
    border: 0px solid rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .90), inset 0 0px 6px rgba(0, 0, 0, .06), 0 2px 12px rgba(0, 0, 0, .07), 0 1px 3px rgba(0, 0, 0, .05);
}
.btn-ghost:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,.90) 0%,
    rgba(230,248,252,.80) 100%);
  color: var(--teal);
  transform: translateY(-1px);
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.95),
    inset 0 -3px 6px rgba(0,0,0,.06),
    0  6px 18px rgba(0,156,176,.18),
    0  2px  5px rgba(0,0,0,.07);
}

/* ════════════════════════════════════════════════════
   NAVEGACIÓN
   ════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  width: 100%;                 /* nunca más ancho que el viewport */
  overflow: visible;           /* el dropdown del menú necesita salir */
  transition: padding .3s var(--ease);
}
/* Todas las secciones contienen sus hijos — evita que transforms
   de animaciones de entrada causen overflow a nivel de página */
section { overflow-x: clip; }
.nw {
  max-width: 1220px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  border-radius: var(--r);
  transition: all .3s var(--ease);
}
.nw.pill {
  background: var(--bg, #ECECEC);
  backdrop-filter: blur(4px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 0px solid rgba(255,255,255,.92);
  box-shadow:
    8px 8px 16px rgba(163,170,163,.45),
    -8px -8px 16px rgba(255,255,255,.85),
    inset 0 1.5px 0 rgba(255,255,255,.6);
  padding: 8px 24px;
}
.n-logo { display: flex; align-items: center; gap: 10px; }
.n-logo img {
  height: 34px; width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.4));
  transition: filter .3s var(--ease, ease);
}
.nw.pill .n-logo img {
  filter: drop-shadow(0 2px 6px rgba(0,156,176,.18));
}
.n-brand {
  font-weight: 800; font-size: .88rem;
  letter-spacing: .08em; color: var(--teal);
}
.n-links { display: flex; gap: 2px; list-style: none; }
.n-links a {
  font-size: .95rem; font-weight: 600; color: #fff;
  padding: 8px 16px; border-radius: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.4);
  transition: color .25s, background .25s, text-shadow .25s, backdrop-filter .25s;
}
.n-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}
.nw.pill .n-links a {
  font-size: .84rem; font-weight: 500; color: var(--text2);
  padding: 7px 13px;
  text-shadow: none;
}
.nw.pill .n-links a:hover {
  color: var(--teal);
  background: rgba(0,156,176,.09);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.n-right { display: flex; align-items: center; gap: 8px; }
.nl-extra { display: none; }
.lang-sw { display: flex; gap: 3px; }
.lb {
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.78);
  color: var(--text2); padding: 4px 11px;
  border-radius: 6px;
  font-size: .72rem; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.lb:hover, .lb.on {
  background: rgba(0,156,176,.12);
  color: var(--teal);
  border-color: rgba(0,156,176,.28);
}
.mb-btn {
  display: none;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px; padding: 8px 11px;
  cursor: pointer; font-size: 1.1rem; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  transition: background .25s, color .25s, text-shadow .25s;
}
.mb-btn:hover { background: rgba(255,255,255,.28); }
.nw.pill .mb-btn {
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.78);
  color: var(--text2);
  text-shadow: none;
}
.nw.pill .mb-btn:hover { background: rgba(255,255,255,.65); }

/* ════════════════════════════════════════════════════
   HERO · PANORAMA 360°
   ════════════════════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%; height: 100vh;
  min-height: 640px; overflow: hidden;
}
#pano-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  display: block; cursor: grab; z-index: 0;
}
#pano-canvas:active { cursor: grabbing; }

/* Capa de niebla sobre el panorama para que el panel destaque */
.hero-fog {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg,
    rgba(237,242,247,.45) 0%,
    rgba(237,242,247,.10) 55%,
    rgba(237,242,247,.22) 100%);
  pointer-events: none;
}

.hero-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  padding: 90px max(5vw, 24px) 60px;
  pointer-events: none; /* canvas recibe los eventos del panorama */
}

/* ── Panel glass hero · vidrio apavonado ─────────────
   Misma física que los botones:
   · Superficie opaca-traslúcida (vidrio esmerilado/apavonado)
   · Cúpula gloss ::before en la mitad superior
   · Gradiente de cuerpo: borde sup iluminado → centro → base con peso
   · Borde sólido blanco para definición del contorno
   · Sombra interna inferior = profundidad 3D
   · Sombra exterior coloreada + drop shadow
   ────────────────────────────────────────────────── */
/* .hero-glass-panel definido más abajo, junto a las ventanas UX/UI,
   con el vidrio más translúcido/esmerilado. */

@keyframes panelIn {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 6px; padding: 5px 14px;
  font-size: .73rem; font-weight: 600; color: var(--teal);
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  animation: panelIn .7s var(--ease) .30s both;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: pdot 2.2s ease-in-out infinite;
}
@keyframes pdot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.35; transform:scale(.65); }
}
.hero-h1 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800; line-height: 1.1; color: var(--text);
  margin-bottom: 16px;
  animation: panelIn .7s var(--ease) .38s both;
}
.h1-teal { color: var(--teal); }
.hero-p {
  font-size: .95rem; color: var(--text2);
  line-height: 1.78; margin-bottom: 28px;
  animation: panelIn .7s var(--ease) .46s both;
}
.hero-btns {
  display: flex; gap: 9px; flex-wrap: wrap;
  margin-bottom: 32px;
  animation: panelIn .7s var(--ease) .54s both;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: rgba(0,0,0,.07);
  border-radius: var(--r-sm); overflow: hidden;
  animation: panelIn .7s var(--ease) .62s both;
}
.stat-c {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  padding: 13px 8px; text-align: center;
}
.stat-n { font-size: 1.65rem; font-weight: 800; color: var(--teal); display: block; }
.stat-l { font-size: .69rem; color: var(--text2); margin-top: 1px; }

/* Indicador arrastrar */
.pano-hint {
  position: absolute; bottom: 38px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  background: rgba(255,255,255,.38);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 3px; padding: 8px 22px;
  font-size: .78rem; font-weight: 500; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
  transition: opacity .5s;
  animation: hintIn .8s var(--ease) 1.8s both;
}
@keyframes hintIn {
  from { opacity:0; transform: translateX(-50%) translateY(10px); }
  to   { opacity:1; transform: translateX(-50%); }
}
.pano-hint-icon { font-size: 1.05rem; animation: sway 2.4s ease-in-out infinite; }
@keyframes sway {
  0%,100% { transform: rotate(-9deg); }
  50%     { transform: rotate(9deg); }
}

/* ════════════════════════════════════════════════════
   HERO · VIDEO (primera mitad)
   ════════════════════════════════════════════════════ */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
  transform: scale(1);
  transition: transform 1.1s cubic-bezier(.16,.8,.24,1);
  will-change: transform;
}
.hero-video-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg,
    rgba(48,61,50,.58) 0%,
    rgba(48,61,50,.30) 45%,
    rgba(48,61,50,.42) 100%);
  pointer-events: none;
}
.hero-scroll-cue {
  position: absolute; bottom: 30px; left: 50%; z-index: 3;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 100px;
}
.hero-scroll-cue span {
  position: absolute; top: 7px; left: 50%;
  width: 4px; height: 8px; border-radius: 100px;
  background: #fff; transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { opacity: 1; top: 7px; }
  70%  { opacity: .2; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ── HERO · Ventanas flotantes UX / UI ──────────────
   Wrapper externo: recibe el parallax por JS (transform).
   Cada item es su propio .hero-glass-panel (vidrio esmerilado
   independiente) con flote continuo (keyframes) y delay propio
   para que el conjunto se sienta orgánico, no sincronizado. */
.hero-float-outer {
  position: absolute; top: 24%; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  width: 224px;
  transition: transform .6s cubic-bezier(.16,.8,.24,1);
  will-change: transform;
  pointer-events: none;
}
.hero-float-left  { left: clamp(20px, 5.5vw, 70px); }
.hero-float-right { right: clamp(20px, 5.5vw, 70px); align-items: flex-end; }

/* Vidrio más translúcido y esmerilado (menos "tarjeta blanca sólida",
   más "cristal opaco" real que deja ver el video detrás). */
.hero-glass-panel {
  pointer-events: auto;
  max-width: 530px;
  width: 100%;
  background: linear-gradient(170deg,
    rgba(255,255,255,.30) 0%,
    rgba(240,248,252,.22) 45%,
    rgba(228,242,248,.16) 100%);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(255,255,255,.40);
  border-radius: var(--r-lg);
  padding: 38px 42px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.55),
    inset 3px 0  0 rgba(255,255,255,.20),
    inset 0 -5px 14px rgba(0,0,0,.12),
    0 24px 60px rgba(0,156,176,.14),
    0  8px 24px rgba(0,0,0,.16);
  animation: panelIn .85s var(--ease) .15s both;
}

/* Modificador: item pequeño de las ventanas UX/UI */
.hfp-item.hero-glass-panel {
  max-width: none; width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  animation: hfpFloat 6.6s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 2px 0 0 rgba(255,255,255,.16),
    0 14px 30px rgba(0,0,0,.22);
}
.hfp-item .hfp-txt {
  display: flex; align-items: center; gap: 10px;
  font-size: .83rem; font-weight: 600; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  line-height: 1.3;
}
.hfp-item .hfp-dot {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-l, var(--teal));
  box-shadow: 0 0 6px rgba(0,156,176,.8);
}
.hfp-d1 { animation-delay: 0s;    animation-duration: 6.4s; }
.hfp-d2 { animation-delay: .35s; animation-duration: 7.1s; }
.hfp-d3 { animation-delay: .7s;  animation-duration: 6.7s; }
.hfp-d4 { animation-delay: 1.05s; animation-duration: 7.4s; }
.hfp-d5 { animation-delay: .2s;  animation-duration: 6.9s; }

@keyframes hfpFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-.4deg); }
}
.hfp-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  color: #fff; background: rgba(0,156,176,.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
@media (max-width: 1180px) {
  .hero-float-outer { width: 196px; }
  .hfp-item.hero-glass-panel { padding: 11px 15px; }
}
@media (max-width: 900px) {
  .hero-float-outer { display: none; }
}

/* ════════════════════════════════════════════════════
   HERO · MENÚ MINIMALISTA (segunda mitad)
   ════════════════════════════════════════════════════ */
.hero-menu-section {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--bg);
  position: relative;
}
.hero-menu-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 60px; align-items: center; width: 100%;
  padding: 80px 28px;
}
.hero-menu-nav { display: flex; flex-direction: column; }
.hero-menu-link {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 6px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700;
  color: var(--text); border-bottom: 1px solid rgba(0,0,0,.06);
  transition: color .25s ease, padding-left .25s ease, box-shadow .25s ease;
  border-radius: var(--r-sm, 6px);
}
.hero-menu-link:hover, .hero-menu-link:focus-visible {
  color: var(--teal);
  padding-left: 16px;
  box-shadow: inset 4px 0 0 var(--teal);
}
.hml-num {
  font-size: .85rem; font-weight: 700; color: var(--text3);
  min-width: 34px;
}
.hero-menu-side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.hero-menu-social { display: flex; gap: 12px; }
.hero-menu-note { font-size: .8rem; color: var(--text3); max-width: 260px; line-height: 1.6; }

@media (max-width: 860px) {
  .hero-menu-grid { grid-template-columns: 1fr; gap: 36px; padding: 60px 24px; }
  .hero-menu-side { align-items: flex-start; }
}

/* ════════════════════════════════════════════════════
   LAYOUT GENERAL
   ════════════════════════════════════════════════════ */
.c { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
section:not(#hero) { padding: 100px 0; }

.s-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .71rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,156,176,.09);
  border: 1px solid rgba(0,156,176,.20);
  border-radius: 3px; padding: 5px 14px;
  margin-bottom: 16px;
}
.s-title {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 13px;
}
.s-sub {
  font-size: .97rem; color: var(--text2);
  max-width: 580px; line-height: 1.76;
  margin-bottom: 52px;
}

/* ════════════════════════════════════════════════════
   PROTECCIÓN · Banner con gradiente animado (antes de Historia)
   ════════════════════════════════════════════════════ */
#proteccion.protect-section {
  position: relative;
  min-height: 40vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 0 !important; /* pisa section:not(#hero){padding:100px 0} */
  /* Marco sutil que separa la sección del video (arriba) y de
     Historia (abajo), sin usar una línea dura/sólida. */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(255,255,255,.10),
    inset 1px 0 0 rgba(255,255,255,.05),
    inset -1px 0 0 rgba(255,255,255,.05);
}
.protect-gradient {
  position: absolute; inset: -10%; z-index: 0; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #081b21 0%, #030f13 55%, #01080a 100%);
  animation: pgHue 14s linear infinite, pgPulse 8s ease-in-out infinite;
}
@keyframes pgHue {
  0%   { filter: hue-rotate(0deg) saturate(112%) brightness(.94); }
  50%  { filter: hue-rotate(24deg) saturate(135%) brightness(1); }
  100% { filter: hue-rotate(0deg) saturate(112%) brightness(.94); }
}
@keyframes pgPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
/* Capa extra: remolino cónico girando muy lento, para que el gas
   también parezca rotar sobre sí mismo, no solo desplazarse. */
.protect-gradient::before {
  content: ''; position: absolute; inset: -20%;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(0,156,176,.16) 90deg,
    transparent 180deg, rgba(77,186,201,.14) 270deg, transparent 360deg);
  filter: blur(70px);
  mix-blend-mode: screen;
  animation: pgSpin 40s linear infinite;
}
@keyframes pgSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Nubes de "gas" superpuestas con mix-blend-mode:screen, cada una con
   su propia trayectoria y velocidad para que el movimiento no se sienta
   sincronizado (efecto gaseoso, no de "burbujas" mecánicas). */
.protect-gradient span {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: screen;
}
.protect-gradient .pg1 {
  width: 62%; height: 145%; top: -22%; left: -14%;
  background: radial-gradient(circle, #9de3d6 0%, var(--teal-l, #4DBAC9) 35%, var(--teal, #009CB0) 60%, transparent 76%);
  opacity: .42;
  animation: pgFlow1 13s ease-in-out infinite;
}
.protect-gradient .pg2 {
  width: 58%; height: 135%; top: -14%; right: -18%;
  background: radial-gradient(circle, var(--teal, #009CB0) 0%, var(--teal-d, #00768A) 58%, transparent 78%);
  opacity: .5;
  animation: pgFlow2 16s ease-in-out infinite;
}
.protect-gradient .pg3 {
  width: 54%; height: 105%; bottom: -34%; left: 20%;
  background: radial-gradient(circle, #6fcfc0 0%, var(--teal, #009CB0) 52%, transparent 76%);
  opacity: .4;
  animation: pgFlow3 11s ease-in-out infinite 1.5s;
}
.protect-gradient .pg4 {
  width: 34%; height: 66%; top: 26%; left: 36%;
  background: radial-gradient(circle, #bdeee2 0%, var(--teal-l, #4DBAC9) 55%, transparent 78%);
  opacity: .32;
  animation: pgFlow4 9s ease-in-out infinite .8s;
}
.protect-gradient .pg5 {
  width: 40%; height: 80%; top: 40%; right: 5%;
  background: radial-gradient(circle, #4DBAC9 0%, var(--teal-d, #00768A) 60%, transparent 78%);
  opacity: .32;
  animation: pgFlow5 17s ease-in-out infinite 2.4s;
}
@keyframes pgFlow1 {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  25%      { transform: translate(14%,-12%) scale(1.28) rotate(14deg); }
  50%      { transform: translate(-9%,14%) scale(.86) rotate(-11deg); }
  75%      { transform: translate(11%,7%) scale(1.14) rotate(8deg); }
}
@keyframes pgFlow2 {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  30%      { transform: translate(-18%,10%) scale(1.22) rotate(-16deg); }
  60%      { transform: translate(11%,-16%) scale(.82) rotate(13deg); }
}
@keyframes pgFlow3 {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  40%      { transform: translate(13%,13%) scale(1.24) rotate(10deg); }
  70%      { transform: translate(-13%,-9%) scale(.84) rotate(-9deg); }
}
@keyframes pgFlow4 {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  50%      { transform: translate(-18%,18%) scale(1.4) rotate(-14deg); }
}
@keyframes pgFlow5 {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  35%      { transform: translate(-14%,-10%) scale(1.2) rotate(9deg); }
  65%      { transform: translate(10%,12%) scale(.88) rotate(-7deg); }
}
.protect-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; text-align: center; padding: 40px 24px;
}
.protect-line {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: .01em; line-height: 1.08;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity 1s var(--ease), transform .6s cubic-bezier(.16,.8,.24,1);
  will-change: transform;
}
/* Translúcidos a propósito: dejan ver el gradiente gaseoso detrás. */
.protect-line-1 { color: rgba(255,255,255,.5); font-weight: 600; }
.protect-line-2 { color: rgba(255,255,255,.78); font-weight: 800; }
.protect-line-1.rv { transform: translateX(140px); }
.protect-line-2.rv { transform: translateX(-140px); }
.protect-line.rv.vis { opacity: 1; transform: translateX(0); }

@media (max-width: 700px) {
  .protect-line { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .protect-line-1.rv { transform: translateX(40px); }
  .protect-line-2.rv { transform: translateX(-40px); }
}
@media (max-width: 480px) {
  /* En móvil estrecho el translateX horizontal causa overflow → animación solo vertical */
  .protect-line-1.rv { transform: translateY(20px); }
  .protect-line-2.rv { transform: translateY(20px); }
}
@media (prefers-reduced-motion: reduce) {
  .protect-gradient, .protect-gradient span, .protect-gradient::before { animation: none !important; }
  .protect-line.rv { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════════════════════════
   SECCIÓN HISTORIA
   ════════════════════════════════════════════════════ */
#historia .hg { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.tl { display: flex; flex-direction: column; gap: 16px; }

/* Tarjetas neumórficas del timeline (reemplazan el antiguo tl-item) */
.tl-nm-card { align-items: flex-start; }
.tl-nm-year { font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--nm-accent, var(--teal)); margin-bottom: 3px; }
.tl-nm-card b { display: block; font-size: 1rem; font-weight: 700; color: var(--nm-text, var(--text)); margin-bottom: 4px; }
.tl-nm-card span { font-size: .84rem; color: var(--nm-text2, var(--text2)); line-height: 1.6; }

/* Ícono SVG tintado al color de acento vía CSS mask (exacto, sin filtros aproximados) */
.ico-mask {
  display: block; width: 26px; height: 26px;
  background: var(--nm-accent, var(--teal));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}

.vision-card {
  border-radius: var(--r); padding: 34px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 13px;
}
.vision-card::before {
  content: ''; pointer-events: none;
  position: absolute; top: 0; left: 7%; right: 7%; height: 36%;
  background: linear-gradient(180deg, rgba(255,255,255,.52) 0%, transparent 100%);
  border-radius: var(--r);
}
.v-icon {
  width: 58px; height: 58px; border-radius: 3px;
  background: rgba(0,156,176,.1);
  border: 1px solid rgba(0,156,176,.18);
  display: flex; align-items: center;
  justify-content: center; font-size: 1.65rem;
}
.v-title { font-size: 1.22rem; font-weight: 800; color: var(--teal); }
.v-txt {
  font-size: .875rem; color: var(--text2);
  line-height: 1.72; max-width: 270px;
}

/* ════════════════════════════════════════════════════
   SECCIÓN PROCESO 360° — Flow Cards
   Layout serpenteante: fila 1 (01→02→03), fila 2 (04→05→06)
   ════════════════════════════════════════════════════ */
#proceso .pf-wrap { display: flex; flex-direction: column; gap: 0; }

/* Fila de 3 tarjetas */
.pf-row {
  display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr;
  gap: 0; align-items: center;
}
.pf-row.rev { direction: rtl; }
.pf-row.rev .pf-card { direction: ltr; }

/* Conector horizontal entre tarjetas */
.pf-arrow-h {
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,156,176,.35); font-size: .9rem;
}
.pf-row.rev .pf-arrow-h { transform: scaleX(-1); }

/* Conector de vuelta (derecha→abajo→izquierda) */
.pf-turn {
  display: flex; justify-content: flex-end; align-items: flex-start;
  padding: 0 0 0 0; height: 48px; position: relative;
}
.pf-turn::before {
  content: '';
  position: absolute; right: 14px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    rgba(0,156,176,.30) 0%,
    rgba(0,156,176,.55) 100%);
  border-radius: 3px;
}
.pf-turn::after {
  content: '↓';
  position: absolute; right: 6px; bottom: -4px;
  color: rgba(0,156,176,.55); font-size: .85rem;
}

/* Tarjeta de proceso */
.pf-card {
  border-radius: 6px; padding: 20px 18px 16px;
  position: relative; overflow: hidden;
  cursor: pointer;
  background: linear-gradient(160deg,
    rgba(255,255,255,.82) 0%,
    rgba(232,245,252,.72) 100%);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 3px solid rgba(255,255,255,.88);
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.95),
    inset 0 -3px 8px rgba(0,0,0,.05),
    0  5px 20px rgba(0,0,0,.08),
    0  2px  5px rgba(0,0,0,.05);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s, background .22s;
}
/* Gloss dome */
.pf-card::before {
  content: ''; pointer-events: none; position: absolute;
  top: 2px; left: 5%; right: 5%; height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,.65) 0%, transparent 100%);
  border-radius: 4px 4px 50% 50% / 4px 4px 100% 100%;
  z-index: 0;
}
/* Destello iridiscente */
.pf-card::after {
  content: ''; pointer-events: none; position: absolute;
  top: -10%; right: 15%; width: 70px; height: 120%;
  background: radial-gradient(ellipse,
    rgba(200,150,220,.20) 0%,
    rgba(150,180,230,.12) 40%,
    transparent 70%);
  filter: blur(12px); z-index: 0;
}
.pf-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.95),
    inset 0 -3px 8px rgba(0,0,0,.05),
    0 10px 32px rgba(0,156,176,.18),
    0  3px  8px rgba(0,0,0,.08);
}
.pf-card.active {
  border-color: rgba(0,156,176,.60);
  background: linear-gradient(160deg,
    rgba(240,252,255,.90) 0%,
    rgba(215,242,252,.84) 100%);
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.98),
    inset 0 -3px 8px rgba(0,0,0,.04),
    0  0  0  3px rgba(0,156,176,.12),
    0  8px 28px rgba(0,156,176,.22),
    0  3px  8px rgba(0,0,0,.07);
}

/* Tornillos */
.pf-card .screw { position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(170,195,210,.65) 60%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 1px 2px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.88);
  z-index: 3; }
.pf-card .screw-tl { top: 6px; left: 6px; }
.pf-card .screw-tr { top: 6px; right: 6px; }
.pf-card .screw-bl { bottom: 6px; left: 6px; }
.pf-card .screw-br { bottom: 6px; right: 6px; }

/* Encabezado de tarjeta: ícono izq + placa núm der */
.pf-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 14px;
  position: relative; z-index: 2;
}

/* Ícono cuadrado biselado */
.pf-ico {
  width: 52px; height: 52px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(150deg,
    rgba(255,255,255,.96) 0%,
    rgba(208,236,250,.86) 100%);
  border: 3px solid rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.98),
    inset 0 -2px 6px rgba(0,0,0,.09),
    0  3px 10px rgba(0,0,0,.11);
}
.pf-ico::before {
  content: ''; pointer-events: none; position: absolute;
  top: 2px; left: 8%; right: 8%; height: 44%;
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, transparent 100%);
  border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%;
}
.pf-ico svg {
  width: 24px; height: 24px; position: relative; z-index: 1;
  stroke: rgba(75,130,155,.72); fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Placa de número */
.pf-num {
  width: 44px; height: 44px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(150deg,
    rgba(255,255,255,.90) 0%,
    rgba(205,232,248,.80) 100%);
  border: 3px solid rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,.98),
    inset 0 -2px 6px rgba(0,0,0,.08),
    0  3px 10px rgba(0,0,0,.10);
  font-size: 1.1rem; font-weight: 900; letter-spacing: -.03em;
  color: rgba(75,130,155,.45); line-height: 1;
}
.pf-num::before {
  content: ''; pointer-events: none; position: absolute;
  top: 2px; left: 8%; right: 8%; height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, transparent 100%);
  border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%;
}

/* Texto de la tarjeta */
.pf-name {
  font-size: .88rem; font-weight: 800; color: var(--text);
  margin-bottom: 5px; position: relative; z-index: 2;
  letter-spacing: -.01em;
}
.pf-desc {
  font-size: .76rem; color: var(--text2); line-height: 1.58;
  position: relative; z-index: 2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pf-tags-mini {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 10px; position: relative; z-index: 2;
}
.pf-tag {
  font-size: .63rem; font-weight: 600; color: var(--teal);
  background: rgba(0,156,176,.08);
  border: 1px solid rgba(0,156,176,.18);
  border-radius: 3px; padding: 2px 7px;
}

/* Imagen en ícono de tarjeta — filtro plateado-teal */
.pf-ico img {
  width: 28px; height: 28px; object-fit: contain; position: relative; z-index: 1;
  filter: brightness(0) saturate(0) invert(45%) sepia(30%) saturate(350%) hue-rotate(160deg);
  transition: filter .2s;
}
.pf-card.active .pf-ico img {
  filter: brightness(0) saturate(100%) invert(40%) sepia(55%) saturate(400%) hue-rotate(155deg) brightness(95%);
}

/* Panel de detalle expandido */
.pf-detail {
  border-radius: 6px; padding: 28px 32px; margin-top: 20px;
  position: relative; overflow: hidden;
  display: none;
}
.pf-detail.show { display: block; }
.pf-detail-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.pf-detail-ico {
  width: 64px; height: 64px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.96) 0%, rgba(208,236,250,.86) 100%);
  border: 3px solid rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.98), 0 3px 10px rgba(0,0,0,.11);
}
.pf-detail-ico::before {
  content: ''; pointer-events: none; position: absolute;
  top: 2px; left: 8%; right: 8%; height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, transparent 100%);
  border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%;
}
.pf-detail-ico img {
  width: 34px; height: 34px; object-fit: contain; position: relative; z-index: 1;
  filter: brightness(0) saturate(100%) invert(40%) sepia(55%) saturate(400%) hue-rotate(155deg) brightness(90%);
}
.pf-detail-step { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.pf-detail-title { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.pf-detail-desc { font-size: .875rem; color: var(--text2); line-height: 1.75; margin-bottom: 16px; }
.pf-detail-del {
  background: rgba(0,156,176,.07); border: 1px solid rgba(0,156,176,.16);
  border-radius: 3px; padding: 12px 16px;
  font-size: .84rem; color: var(--text2);
}
.pf-detail-del strong { color: var(--teal); }

/* (estilos de rueda SVG y step-card eliminados — reemplazados por pf-card flow) */

/* ════════════════════════════════════════════════════
   PROCESO 360° · fondo de video claro + riel de ventanas
   flotantes (Glassmorphism), ancho completo. El panel de
   detalle sigue siendo actualizado por pfPick() en app.js
   (mismos IDs). Las estadísticas viven en su propia franja
   gris oscuro debajo del riel.
   ════════════════════════════════════════════════════ */
#proceso.proceso-video-section {
  position: relative;
  overflow: hidden;
}
.proceso-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Orientado al blanco: vela el video con blancos translúcidos
   en vez de oscurecerlo, para que la sección se sienta clara. */
.proceso-video-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(255,255,255,.74) 0%,
    rgba(255,255,255,.55) 45%,
    rgba(255,255,255,.82) 100%);
  pointer-events: none;
}
#proceso .c { position: relative; z-index: 2; }

/* Panel de detalle — vidrio claro esmerilado sobre el video */
.orbit-detail {
  background: var(--gl-bg, rgba(255,255,255,.4));
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--gl-border, rgba(255,255,255,.65));
  border-radius: 20px; padding: 30px 28px; max-width: 420px;
  margin: 0 auto 40px;
  box-shadow: var(--gl-shadow, 0 8px 32px rgba(48,61,50,.12)), inset 0 1px 0 rgba(255,255,255,.6);
}
.orbit-detail-label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.orbit-detail-title { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 10px; line-height: 1.25; }
.orbit-detail-desc { font-size: .88rem; color: var(--text2); line-height: 1.72; margin-bottom: 16px; }
.orbit-detail-del {
  font-size: .8rem; color: var(--text2); margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.orbit-detail-del strong { color: var(--teal); }

/* Riel de ventanas flotantes — slider continuo (Splide + AutoScroll),
   ancho completo, 110px de alto, SIN flechas ni paginación: se
   desplaza solo de derecha a izquierda y se puede arrastrar con el
   mouse/dedo en cualquier momento (se detiene al pasar el mouse). */
.proceso-rail.splide {
  position: relative; z-index: 2;
  width: 100%; height: 110px;
}
.proceso-rail .splide__track,
.proceso-rail .splide__list { height: 100%; }
.proceso-rail .splide__slide {
  width: clamp(120px, 15vw, 190px);
  display: flex; align-items: center; justify-content: center;
}

/* Ventana individual — Glassmorphism, reemplaza el círculo-ícono
   del arco anterior */
.pf-card.rail-item {
  all: unset;
  width: 100%; height: 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; text-align: center;
  border-radius: 18px;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 14px 32px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.75);
  cursor: grab; box-sizing: border-box;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pf-card.rail-item.active, .pf-card.rail-item:hover, .pf-card.rail-item:focus-visible {
  background: rgba(0,156,176,.85);
  border-color: rgba(0,156,176,.9);
  box-shadow: 0 16px 34px rgba(0,156,176,.28), inset 0 1px 0 rgba(255,255,255,.4);
}
.orbit-ico-mask {
  display: block; width: 22px; height: 22px; background: var(--teal);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  transition: background .25s ease;
}
.pf-card.rail-item.active .orbit-ico-mask, .pf-card.rail-item:hover .orbit-ico-mask { background: #fff; }
.rail-label {
  font-size: .7rem; font-weight: 700; color: var(--text);
  line-height: 1.22; max-width: 90%;
  transition: color .25s ease;
}
.pf-card.rail-item.active .rail-label, .pf-card.rail-item:hover .rail-label { color: #fff; }

/* ── Proceso 360° · Slider 3D de videos + popup glass ──
   Anillo 3D (preserve-3d) con los 6 videos numerados: gira solo,
   se arrastra con mouse/dedo y se inclina siguiendo el cursor.
   Clic en un video → popup de vidrio con el detalle del paso;
   al cerrarlo el carrusel continúa (app.js, módulo 2). */
.proceso-head { text-align: center; }

.p3d-stage {
  position: relative; height: 480px; margin-top: 10px;
  perspective: 1300px;
  touch-action: pan-y;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.p3d-stage:active { cursor: grabbing; }
.p3d-ring {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-6deg);
}
.p3d-card {
  position: absolute; margin: 0;
  width: 300px; height: 180px;
  left: -150px; top: -90px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.35);
  box-shadow: 0 18px 44px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.6);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  transition: box-shadow .25s ease;
}
.p3d-card:hover,
.p3d-card:focus-visible {
  box-shadow: 0 22px 54px rgba(0,156,176,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.p3d-card video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.p3d-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,.6);
}
.p3d-num {
  font-weight: 900; font-size: .8rem; color: #fff;
  background: var(--teal); border-radius: 8px;
  padding: 3px 8px; line-height: 1;
}
.p3d-name {
  font-size: .74rem; font-weight: 700; color: var(--text);
  line-height: 1.2;
}
.p3d-hint {
  text-align: center; font-size: .78rem; color: var(--text2);
  margin-top: 8px;
}

/* Popup de vidrio con el detalle del paso */
.p3d-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.p3d-modal[hidden] { display: none; }
.p3d-modal-back {
  position: absolute; inset: 0;
  background: rgba(24,34,28,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.p3d-modal-card {
  position: relative; z-index: 1;
  width: min(880px, 100%);
  display: grid; grid-template-columns: 1.1fr 1fr;
  border-radius: 8px; overflow: hidden;
  background: var(--gl-bg, rgba(255,255,255,.5));
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 40px 90px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.65);
  animation: p3dIn .3s cubic-bezier(.22,1,.36,1);
}
@keyframes p3dIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.p3d-modal-media { position: relative; min-height: 320px; }
.p3d-modal-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.p3d-modal-media .p3d-num {
  position: absolute; top: 14px; left: 14px;
  font-size: 1rem; padding: 6px 12px;
}
.p3d-modal-info { padding: 30px 30px 26px; }
.p3d-close {
  all: unset; position: absolute; z-index: 2; top: 12px; right: 12px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7);
  transition: background .2s ease, color .2s ease;
}
.p3d-close:hover { background: var(--teal); color: #fff; }

@media (max-width: 700px) {
  .p3d-stage { height: 360px; perspective: 1000px; }
  .p3d-card { width: 210px; height: 132px; left: -105px; top: -66px; }
  .p3d-modal-card { grid-template-columns: 1fr; max-height: 88vh; overflow: auto; }
  .p3d-modal-media { min-height: 200px; }
}

/* Franja de estadísticas — color gris oscuro sólido existente */
.proceso-stats-band {
  position: relative; z-index: 2;
  width: 100%;
  background: var(--nm-dark, var(--text, #303D32));
  padding: 34px 0;
}
.proceso-stats-band .orbit-stats {
  position: static; right: auto; top: auto; transform: none; z-index: auto;
  flex-direction: row; justify-content: center; gap: 56px;
}
.proceso-stats-band .orbit-stats .nm-stat { align-items: center; }
.proceso-stats-band .orbit-stats .nm-stat b { font-size: 1.9rem; color: var(--teal-l, var(--teal)); }
.proceso-stats-band .orbit-stats .nm-stat span { color: rgba(255,255,255,.8); }

@media (max-width: 900px) {
  .proceso-rail.splide { height: 96px; }
  .proceso-rail .splide__slide { width: 128px; }
  .pf-card.rail-item { height: 72px; }
}
@media (max-width: 700px) {
  .proceso-stats-band .orbit-stats { flex-direction: column; gap: 18px; align-items: center; }
}

/* ════════════════════════════════════════════════════
   SECCIÓN SERVICIOS · slider "The Ecosystem" (brain.space)
   Sin flechas ni puntos (no encajaban con el neumorphism):
   avanza solo (autoplay) y se controla arrastrando con el
   mouse/dedo — el neumorphism de las tarjetas manda, sin
   "botones" ajenos al lenguaje visual del sitio.
   ════════════════════════════════════════════════════ */
#servicios .eco-slider { position: relative; }
#servicios .eco-slider .splide__slide { height: auto; }
#servicios .eco-slider .svc { height: 100%; cursor: grab; }
#servicios .eco-slider .splide__track { cursor: grab; }
#servicios .eco-slider.is-active .splide__track:active { cursor: grabbing; }

/* Neumorphism — sobre-escribe la clase .glass que trae el elemento en el PHP */
.svc {
  background: var(--bg) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 20px; padding: 28px;
  position: relative; overflow: hidden;
  box-shadow: 8px 8px 16px rgba(163,170,163,.45), -8px -8px 16px rgba(255,255,255,.85) !important;
  transition: transform .28s var(--ease), box-shadow .28s;
}
.svc::before { content: none; }
.svc:hover {
  transform: translateY(-5px);
  box-shadow:
    10px 10px 20px rgba(163,170,163,.5),
    -10px -10px 20px rgba(255,255,255,.9) !important;
}
.svc-i {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--bg);
  border: none;
  display: flex; align-items: center;
  justify-content: center; font-size: 1.35rem;
  margin-bottom: 16px; color: var(--teal);
  box-shadow: inset 3px 3px 7px rgba(163,170,163,.45), inset -3px -3px 7px rgba(255,255,255,.85);
}
.svc-t { font-size: .95rem; font-weight: 700; margin-bottom: 7px; }
.svc-d { font-size: .84rem; color: var(--text2); line-height: 1.65; }

/* ════════════════════════════════════════════════════
   SECCIÓN PORTFOLIO
   ════════════════════════════════════════════════════ */
#portfolio .pf { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.pfb {
  background: var(--bg);
  border: none;
  color: var(--text2); padding: 9px 18px;
  border-radius: 100px; font-size: .79rem;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  font-weight: 600; transition: all .2s;
  box-shadow: 4px 4px 8px rgba(163,170,163,.45), -4px -4px 8px rgba(255,255,255,.85);
}
.pfb:hover, .pfb.on {
  color: var(--teal);
  box-shadow: inset 3px 3px 6px rgba(163,170,163,.45), inset -3px -3px 6px rgba(255,255,255,.85);
}
#portfolio .pg { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.pc {
  background: var(--bg) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 20px; overflow: hidden;
  position: relative;
  box-shadow: 8px 8px 16px rgba(163,170,163,.45), -8px -8px 16px rgba(255,255,255,.85) !important;
  transition: transform .28s var(--ease), box-shadow .28s;
  cursor: pointer;
}
.pc:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 22px rgba(163,170,163,.5), -10px -10px 22px rgba(255,255,255,.9) !important;
}
.pc-thumb {
  height: 142px; margin: 12px; border-radius: 14px;
  display: flex; align-items: center;
  justify-content: center; font-size: 2.8rem;
}
.pc-body { padding: 8px 20px 22px; }
.pc-type {
  font-size: .68rem; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.pc-name  { font-size: .93rem; font-weight: 700; margin-bottom: 6px; }
.pc-desc  {
  font-size: .79rem; color: var(--text2); line-height: 1.6; margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip  {
  background: var(--bg); border-radius: 100px;
  padding: 3px 10px; font-size: .67rem; color: var(--text2);
  box-shadow: inset 2px 2px 4px rgba(163,170,163,.4), inset -2px -2px 4px rgba(255,255,255,.8);
}

/* ════════════════════════════════════════════════════
   COTIZADOR
   ════════════════════════════════════════════════════ */
#cotizador .cc {
  border-radius: 3px; overflow: hidden; height: 780px;
  position: relative;
  box-shadow:
    0 24px 80px rgba(0,0,0,.07),
    inset 0 2px 0 rgba(255,255,255,.90),
    inset 0 -1px 0 rgba(0,0,0,.04);
}
#cotizador iframe { width: 100%; height: 100%; border: none; }

/* ════════════════════════════════════════════════════
   CONTACTO · Infographic Glass Panels
   Ref: paneles rectangulares con vidrio apavonado,
   tornillos en esquinas, destello iridiscente,
   ícono cuadrado biselado izq. y placa de número der.
   ════════════════════════════════════════════════════ */
#contacto .cg { display: grid; grid-template-columns: 1fr 1.55fr; gap: 42px; align-items: start; }
.info-strips { display: flex; flex-direction: column; gap: 12px; }

/* ── Panel principal · Neumorphism ── */
.info-strip {
  display: flex; align-items: center; gap: 0;
  border-radius: 100px;
  background: var(--bg) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: none !important;
  min-height: 78px;
  position: relative; overflow: hidden;
  box-shadow: 7px 7px 14px rgba(163,170,163,.45), -7px -7px 14px rgba(255,255,255,.85) !important;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.info-strip:hover {
  transform: translateY(-2px);
  box-shadow: 9px 9px 18px rgba(163,170,163,.5), -9px -9px 18px rgba(255,255,255,.9) !important;
}
.info-strip::before, .info-strip::after { content: none; }
.info-strip .screw { display: none; }

/* ── Ícono circular (izquierda) ── */
.is-ico {
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 50%;
  margin: 12px 8px 12px 12px;
  background: var(--bg);
  border: none;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  box-shadow: inset 3px 3px 7px rgba(163,170,163,.45), inset -3px -3px 7px rgba(255,255,255,.85);
}
.is-ico::before { content: none; }
.is-ico img {
  width: 24px; height: 24px; object-fit: contain;
  position: relative; z-index: 1;
  filter: brightness(0) saturate(0) invert(50%) sepia(8%) saturate(400%)
          hue-rotate(185deg) opacity(.72);
}

/* ── Cuerpo de texto (centro) ── */
.is-body {
  flex: 1; padding: 14px 10px;
  position: relative; z-index: 2;
}
.is-label {
  font-size: .70rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 4px;
}
.is-val {
  font-size: .82rem; color: var(--text2);
  font-weight: 400; line-height: 1.55;
}
.is-val strong { color: var(--text); font-weight: 700; }

/* ── Placa de número (derecha) — badge circular con acento ── */
.is-plate {
  width: 46px; height: 46px; min-height: unset;
  border-radius: 50%;
  margin: 12px 12px 12px 0;
  background: linear-gradient(155deg, var(--teal-l), var(--teal));
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 2;
  box-shadow: 3px 3px 8px rgba(0,156,176,.32);
}
.is-plate::before { content: none; }
.is-plate span {
  font-size: .95rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
  color: #fff;
  position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}

/* Legacy compat */
.ct-info { display: flex; flex-direction: column; gap: 11px; }
.ct-lb   { font-weight: 600; font-size: .84rem; margin-bottom: 2px; }

/* Formulario · Neumorphism — sobre-escribe .glass-deep del PHP */
.form-card {
  background: var(--bg) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 22px; padding: 34px;
  position: relative; overflow: hidden;
  box-shadow: 9px 9px 18px rgba(163,170,163,.45), -9px -9px 18px rgba(255,255,255,.85) !important;
}
.form-card::before { content: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 16px; }
.fg label {
  display: block; font-size: .76rem;
  font-weight: 600; color: var(--text2); margin-bottom: 6px;
}
.fg input, .fg select, .fg textarea {
  width: 100%;
  background: var(--bg);
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: .875rem; color: var(--text);
  transition: box-shadow .22s;
  box-shadow: inset 4px 4px 8px rgba(163,170,163,.4), inset -4px -4px 8px rgba(255,255,255,.8);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none;
  box-shadow:
    inset 5px 5px 10px rgba(163,170,163,.5),
    inset -5px -5px 10px rgba(255,255,255,.9),
    0 0 0 3px rgba(0,156,176,.15);
}
.fg textarea { resize: vertical; min-height: 100px; }
.fg select option { background: #fff; }
.fmsg {
  display: none; padding: 11px 14px;
  border-radius: 3px; font-size: .84rem; margin-top: 10px;
}
.fmsg.ok  { background: rgba(75,183,143,.09); border: 1px solid rgba(75,183,143,.28); color: #2A8A5A; }
.fmsg.err { background: rgba(220,76,76,.07);  border: 1px solid rgba(220,76,76,.18);  color: #B53030; }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
footer {
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(32px);
  border-top: 1px solid rgba(255,255,255,.86);
  box-shadow: 0 -4px 22px rgba(0,0,0,.04);
  padding: 54px 0 28px;
}
.ft-g {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 36px;
}
.ft-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ft-logo-wrap img { height: 30px; width: auto; object-fit: contain; }
.ft-brand { font-weight: 800; font-size: .88rem; letter-spacing: .07em; color: var(--teal); }
.ft-desc  { font-size: .83rem; color: var(--text2); line-height: 1.65; max-width: 230px; }
.ft-col h4 { font-size: .84rem; font-weight: 700; margin-bottom: 13px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ft-col ul li a { font-size: .79rem; color: var(--text2); transition: color .2s; }
.ft-col ul li a:hover { color: var(--teal); }
.ft-bot {
  border-top: 1px solid rgba(0,0,0,.06); padding-top: 20px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.ft-copy { font-size: .74rem; color: var(--text3); }

/* ════════════════════════════════════════════════════
   SCROLL TOP
   ════════════════════════════════════════════════════ */
#st {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 3px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(18px);
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 4px 18px rgba(0,0,0,.09), inset 0 1.5px 0 rgba(255,255,255,.88);
  color: var(--teal); font-size: 1rem; cursor: pointer;
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
#st.show { opacity: 1; }
#st:hover { transform: translateY(-2px); background: #fff; }

/* ════════════════════════════════════════════════════
   REVEAL — scroll animation (no aplica al hero)
   ════════════════════════════════════════════════════ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.rv.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  #historia .hg,
  #contacto .cg { grid-template-columns: 1fr; }
  /* Proceso: en tablet el grid de 3 se mantiene pero las tarjetas son más compactas */
  .pf-card { padding: 15px 13px 12px; }
  .pf-ico  { width: 44px; height: 44px; }
  .pf-num  { width: 36px; height: 36px; font-size: .92rem; }
  .pf-ico img { width: 24px; height: 24px; }
  #servicios .sg,
  #portfolio .pg { grid-template-columns: 1fr 1fr; }
  .ft-g { grid-template-columns: 1fr 1fr; }
  .hero-glass-panel { max-width: 92%; }
  .hero-inner { justify-content: center; }
}
@media (max-width: 860px) {
  /* El logo gana presencia: ES/EN/IT y "Cotizar con IA" se mudan
     al menú responsivo (hamburguesa) en vez de competir por espacio
     junto al logo en la barra superior. */
  .n-right { display: none; }
  .n-logo img { height: 44px; }

  .n-links {
    display: none; flex-direction: column;
    position: fixed; top: 74px; left: 12px; right: 12px;
    border-radius: 3px; padding: 14px; gap: 3px;
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(36px);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 8px 40px rgba(0,0,0,.08);
  }
  .n-links.open { display: flex; }
  .mb-btn { display: block; }

  /* El fondo del dropdown siempre es claro (con o sin scroll),
     así que el texto de los links debe ser oscuro también aquí,
     sin depender de .nw.pill. */
  .n-links a {
    color: var(--text2);
    text-shadow: none;
    font-size: .95rem; font-weight: 600;
  }
  .n-links a:hover {
    color: var(--teal);
    background: rgba(0,156,176,.09);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nl-extra { display: list-item; }
  .nl-divider {
    border-top: 1px solid rgba(0,0,0,.08);
    margin: 6px 4px; padding: 0; height: 0;
  }
  .lang-sw-mobile { display: flex; gap: 6px; padding: 4px 6px 8px; }
  .lang-sw-mobile .lb { flex: 1; text-align: center; }
  .nl-cotizar-mobile {
    display: block; width: 100%; text-align: center;
    margin: 2px 0 4px; padding: 11px 20px; font-size: .88rem;
  }
}
@media (max-width: 600px) {
  #servicios .sg,
  #portfolio .pg { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .ft-g { grid-template-columns: 1fr; }
  section:not(#hero) { padding: 70px 0; }
  .hero-glass-panel { padding: 28px 22px; }
  /* Proceso: stack todos los cards en columna */
  .pf-row, .pf-row.rev {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
  }
  .pf-arrow-h { display: none; }
  .pf-turn { display: none; }
  .pf-card { direction: ltr !important; }
  .pf-detail { padding: 20px 18px; }
}

/* ════════════════════════════════════════════════════
   MÓVIL ESTRECHO ≤ 430 px (ej. Moto G20 · 360 px CSS)
   — Garantiza que el nav no desborde y el ☰ siempre
     sea visible sin scroll horizontal.
   ════════════════════════════════════════════════════ */
@media (max-width: 430px) {
  /* Nav: reduce padding para que logo + ☰ quepan cómodos */
  nav { padding: 12px 0; }
  .nw { padding: 0 14px; gap: 8px; }
  .nw.pill { padding: 6px 14px; }
  .n-logo img { height: 36px; }
  .mb-btn { padding: 7px 10px; font-size: 1rem; }

  /* Títulos grandes: escalan con el viewport */
  .vxh-title { font-size: clamp(1.75rem, 9vw, 2.6rem) !important; }
  .s-title    { font-size: clamp(1.5rem, 8vw, 2.2rem) !important; }

  /* Secciones: padding lateral mínimo */
  .c { padding: 0 16px; }
  section:not(#hero) { padding: 56px 0; }

  /* Portfolio cards en columna única, thumb más pequeño */
  .pc-thumb { height: 160px; }

  /* Contacto: info-strips en columna */
  .info-strips { gap: 12px; }
}

/* ════════════════════════════════════════════════════
   HERO SPHERE · esfera 3D orgánica (ref. mdx.so)
   ════════════════════════════════════════════════════ */
.hero-sphere-wrap {
  position: absolute;
  top: 50%; right: 4%;
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}
.hero-sphere-wrap canvas[data-hero-sphere] {
  width: 100%; height: 100%; display: block;
}
.hero-sphere-shadow {
  position: absolute;
  left: 50%; bottom: 6%;
  width: 62%; height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(20,30,40,.22), transparent 70%);
  filter: blur(10px);
  border-radius: 50%;
}
@media (max-width: 900px) {
  .hero-sphere-wrap { display: none; }
}

/* ════════════════════════════════════════════════════════════
   NEUMORPHISM + GLASSMORPHISM UI KIT
   Movido a css/UImorphism.css (2026) — enlazar ese archivo en las
   páginas que usen clases .nm-* / .gl-*. No duplicar aquí.
   ════════════════════════════════════════════════════════════ */
