﻿/* =============================================================
   VALIA — Estudio de diseño web
   Arquetipo: Glassmorphism Modern · paleta "azul hielo"
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #eef6fd;
  --bg-2:      #e2effb;
  --paper:     #ffffff;
  --ink:       #0b2540;
  --ink-soft:  #3c5873;
  --ink-mute:  #6f87a0;
  --sky-1:     #cfeaff;
  --sky-2:     #79c3fb;
  --sky-3:     #3b9cf0;
  --blue:      #1d6fd1;
  --line:      rgba(11, 37, 64, .09);
  --line-2:    rgba(11, 37, 64, .16);

  --glass:        rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-solid:  rgba(255, 255, 255, .88);
  --glass-border: rgba(255, 255, 255, .78);

  --grad:      linear-gradient(135deg, #79c3fb 0%, #3b9cf0 45%, #1d6fd1 100%);
  --shadow-sm: 0 1px 2px rgba(11,37,64,.05), 0 4px 14px rgba(29,111,209,.06);
  --shadow:    0 2px 6px rgba(11,37,64,.04), 0 18px 48px -12px rgba(29,111,209,.22);
  --shadow-lg: 0 30px 80px -20px rgba(16,72,140,.35), 0 8px 24px -8px rgba(11,37,64,.12);

  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif:   "Instrument Serif", Georgia, serif;

  --radius:    28px;
  --radius-sm: 16px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --maxw:      1240px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
em { font-style: normal; }
::selection { background: var(--sky-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

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

/* Glass: fallback sólido primero, luego desenfoque si hay soporte */
.glass {
  background: var(--glass-solid);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .num {
  display: inline-grid; place-items: center;
  height: 1.7rem; padding-inline: .55rem;
  border-radius: 99px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink); letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}

.pulse {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: #22c3a6; flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid #22c3a6; opacity: 0;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Placeholders de imagen — se sustituyen más adelante por WebP */
.ph {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.85), transparent 60%),
    linear-gradient(135deg, #d9eeff 0%, #b8dcfb 55%, #9ccdf7 100%);
  border-radius: 14px;
  isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.28) 0 2px, transparent 2px 14px);
}
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: phShine 4.5s var(--ease-soft) infinite;
}
@keyframes phShine { 0%, 35% { transform: translateX(-100%); } 75%, 100% { transform: translateX(100%); } }
.ph-label {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .7rem; border-radius: 99px;
  background: rgba(255,255,255,.75);
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-soft); white-space: nowrap;
}
.ph-label::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px;
  border: 1.6px solid currentColor;
  background: linear-gradient(135deg, transparent 55%, currentColor 55% 62%, transparent 62%);
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  max-width: 20ch;
}
.section-title em,
.hero-title em,
.footer-claim em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.section-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 3.25rem; padding-inline: 1.5rem;
  border-radius: 99px;
  font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s, color .3s;
}
.btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -8px rgba(29,111,209,.55), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out), background-position .6s var(--ease-out);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 40px -8px rgba(29,111,209,.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-dark {
  color: #fff; background: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(11,37,64,.6);
}
.btn-dark:hover { background: #12345a; }
.btn-glass {
  color: var(--ink);
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}
.btn-glass:hover { background: #fff; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px var(--gutter);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 20px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  height: 64px; padding: 0 10px 0 16px;
  border-radius: 99px;
  transition: box-shadow .4s var(--ease-out), background-color .4s;
}
.nav.is-scrolled .nav-pill { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9); }
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: .16em; white-space: nowrap; }
.brand-sub { font-weight: 500; opacity: .6; letter-spacing: .12em; }

