/* ==========================================================================
   IMPULSIU — Web corporativa
   Colores e identidad según Manual de Marca Impulsiu
   ========================================================================== */

:root {
  /* Colores corporativos (manual) */
  --navy: #1a4389;      /* Pantone 7687 */
  --blue: #4079bd;      /* Pantone 660  */
  --sky: #5cb3e3;       /* Pantone 2915 */
  --black: #000;

  /* Derivados para la web oscura */
  --bg: #030814;
  --bg-2: #061028;
  --surface: rgba(64, 121, 189, 0.08);
  --surface-2: rgba(92, 179, 227, 0.06);
  --line: rgba(92, 179, 227, 0.18);
  --line-strong: rgba(92, 179, 227, 0.45);
  --text: #eef4fb;
  --muted: #9db0c9;
  --dim: #6b7f9c;

  --grad: linear-gradient(90deg, var(--sky), var(--blue) 50%, var(--navy));
  --grad-v: linear-gradient(180deg, var(--navy), var(--sky));
  --grad-text: linear-gradient(100deg, #8fd0f2 0%, var(--sky) 35%, var(--blue) 100%);

  /* Tipografía (Google Fonts, uso libre): Roboto Condensed para titulares y Roboto para textos.
     Es la alternativa gratuita más cercana a la Helvetica Neue Condensed del manual de marca. */
  --font-display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-stretch: 87%;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--bg); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fondo global: brillos y grano ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(26, 67, 137, .55), transparent 70%),
    radial-gradient(50vw 50vh at -10% 30%, rgba(64, 121, 189, .18), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Tipografía display ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 70%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -0.01em;
  margin: 0;
}
.display .lt { font-weight: 500; }
.display .xl { font-size: 1.32em; display: block; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-stretch: 80%;
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 58ch; }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head h2 { font-size: clamp(44px, 7vw, 92px); text-wrap: balance; }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: 16px;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  box-shadow: 0 10px 40px -10px rgba(92, 179, 227, .7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(92, 179, 227, .9), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(92,179,227,.08); }

/* ---------- Pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(26, 67, 137, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display); font-stretch: 80%; font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #cfe6f6;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(92,179,227,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(92,179,227,0); } }

/* ---------- Glass card ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(64,121,189,.14), rgba(26,67,137,.06) 60%, rgba(3,8,20,.2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.6);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  transition: transform .4s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 66px; padding: 0 10px 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled .nav-inner {
  background: rgba(3, 8, 20, .7); border-color: var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 32px; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b {
  font-family: var(--font-display); font-stretch: 70%; font-weight: 900; font-size: 28px; letter-spacing: .01em;
}
.logo-word small {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 500; font-size: 8.5px; letter-spacing: .08em;
  align-self: flex-end; color: var(--muted); margin-top: 1px;
}
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display); font-stretch: 80%; font-size: 15px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .25s;
}
.nav-links a:hover { color: var(--text); }
.nav .btn { --h: 46px; font-size: 14px; padding: 0 20px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: transform .3s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 150px 0 20px; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero h1 { font-size: clamp(46px, 6vw, 92px); }
.hero-copy { gap: 22px; }
.hero-sub { margin: 4px 0 0; max-width: 40ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; color: var(--text); text-wrap: balance; }
.hero .lead { margin-top: -6px; }
.hero h1 .row { display: block; text-wrap: balance; }
.hero h1 .sm { text-wrap: balance; font-size: .46em; font-weight: 600; letter-spacing: .02em; display: block; margin: .14em 0 .1em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { display: flex; gap: 22px; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--sky); }

/* Teléfono */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone-glow {
  position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(64,121,189,.45), rgba(26,67,137,.15) 40%, transparent 65%);
  filter: blur(10px);
}
.big-mark {
  position: absolute; width: 115%; opacity: .14; transform: rotate(-8deg);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: rotate(4deg) scale(1.04); } }
.phone {
  position: relative; width: 270px; aspect-ratio: 9 / 19.2;
  border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #1d2a44, #070c18);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(92,179,227,.08), inset 0 0 0 2px #000;
  transform: rotate(4deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 33px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 110%, rgba(92,179,227,.55), transparent 60%),
    linear-gradient(170deg, #0f2347 0%, #1a4389 45%, #4079bd 100%);
}
.phone-notch { position: absolute; top: 10px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.reel-top { position: absolute; top: 46px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; z-index: 2; opacity: .9; }
.reel-title {
  position: absolute; left: 16px; right: 16px; top: 34%;
  font-family: var(--font-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase;
  line-height: .9; font-size: 40px; z-index: 2;
}
.reel-title span { display: block; }
.reel-title .s { font-size: .5em; font-weight: 700; }
.reel-title .big { font-size: 1.35em; }
.reel-title .grad-text { background: linear-gradient(180deg, #fff, #8fd0f2); -webkit-background-clip: text; background-clip: text; }
.reel-bar { position: absolute; left: 16px; right: 16px; top: 64%; height: 3px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; z-index: 2; }
.reel-bar i { position: absolute; inset: 0; width: 40%; background: #fff; border-radius: 3px; animation: progress 6s linear infinite; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.reel-side { position: absolute; right: 12px; bottom: 70px; display: grid; gap: 16px; z-index: 2; justify-items: center; font-size: 11px; font-weight: 700; }
.reel-side svg { width: 26px; height: 26px; }
.reel-user { position: absolute; left: 16px; bottom: 26px; right: 60px; z-index: 2; font-size: 12px; }
.reel-user b { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.reel-user b i { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-v); display: grid; place-items: center; }
.reel-user b i svg { width: 14px; }

.notif {
  position: absolute; z-index: 4; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: 18px; width: 250px;
  font-size: 13px; line-height: 1.35;
}
.notif .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-v); }
.notif .ic svg { width: 20px; height: 20px; }
.notif b { display: block; font-size: 13px; }
.notif span { color: var(--muted); font-size: 12.5px; }
.notif-1 { top: 16%; left: -14%; animation: float 6s ease-in-out infinite; }
.notif-2 { bottom: 20%; right: -12%; animation: float 7s ease-in-out -2s infinite; }
.notif-3 { bottom: 4%; left: -6%; animation: float 8s ease-in-out -4s infinite; width: 210px; }
@keyframes float { 50% { transform: translateY(-12px); } }



/* ==========================================================================
   COMPARATIVA
   ========================================================================== */
/* ==========================================================================
   CASOS DE ÉXITO
   ========================================================================== */
#casos { padding: clamp(50px, 7vw, 100px) 0 clamp(36px, 5vw, 70px); }
#casos .section-head { margin-bottom: clamp(26px, 4vw, 40px); }
.case-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.case-tab {
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(26,67,137,.18); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .04em; color: var(--muted);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.case-tab:hover { color: var(--text); border-color: var(--line-strong); }
.case-tab[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(90deg, var(--blue), var(--sky)); box-shadow: 0 8px 30px -8px rgba(92,179,227,.7); }
.case-tab:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.case-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 50px); align-items: center; padding: clamp(26px, 4vw, 44px); }
.case-panel[hidden] { display: none; }
.case-panel.anim { animation: caseIn .5s var(--ease); }
@keyframes caseIn { from { opacity: 0; transform: translateY(12px); } }
.case-info { display: grid; gap: 14px; }
.case-sector { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.case-info h3 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 4vw, 52px); line-height: .95; text-transform: uppercase; }
.case-badge {
  display: inline-block; vertical-align: middle; margin-left: 10px; padding: 6px 12px 5px; border-radius: 99px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, var(--blue), var(--sky)); box-shadow: 0 6px 20px -6px rgba(92,179,227,.7);
  position: relative; top: -4px;
}
.case-info p { margin: 0; color: var(--muted); font-size: 17px; max-width: 46ch; }
.case-stats { display: grid; gap: 12px; }
.case-stat { padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(3,8,20,.45); display: grid; gap: 2px; }
.case-stat b { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-stat span { color: var(--muted); font-size: 15px; }
.case-stat span strong { color: var(--text); font-weight: 700; }
.stat-note { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 99px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--sky); background: rgba(92,179,227,.12); border: 1px solid var(--line-strong); white-space: nowrap; }
.case-check b { background: none; color: var(--sky); line-height: 0; }
.case-check b svg { width: clamp(32px, 3.2vw, 42px); height: clamp(32px, 3.2vw, 42px); }
.case-check { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.case-check span { color: var(--text); font-size: 17px; font-weight: 500; }
.case-stat.pending b { background: none; color: var(--dim); }
.case-live { padding: 26px 24px; gap: 8px; border-style: dashed; border-color: var(--line-strong); }
.case-live b { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(28px, 3vw, 38px); }
.case-live span { font-size: 16px; line-height: 1.45; }
.live-dot, .tab-live { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(92,179,227,.2); animation: pulse 2s infinite; }
.tab-live { width: 8px; height: 8px; margin-left: 6px; vertical-align: middle; }
.case-tab[aria-selected="true"] .tab-live { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.hero { overflow-x: clip; }

#diferencia { padding: clamp(30px, 4vw, 50px) 0; }
#trabajo { padding-bottom: clamp(30px, 4vw, 50px); }
#nosotros, #planes, #faq, #contacto { padding: clamp(30px, 4vw, 50px) 0; }
#cierre { padding: clamp(30px, 4vw, 50px) 0 clamp(40px, 5vw, 60px); }
footer.footer { padding-top: clamp(30px, 4vw, 50px); }
#metodo { padding-top: clamp(36px, 5vw, 70px); padding-bottom: clamp(36px, 5vw, 70px); }
#proceso { padding-top: clamp(30px, 4vw, 50px); }
.vs { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; align-items: center; position: relative; }
.vs-card { padding: clamp(28px, 4vw, 44px); }
.vs-card h3 { margin: 0 0 22px; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 26px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.vs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vs-card li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; }
.vs-card li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.vs-them { opacity: .82; transform: translateX(24px) scale(.96); background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); }
.vs-them h3 { color: var(--muted); }
.vs-them li { color: var(--muted); }
.vs-them li svg { color: #6b7f9c; }
.vs-us { z-index: 2; border-color: var(--line-strong); background: linear-gradient(160deg, rgba(64,121,189,.32), rgba(26,67,137,.25) 60%, rgba(3,8,20,.4)); box-shadow: 0 0 0 1px rgba(92,179,227,.15), 0 40px 80px -30px rgba(26,67,137,.8), 0 0 90px -20px rgba(92,179,227,.35); }
.vs-us li svg { color: var(--sky); }
.vs-us h3 .logo-mark { width: 30px; height: 26px; }
.vs-quote { margin-top: 40px; text-align: center; color: var(--muted); font-size: 18px; }
.vs-quote strong { color: var(--text); }

/* ==========================================================================
   SISTEMA
   ========================================================================== */
.flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 6px; margin-bottom: 60px; }
.flow-step {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(26,67,137,.25);
  font-family: var(--font-display); font-stretch: 78%; font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .4s, border-color .4s, color .4s, box-shadow .4s;
}
.flow-step.on { background: linear-gradient(90deg, var(--blue), var(--sky)); border-color: transparent; color: #fff; box-shadow: 0 0 30px -4px rgba(92,179,227,.7); }
.flow-arrow { width: 22px; height: 12px; color: var(--sky); opacity: .6; }
.flow-step.last { font-weight: 900; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { padding: 30px 26px 32px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.pillar .num { font-family: var(--font-display); font-stretch: 70%; font-weight: 900; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.pillar h3 { margin: 0; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pillar p.kicker { color: var(--text); font-weight: 500; font-size: 17px; line-height: 1.35; margin-top: -4px; }
.pillar::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(.15); transform-origin: left; transition: transform .6s var(--ease); }
.pillar:hover::after { transform: scaleX(1); }

/* ==========================================================================
   PROCESO
   ========================================================================== */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.process-head { position: sticky; top: 120px; display: grid; gap: 22px; }
.process-head h2 { font-size: clamp(44px, 6vw, 84px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  grid-row: span 2; font-family: var(--font-display); font-stretch: 70%; font-weight: 900; font-size: 44px; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin: 0; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 24px; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ==========================================================================
   TRABAJO (reels)
   ========================================================================== */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(170deg, #0d1d3c, #1a4389 70%, #4079bd);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.reel:nth-child(2) { transform: translateY(40px); }
.reel:nth-child(4) { transform: translateY(40px); }
.reel:hover { box-shadow: 0 30px 60px -20px rgba(92,179,227,.45); }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3,8,20,.85)); z-index: 1; }
.reel .play {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -60%); z-index: 2;
  border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.reel .play svg { width: 22px; margin-left: 4px; }
button.play { padding: 0; cursor: pointer; transition: opacity .3s, transform .3s var(--ease); }
.reel-video { cursor: pointer; }
.reel-video video { z-index: 0; }
.reel-video::before { transition: opacity .4s; }
.reel-video:hover .play { transform: translate(-50%, -60%) scale(1.08); }
.reel-video.playing .play, .reel-video.playing .reel-meta { opacity: 0; pointer-events: none; }
.reel-video.playing::before { opacity: 0; }
.reel-meta { transition: opacity .3s; }
.reel-meta { position: relative; z-index: 2; display: grid; gap: 4px; }
.reel-meta small { color: var(--sky); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.reel-meta b { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; }
.reel-ph { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.4); color: var(--muted); border: 1px dashed var(--line); }
.work-cta { margin-top: 90px; text-align: center; }
.reels-dots { display: none; }

/* ==========================================================================
   SOBRE / EQUIPO
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-copy { display: grid; gap: 20px; }
.about-copy p { margin: 0; color: var(--muted); font-size: 19px; }
.team-title { margin: clamp(50px, 7vw, 80px) 0 26px; font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 14px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); transition: border-color .35s, transform .35s var(--ease); }
.member:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.member img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; transform: scale(1.04); margin-bottom: 14px; box-shadow: 0 0 0 3px rgba(3,8,20,.9), 0 0 0 5px rgba(92,179,227,.45); background: #fff; }
.member b { font-family: var(--font-display); font-weight: 800; font-size: 19px; text-transform: uppercase; line-height: 1.05; }
.member span { color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.values div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.values b { display: block; font-family: var(--font-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 17px; letter-spacing: .03em; }
.values span { font-size: 14.5px; color: var(--muted); }

/* ==========================================================================
   PLANES
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan .for p { margin: 0; }
.guarantee-word { color: var(--text); font-weight: 700; }
.info-btn {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; padding: 0; vertical-align: 1px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(92,179,227,.14); color: var(--sky);
  font: italic 700 12px/1 Georgia, serif; cursor: pointer; transition: background .25s, color .25s, transform .25s;
}
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--sky); color: #fff; }
.info-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.guarantee-info { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(3,8,20,.55); color: var(--muted); font-size: 13.5px; line-height: 1.5; animation: caseIn .35s var(--ease); }
.guarantee-info b { display: block; margin-bottom: 4px; color: var(--sky); font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.plan .ast { color: var(--sky); font-weight: 700; font-size: .8em; }
.plan-extra { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); background: rgba(92,179,227,.06); color: var(--muted); font-size: 13px; line-height: 1.45; }
.plan-extra b { color: var(--text); }
.plan { padding: 30px 24px; display: flex; flex-direction: column; gap: 18px; }
.plan-tag { font-family: var(--font-display); font-stretch: 80%; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); min-height: 18px; }
.plan h3 { margin: 0; font-family: var(--font-display); font-stretch: 72%; font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: .95; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-family: var(--font-display); font-stretch: 70%; font-weight: 900; font-size: 60px; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan .for { margin: 0; color: var(--muted); font-size: 14.5px; min-height: 88px; }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.plan li svg { flex: none; width: 16px; height: 16px; color: var(--sky); margin-top: 2px; }
.plan li strong { color: var(--sky); font-weight: 700; }
.plan li b { color: var(--text); font-weight: 700; }
.plan li.no b { color: inherit; }
.plan li.less strong { color: var(--text); }
.plan li .diff { margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; color: #c9d6e8; background: rgba(107,127,156,.22); border: 1px solid rgba(133,151,178,.35); }
.plan li.no { color: var(--dim); }
.plan li.no > span { text-decoration: line-through; text-decoration-color: rgba(107,127,156,.6); }
.plan li.no svg { color: #8597b2; }
.plan .btn { width: 100%; }
.plan-featured { border-color: var(--line-strong); background: linear-gradient(170deg, rgba(64,121,189,.38), rgba(26,67,137,.3) 55%, rgba(3,8,20,.4)); box-shadow: 0 0 0 1px rgba(92,179,227,.2), 0 0 90px -25px rgba(92,179,227,.5); }
.plan-featured .price b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plans-note { margin-top: 26px; text-align: center; color: var(--dim); font-size: 14px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-strong); background: rgba(64,121,189,.1); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-display); font-stretch: 78%; font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .35s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--sky); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i { background: rgba(92,179,227,.15); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 26px 24px; color: var(--muted); font-size: 16.5px; max-width: 70ch; }
.faq .ans p { margin: 0; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-copy { display: grid; gap: 26px; position: sticky; top: 120px; }
.contact-copy h2 { font-size: clamp(48px, 6.4vw, 96px); }
.contact-lines { display: grid; gap: 12px; margin-top: 8px; }
.contact-lines a, .contact-lines div {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); transition: border-color .3s, transform .3s var(--ease);
}
.contact-lines a:hover { border-color: var(--line-strong); transform: translateX(4px); }
.contact-lines svg { width: 20px; height: 20px; color: var(--sky); flex: none; }
.contact-lines small { display: block; color: var(--dim); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.form { padding: clamp(26px, 4vw, 44px); display: grid; gap: 20px; }
.form h3 { margin: 0; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 28px; text-transform: uppercase; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font-size: 14px; color: var(--muted); font-weight: 500; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(3,8,20,.55); outline: none; transition: border-color .25s, box-shadow .25s; font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(92,179,227,.15); }
.field input::placeholder, .field textarea::placeholder { color: #4f6380; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(3,8,20,.45);
  font-size: 14.5px; transition: all .25s;
}
.chips label:hover span { border-color: var(--line-strong); }
.chips input:checked + span { background: linear-gradient(90deg, var(--blue), var(--sky)); border-color: transparent; color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(92,179,227,.4); }
.form .btn { width: 100%; --h: 58px; font-size: 17px; }
.form-legal { margin: 0; color: var(--dim); font-size: 12.5px; text-align: center; }
.form-ok { display: none; padding: 16px; border-radius: 12px; background: rgba(92,179,227,.12); border: 1px solid var(--line-strong); font-size: 15px; }
.form.sent .form-ok { display: block; }

/* ==========================================================================
   CTA FINAL + FOOTER
   ========================================================================== */
.final {
  text-align: center; padding: clamp(60px, 9vw, 110px) var(--gutter); border-radius: 32px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 55%, var(--sky) 100%);
}
.final .bgmark { position: absolute; width: 70%; max-width: 700px; right: -12%; top: -20%; opacity: .16; }
.final h2 { position: relative; font-size: clamp(48px, 8vw, 120px); }
.final p { position: relative; margin: 22px auto 34px; max-width: 46ch; font-size: 19px; color: #e6f2fb; }
.final .btn { position: relative; background: #fff; color: var(--navy); box-shadow: 0 20px 50px -15px rgba(3,8,20,.6); }
.final .btn:hover { transform: translateY(-2px); }

.footer { padding: 70px 0 36px; color: var(--muted); font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.footer h4 { margin: 0 0 14px; font-family: var(--font-display); font-stretch: 80%; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--text); }
.footer-claim { margin: 18px 0 0; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; color: var(--dim); font-size: 13px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: rgba(92,179,227,.12); border-color: var(--line-strong); }
.socials svg { width: 18px; height: 18px; }

/* WhatsApp flotante */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 14px 34px -10px rgba(92,179,227,.8); transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; color: #fff; }

/* ==========================================================================
   Revelado al hacer scroll (solo si JS está activo)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .vs-them.reveal.in { transform: translateX(24px) scale(.96); }
.js .reel.reveal.in:nth-child(2), .js .reel.reveal.in:nth-child(4) { transform: translateY(40px); }

/* Splitting de titulares */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .04em; margin-top: -.16em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .split.in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .big-mark, .notif, .reel-bar i { animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan .for { min-height: 0; }
  .reels { gap: 12px; }
  .reel { padding: 14px; }
  .reel-meta b { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-inner { background: rgba(3,8,20,.92); border-color: var(--line); border-radius: 28px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav.open .nav-links {
    display: grid; position: absolute; top: 76px; left: var(--gutter); right: var(--gutter); gap: 4px; padding: 14px;
    border-radius: 24px; background: rgba(3,8,20,.96); border: 1px solid var(--line);
  }
  .nav.open .nav-links a { display: block; padding: 14px 12px; font-size: 20px; color: var(--text); }
  .nav.open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .hero { padding-top: 120px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stage { min-height: 520px; margin-top: 10px; }
  .notif-1 { left: 0; }
  .notif-2 { right: 0; }
  .notif-3 { left: 4%; }

  .vs { grid-template-columns: 1fr; gap: 0; }
  .vs-them, .js .vs-them.reveal.in { transform: scale(.95) translateY(16px); }
  .process, .about, .contact { grid-template-columns: 1fr; }
  .case-panel { grid-template-columns: 1fr; }
  .case-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .case-tabs::-webkit-scrollbar { display: none; }
  .case-tab { flex: none; }
  .process-head, .contact-copy { position: static; }
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member { padding: 20px 10px; }
  .member img { width: 84px; height: 84px; }
  .member b { font-size: 17px; }  .nav { inset: 10px 0 auto; }
  .nav-inner { height: 60px; padding-left: 16px; }
  .logo-word b { font-size: 25px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 60px); }
  .hero-cta .btn { width: 100%; }
  .phone { width: 230px; }
  .phone-stage { min-height: 470px; }
  .reel-title { font-size: 30px; right: 50px; }
  .notif { width: 210px; padding: 10px 12px 10px 10px; }
  .notif-1 { top: 6%; left: -2%; }
  .notif-2 { bottom: 26%; right: -2%; }
  .notif-3 { display: none; }
  .pillars, .plans { grid-template-columns: 1fr; }
  /* Carrusel: un vídeo por pantalla, deslizar para ver el resto */
  .reels {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel, .js .reel.reveal.in:nth-child(n) { flex: 0 0 100%; transform: none; scroll-snap-align: center; scroll-snap-stop: always; padding: 20px; border-radius: 20px; }
  .reel-meta b { font-size: 22px; }
  .reels-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .reels-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .3s var(--ease), background .3s; }
  .reels-dots i.on { width: 24px; background: var(--sky); }
  .work-cta { margin-top: 30px; }
  .values { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .step { padding: 22px 20px; gap: 6px 16px; }
  .step::before { font-size: 36px; }
  .faq summary { font-size: 18px; padding: 18px 18px; }
  .faq .ans { padding: 0 18px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .flow-step { font-size: 14px; padding: 10px 14px; }
  .flow-arrow { width: 14px; }}