/* Fotos reales dentro de los huecos de imagen */
.ph.has-img::before, .ph.has-img::after { display: none; }
.ph.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links { position: relative; display: none; align-items: center; gap: .25rem; }
.nav-links a {
  position: relative; z-index: 1;
  padding: .55rem 1rem; border-radius: 99px;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-underline {
  position: absolute; left: 0; top: 50%; z-index: 0;
  height: 38px; width: 0; border-radius: 99px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  transform: translate(var(--ux, 0), -50%);
  opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
.nav-cta { display: none; height: 44px; padding-inline: 1.15rem; font-size: .9rem; }

.nav-burger {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px;
  background: var(--ink);
}
.nav-burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .4s var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-sheet {
  pointer-events: auto;
  margin: 10px auto 0; max-width: 520px;
  display: flex; flex-direction: column; gap: .25rem;
  padding: 14px; border-radius: 24px;
  animation: sheetIn .45s var(--ease-out);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a:not(.btn) {
  padding: .9rem 1rem; border-radius: 14px;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
}
.nav-sheet a:not(.btn):hover { background: rgba(255,255,255,.7); }
.nav-sheet .btn { margin-top: .5rem; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- MESH ---------- */
.mesh {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
}
.mesh .blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  opacity: .85;
  will-change: transform;
}
.mesh .b1 {
  width: 62vmax; height: 62vmax; left: -18vmax; top: -24vmax;
  background: radial-gradient(circle at 40% 40%, #a9dbff, transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.mesh .b2 {
  width: 54vmax; height: 54vmax; right: -16vmax; top: -10vmax;
  background: radial-gradient(circle at 50% 50%, #6fb7f5, transparent 62%);
  opacity: .6;
  animation: drift2 32s ease-in-out infinite alternate;
}
.mesh .b3 {
  width: 48vmax; height: 48vmax; left: 25%; bottom: -30vmax;
  background: radial-gradient(circle at 50% 50%, #d8f0ff, transparent 65%);
  animation: drift3 28s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(14vmax, 8vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vmax, 12vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -10vmax) scale(1.15); } }

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 120px;
  background: linear-gradient(180deg, #f5faff 0%, var(--bg) 100%);
  overflow: clip;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 75%);
  opacity: .7;
}
.hero-inner {
  flex: 1;
  display: grid; gap: 3.5rem;
  align-items: center;
  padding-bottom: 3rem;
}
.hero-eyebrow {
  padding: .45rem .9rem .45rem .75rem;
  border-radius: 99px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  letter-spacing: .06em; text-transform: none; font-size: .82rem;
  animation: fadeUp .9s var(--ease-out) both;
}
.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.7rem, 7.2vw, 6.1rem);
  line-height: .98;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 13ch;
}
.hero-title .w {
  display: inline-block;
  animation: wordIn 1.1s var(--ease-out) both;
  animation-delay: calc(.15s + var(--i) * .07s);
}
.hero-title em.w { font-size: 1.12em; line-height: .8; }
@keyframes wordIn {
  from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 46ch;
  animation: fadeUp 1s var(--ease-out) .75s both;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  animation: fadeUp 1s var(--ease-out) .9s both;
}
.hero-proof {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  font-size: .9rem; color: var(--ink-soft);
  animation: fadeUp 1s var(--ease-out) 1.05s both;
}
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg {
  width: 18px; height: 18px; padding: 3px; border-radius: 50%;
  background: var(--ink); stroke: #fff; stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- Composición flotante --- */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / .86;
  width: 100%; max-width: 640px; margin-inline: auto;
  perspective: 1400px;
  animation: stageIn 1.4s var(--ease-out) .35s both;
}
@keyframes stageIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.stage-glow {
  position: absolute; inset: 8% 4% 4% 8%; z-index: -1;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgba(59,156,240,.45), transparent);
  filter: blur(40px);
}
.hero-stage > [data-depth] {
  position: absolute;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .9s var(--ease-out);
}

.device { border-radius: 22px; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9); }
.browser {
  left: 0; top: 6%; width: 86%;
  padding: 0 0 14px;
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #c8dcef; }
.browser-bar .dot:first-child { background: #ff8f8f; }
.browser-bar .dot:nth-child(2) { background: #ffd27a; }
.browser-bar .dot:nth-child(3) { background: #7fdcb1; }
.browser-bar .url {
  margin-left: 12px; flex: 1; max-width: 220px;
  padding: 4px 12px; border-radius: 99px;
  background: rgba(255,255,255,.75);
  font-size: .68rem; color: var(--ink-mute);
}
.browser-body { padding: 14px 16px 0; }
.mini-nav { display: flex; align-items: center; gap: 8px; }
.mini-nav i { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); margin-right: auto; }
.mini-nav b { width: 38px; height: 6px; border-radius: 6px; background: #cfe0f1; }
.mini-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; margin-top: 18px; align-items: center; }
.mini-copy i { display: block; height: 11px; border-radius: 6px; background: var(--ink); margin-bottom: 8px; }
.mini-copy .l1 { width: 92%; }
.mini-copy .l2 { width: 70%; background: var(--sky-3); }
.mini-copy .l3 { width: 80%; height: 6px; background: #cfe0f1; margin-top: 14px; }
.mini-btn { display: block; width: 76px; height: 22px; border-radius: 99px; background: var(--grad); margin-top: 14px; }
.ph-browser { aspect-ratio: 4 / 3.1; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mini-cards i { height: 44px; border-radius: 10px; background: rgba(255,255,255,.8); border: 1px solid var(--line); }

.phone {
  right: 2%; bottom: 0; width: 30%;
  padding: 10px 10px 14px; border-radius: 30px;
}
.phone-notch { width: 34%; height: 7px; border-radius: 9px; margin: 2px auto 10px; background: rgba(11,37,64,.85); }
.ph-phone { aspect-ratio: 9 / 11; border-radius: 16px; }
.ph-phone .ph-label { font-size: .6rem; padding: .3rem .5rem; }
.phone-lines { padding: 10px 4px 0; }
.phone-lines i { display: block; height: 7px; border-radius: 6px; background: var(--ink); margin-bottom: 6px; width: 85%; }
.phone-lines i + i { width: 55%; background: #cfe0f1; }
.phone-lines span { display: block; height: 18px; border-radius: 99px; background: var(--grad); margin-top: 8px; }

.chip {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .7rem;
  border-radius: 18px;
  font-size: .78rem; line-height: 1.25;
  background: var(--glass-strong);
}
.chip strong { display: block; font-family: var(--display); font-size: .95rem; letter-spacing: -0.02em; }
.chip span { color: var(--ink-mute); }
.chip-speed { left: -3%; bottom: 14%; animation: bob 6s ease-in-out infinite; }
.chip-rank  { right: -2%; top: 0; animation: bob 7s ease-in-out -2s infinite; }
.chip-msg   { left: 30%; bottom: -4%; animation: bob 6.5s ease-in-out -4s infinite; }
.chip > * { pointer-events: none; }
@keyframes bob { 50% { translate: 0 -10px; } }

.gauge { width: 44px; height: 44px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 5; }
.gauge-track { stroke: rgba(11,37,64,.08); }
.gauge-fill {
  stroke: #22c3a6; stroke-linecap: round;
  stroke-dasharray: 113.1; stroke-dashoffset: 113.1;
  animation: gauge 1.8s var(--ease-out) 1.2s forwards;
}
@keyframes gauge { to { stroke-dashoffset: 2.3; } }
.chip-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad);
}
.chip-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.chip-msg span { color: var(--ink-soft); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #ffd9b8, #f5a97f);
  box-shadow: inset 0 0 0 3px #fff;
}

/* --- Sectores --- */
.sectors {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.4rem var(--gutter) 2rem;
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  border-top: 1px solid var(--line);
}
.sectors-label {
  flex: none;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.marquee {
  display: flex; overflow: hidden; flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem;
  flex: none;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink-soft); white-space: nowrap; letter-spacing: -0.01em;
}
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-2); flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- SECCIONES GENERALES ---------- */
.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.section-head { display: grid; gap: 1.3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head-center { justify-items: center; text-align: center; }
.section-head-center .section-title { max-width: 18ch; }

/* ---------- VENTAJAS ---------- */
.benefits { background: var(--bg); }
.benefits::before {
  content: ""; position: absolute; inset: 10% 0 auto; height: 70%; z-index: 0;
  background: radial-gradient(50% 50% at 80% 30%, rgba(121,195,251,.35), transparent 70%),
              radial-gradient(40% 40% at 10% 80%, rgba(207,234,255,.9), transparent 70%);
  pointer-events: none;
}
.benefits .container { position: relative; z-index: 1; }

.stats {
  display: grid; gap: 1px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--paper); padding: 1.8rem 1.6rem; }
.stat strong {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat p { margin-top: .7rem; color: var(--ink-soft); font-size: .95rem; max-width: 32ch; }

.cards { display: grid; gap: 1.25rem; }
.card {
  --gx: 50%; --gy: 50%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(380px circle at var(--gx) var(--gy), rgba(121,195,251,.32), transparent 65%);
  opacity: 0; transition: opacity .5s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9); }
.card:hover::before { opacity: 1; }
.card-art {
  position: relative;
  min-height: 210px;
  display: grid; place-items: center;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius) - 10px);
  background: linear-gradient(160deg, rgba(255,255,255,.8), rgba(220,238,253,.6));
  border: 1px solid rgba(255,255,255,.9);
  overflow: hidden;
}
.card-copy { padding: 1.6rem 1.6rem 1.8rem; }
.card-kicker {
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.card h3 { margin-top: .55rem; font-size: clamp(1.35rem, 2vw, 1.65rem); }
.card p { margin-top: .65rem; color: var(--ink-soft); font-size: .97rem; }

/* Arte: reloj */
.clock {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow), inset 0 0 0 8px var(--sky-1);
}
.clock i { position: absolute; left: 50%; top: 50%; width: 3px; height: 10px; margin: -5px 0 0 -1.5px; background: var(--ink-mute); border-radius: 2px; }
.clock i:nth-of-type(1) { transform: rotate(0deg)   translateY(-48px); }
.clock i:nth-of-type(2) { transform: rotate(90deg)  translateY(-48px); }
.clock i:nth-of-type(3) { transform: rotate(180deg) translateY(-48px); }
.clock i:nth-of-type(4) { transform: rotate(270deg) translateY(-48px); }
.clock .hand { position: absolute; left: 50%; bottom: 50%; border-radius: 4px; transform-origin: 50% 100%; }
.clock .h { width: 5px; height: 32px; margin-left: -2.5px; background: var(--ink); animation: spin 48s linear infinite; }
.clock .m { width: 3px; height: 46px; margin-left: -1.5px; background: var(--sky-3); animation: spin 4s linear infinite; }
.clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-open {
  position: absolute; right: 12%; bottom: 18%;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem; border-radius: 99px;
  background: #fff; box-shadow: var(--shadow);
  font-size: .8rem; font-weight: 600;
}

/* Arte: escudo */
.shield svg { width: 96px; filter: drop-shadow(0 18px 28px rgba(29,111,209,.35)); }
.shield path:first-child { fill: #3b9cf0; }
.shield .tick {
  fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  transition: stroke-dashoffset 1s var(--ease-out) .3s;
}
.is-in .shield .tick, html:not(.js) .shield .tick { stroke-dashoffset: 0; }

/* Arte: búsqueda */
.art-search { align-content: center; gap: 12px; padding: 1.4rem; }
.search {
  display: flex; align-items: center; gap: .55rem;
  width: min(250px, 100%); padding: .7rem 1rem;
  border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm);
  font-size: .85rem; color: var(--ink-soft);
}
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-mute); stroke-width: 2.4; stroke-linecap: round; }
.typing { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--blue); width: 11ch; animation: caret .9s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.results { display: grid; gap: 7px; width: min(250px, 100%); }
.results li { display: grid; gap: 5px; padding: .55rem .8rem; border-radius: 12px; background: rgba(255,255,255,.6); }
.results b { height: 7px; width: 60%; border-radius: 6px; background: #b9d4ec; }
.results i { height: 5px; width: 85%; border-radius: 6px; background: #dde9f5; }
.results .you { background: #fff; box-shadow: 0 8px 20px -8px rgba(29,111,209,.45); outline: 2px solid var(--sky-2); }
.results .you b { background: var(--blue); }

/* Arte: móvil */
.art-mobile { grid-auto-flow: column; gap: 14px; align-items: end; padding-bottom: 0; }
.m-frame {
  width: 78px; height: 150px; padding: 10px 8px;
  border-radius: 18px 18px 0 0; background: #fff;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  border-bottom: 0;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(16px);
}
.m-frame i { height: 8px; border-radius: 4px; background: #dde9f5; }
.m-frame i:first-child { height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--sky-1), var(--sky-2)); }
.m-frame span { margin-top: auto; height: 14px; border-radius: 99px; background: var(--grad); }
.m-tab { width: 128px; height: 120px; }

/* Arte: velocidad */
.art-speed { padding: 1.4rem 1.6rem; align-content: end; justify-items: stretch; }
.bars { display: flex; align-items: end; gap: 8px; height: 120px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--sky-2), var(--sky-1));
  transform-origin: bottom; transform: scaleY(.15);
  transition: transform 1.1s var(--ease-out);
}
.bars span:last-child { background: var(--grad); }
.is-in .bars span, html:not(.js) .bars span { transform: scaleY(1); }
.bars span:nth-child(2) { transition-delay: .06s; } .bars span:nth-child(3) { transition-delay: .12s; }
.bars span:nth-child(4) { transition-delay: .18s; } .bars span:nth-child(5) { transition-delay: .24s; }
.bars span:nth-child(6) { transition-delay: .30s; } .bars span:nth-child(7) { transition-delay: .36s; }
.speed-label { margin-top: .8rem; font-size: .85rem; color: var(--ink-soft); }
.speed-label b { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }

/* Arte: gráfica */
.art-chart { padding: 1.6rem 0 0; align-items: end; }
.art-chart svg { width: 100%; height: 150px; }
.art-chart .line {
  fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 2s var(--ease-out) .2s;
}
.is-in .art-chart .line, html:not(.js) .art-chart .line { stroke-dashoffset: 0; }
.chart-tag {
  position: absolute; left: 1.2rem; top: 1.2rem;
  padding: .5rem .85rem; border-radius: 12px;
  font-size: .8rem; font-weight: 600;
}
.chart-tag b { color: #16a88f; }

/* ---------- ANTES / DESPUÉS ---------- */
.compare { background: linear-gradient(180deg, var(--bg) 0%, #e4f1fc 100%); }
.compare-switch {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  width: min(380px, 100%); margin: 0 auto 3rem;
  padding: 5px; border-radius: 99px;
}
.compare-switch button {
  position: relative; z-index: 1;
  height: 44px; border-radius: 99px;
  font-family: var(--display); font-weight: 600; font-size: .92rem;
  color: var(--ink-mute); transition: color .35s;
}
.compare-switch button[aria-selected="true"] { color: #fff; }
.switch-thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px); border-radius: 99px;
  background: var(--ink);
  box-shadow: 0 8px 20px -8px rgba(11,37,64,.6);
  transform: translateX(100%);
  transition: transform .6s var(--ease-bounce), background-color .4s;
}
.compare-switch.is-old .switch-thumb { transform: translateX(0); background: #8a8f96; }

.compare-stage {
  position: relative;
  display: grid;
  max-width: 980px; margin-inline: auto;
  perspective: 1600px;
}
.compare-panel {
  grid-area: 1 / 1;
  display: grid; gap: 1.6rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border-radius: var(--radius);
  transition: transform .9s var(--ease-out), opacity .6s var(--ease-out), filter .6s;
}
.panel-old { background: #f2f0ec; border: 1px solid #dcd8d0; box-shadow: var(--shadow); }
.compare-panel.panel-new { background: rgba(255,255,255,.9); box-shadow: var(--shadow-lg); }
/* Estado por defecto (y sin JS): VALIA delante */
.compare-stage[data-mode="new"] .panel-new { z-index: 2; transform: none; }
.compare-stage[data-mode="new"] .panel-old { z-index: 1; transform: translate(-4%, -7%) rotate(-3deg) scale(.92); opacity: .55; filter: blur(1px) grayscale(.3); }
.compare-stage[data-mode="old"] .panel-old { z-index: 2; transform: none; }
.compare-stage[data-mode="old"] .panel-new { z-index: 1; transform: translate(4%, -7%) rotate(3deg) scale(.92); opacity: .55; filter: blur(1px); }

.old-site {
  border: 2px outset #c9c4bb; background: #fffbe9;
  font-family: "Times New Roman", Times, serif; color: #333;
  min-height: 260px;
}
.old-header {
  padding: .7rem; text-align: center;
  background: linear-gradient(#2b4fa5, #13307a); color: #ffef5c;
  font-weight: 700; font-size: clamp(.8rem, 1.8vw, 1.05rem); letter-spacing: .02em;
  text-shadow: 2px 2px 0 #000;
}
.old-body { display: grid; grid-template-columns: 38% 1fr; gap: 1rem; padding: 1rem; }
.old-img {
  display: grid; place-items: center; min-height: 150px;
  background: #ddd; border: 3px ridge #aaa; color: #888; font-size: .9rem;
}
.old-text { font-size: .92rem; display: grid; gap: .6rem; align-content: start; }
.old-text u { color: #00e; }
.old-blink { color: #d00; font-weight: 700; animation: blinkOld 1.2s steps(1) infinite; }
@keyframes blinkOld { 50% { opacity: 0; } }
.new-site .ph-compare { aspect-ratio: 16 / 8.4; border-radius: 18px; }

.compare-list { display: grid; gap: .65rem; }
.compare-list li { display: flex; align-items: center; gap: .7rem; font-weight: 500; font-size: .98rem; }
.compare-list span {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: .85rem; font-weight: 700;
}
.x  { background: #ecdcdc; color: #b04848; }
.ok { background: var(--grad); color: #fff; }
.panel-old .compare-list { color: #6c655c; }

/* ---------- CONTACTO ---------- */
.contact { isolation: isolate; overflow: clip; background: #e4f1fc; }
.mesh-soft .blob { opacity: .7; }
.contact-inner { display: grid; gap: 3rem; align-items: start; }
.contact-copy { display: grid; gap: 1.3rem; align-content: start; }
.contact-steps { display: grid; gap: 1rem; margin-top: .8rem; }
.contact-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-steps li > span {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-family: var(--display); font-weight: 700; color: var(--blue);
}
.contact-steps b { font-family: var(--display); font-size: 1.05rem; }
.contact-steps p { color: var(--ink-soft); font-size: .95rem; }
.contact-direct { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .6rem; }
.contact-direct a {
  position: relative; font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.contact-direct a:hover { background-size: 100% 2px; }

.form {
  position: relative;
  display: grid; gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 32px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9);
}
.field-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .4rem; }
.field-chips legend {
  width: 100%; margin-bottom: .7rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
}
.field-chips label { position: relative; cursor: pointer; }
.field-chips input { position: absolute; opacity: 0; pointer-events: none; }
.field-chips span {
  display: inline-block; padding: .6rem 1rem; border-radius: 99px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line-2);
  font-size: .9rem; font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-bounce);
}
.field-chips label:hover span { border-color: var(--sky-3); }
.field-chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.03); }
.field-chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.field-row { display: grid; gap: 1rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  padding: 1.45rem 1rem .55rem;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.85);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  resize: vertical;
}
.field textarea { min-height: 120px; }
.field label {
  position: absolute; left: 1rem; top: 1rem;
  font-size: 1rem; color: var(--ink-mute);
  pointer-events: none; transform-origin: left top;
  transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sky-3); background: #fff;
  box-shadow: 0 0 0 4px rgba(59,156,240,.15);
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-.6rem) scale(.74); color: var(--blue);
}
.field.is-invalid input { border-color: #e06a6a; box-shadow: 0 0 0 4px rgba(224,106,106,.12); }

.btn-submit { width: 100%; height: 3.6rem; margin-top: .4rem; font-size: 1.02rem; }
.form-note { text-align: center; font-size: .84rem; color: var(--ink-mute); }
.form.is-sending .btn-submit { opacity: .75; pointer-events: none; }
.form.is-sending .btn-submit .label::after { content: "…"; }

.form-success {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: .8rem;
  padding: 2rem; text-align: center;
  border-radius: inherit;
  background: rgba(255,255,255,.96);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.form-success svg { width: 72px; height: 72px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-success circle { stroke: var(--sky-1); stroke-width: 3; }
.form-success path { stroke: var(--blue); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-success h3 { font-size: 2rem; }
.form-success p { color: var(--ink-soft); max-width: 30ch; }
.form.is-sent .form-success { opacity: 1; visibility: visible; }
.form.is-sent .form-success path { animation: draw .8s var(--ease-out) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- FOOTER ---------- */
.footer {
  position: relative; overflow: hidden;
  background: var(--ink); color: #dbe9f7;
  padding-top: clamp(4rem, 8vw, 6rem);
}
.footer::before {
  content: ""; position: absolute; left: 50%; top: -40%; width: 90vmax; height: 60vmax;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59,156,240,.35), transparent);
  pointer-events: none;
}
.footer .container { position: relative; }
.footer-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.footer-claim {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em;
  color: #fff; max-width: 14ch;
}
.footer .btn-dark { background: #fff; color: var(--ink); }
.footer .btn-dark:hover { background: var(--sky-1); }
.footer-word {
  margin-top: clamp(2rem, 6vw, 4rem);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.4rem, 17vw, 16rem); line-height: .78; letter-spacing: -0.04em;
  text-align: center;
  background: linear-gradient(180deg, rgba(121,195,251,.55), rgba(121,195,251,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem; color: #9fb7cf;
}
.footer-bottom nav { display: flex; gap: 1.4rem; }
.footer-bottom a:hover { color: #fff; }

/* =============================================================
   7. Effects — reveal al hacer scroll (solo con JS activo)
   ============================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
  animation: revealSafety 0s 6s forwards; /* red de seguridad si el JS falla */
}
.js [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; }
  .card-wide .card-art { margin: 10px; min-height: 260px; }
  .card-wide.card-reverse .card-art { order: 2; }
  .card-wide .card-copy { padding: 2rem 2.4rem; }
  .compare-panel { grid-template-columns: 1.35fr 1fr; align-items: center; }
}
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-sheet { display: none !important; }
  .hero-inner { grid-template-columns: 1.02fr 1fr; gap: 2rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: span 2; }
  .cards .card:nth-child(6) { grid-column: 1 / -1; grid-template-columns: 1fr 1.25fr; }
  .contact-inner { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .contact-copy { position: sticky; top: 120px; }
  .section-head:not(.section-head-center) { grid-template-columns: 1.3fr 1fr; align-items: end; column-gap: 3rem; }
  .section-head:not(.section-head-center) .eyebrow { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 6.1rem; }
}
@media (max-width: 539px) {
  .chip { font-size: .7rem; padding: .5rem .7rem .5rem .5rem; border-radius: 14px; }
  .chip strong { font-size: .82rem; }
  .gauge, .chip-icon { width: 32px; height: 32px; }
  .avatar { width: 28px; height: 28px; }
  .chip-msg { left: 18%; }
  .hero-stage .ph-label { font-size: 0; gap: 0; padding: .35rem; }
  .sectors { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .marquee { width: 100%; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .old-blink { animation: none; }
  .pulse::after { animation: none; }
  .clock .m { animation-duration: 60s; }
  .ph::after { animation: none; }
}
