/* ══════════════════════════════════════════════
   MeliLink — Landing page
   Identidad: azul #37a0ef → azul oscuro #171576
   ══════════════════════════════════════════════ */

:root {
  --brand: #37a0ef;
  --brand-mid: #1a6bbf;
  --brand-dark: #171576;
  --grad: linear-gradient(135deg, #37a0ef, #171576);
  --grad-hero: linear-gradient(145deg, #37a0ef 0%, #1a6bbf 45%, #171576 100%);
  --bg: #f1f5f9;            /* slate-100, igual que la plataforma */
  --surface: #ffffff;
  --text: #0f172a;          /* slate-900 */
  --text-soft: #475569;     /* slate-600 */
  --text-mute: #94a3b8;     /* slate-400 */
  --border: #e2e8f0;        /* slate-200 */
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(23, 21, 118, .15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Los estados iniciales de reveal-left/right desplazan elementos ±48px
   fuera del viewport: se recorta el eje X para que nunca haya scroll lateral. */
html, body { overflow-x: clip; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

.grad-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: .65rem;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(55, 160, 239, .35);
}
.btn-grad:hover { box-shadow: 0 12px 28px rgba(55, 160, 239, .45); }

.btn-white {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.btn-outline {
  background: #fff;
  color: var(--brand-dark);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-icon { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* ══════════ Barra de progreso de scroll ══════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ══════════ Navbar ══════════ */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(15, 23, 42, .08);
  padding: .6rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo img { height: 2.1rem; width: auto; }
/* Sobre el hero (transparente) se ve el logo blanco; al hacer scroll, el logo a color */
.navbar .logo-dark { display: none; }
.navbar .logo-light { display: block; }
.navbar.scrolled .logo-dark { display: block; }
.navbar.scrolled .logo-light { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a { color: rgba(255, 255, 255, .85); transition: color .18s ease; }
.nav-links a:hover { color: #fff; }
.navbar.scrolled .nav-links a { color: var(--text-soft); }
.navbar.scrolled .nav-links a:hover { color: var(--brand-dark); }

.nav-cta {
  padding: .55rem 1.2rem;
  border-radius: .6rem;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff !important;
  transition: background .18s ease;
}
.nav-cta:hover { background: rgba(255, 255, 255, .24); }
.navbar.scrolled .nav-cta {
  background: var(--grad);
  border: none;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(55, 160, 239, .35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
}
.navbar.scrolled .nav-toggle span { background: var(--brand-dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ══════════ Hero ══════════ */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 9.5rem 0 7rem;
  overflow: hidden;
}

/* Contenedor absoluto sobre todo el hero: el parallax le aplica un
   transform y los iconos absolutos se posicionan contra él. */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-decor svg {
  position: absolute;
  fill: rgba(255, 255, 255, .09);
}
.f1 { width: 90px;  top: 18%; left: 4%;  animation: floaty 6s ease-in-out infinite; }
.f2 { width: 110px; top: 60%; left: 12%; animation: floaty 7s ease-in-out infinite reverse; }
.f3 { width: 75px;  bottom: 14%; right: 6%; animation: floaty 5.5s ease-in-out infinite; }
.f4 { width: 65px;  top: 14%; right: 12%; animation: floaty 6.5s ease-in-out infinite reverse; }
.f5 { width: 100px; top: 42%; right: 38%; animation: floaty 8s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(4deg); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.hero-copy h1 .grad-text {
  background: linear-gradient(90deg, #ffffff, #a5d8ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .78);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.stat span { font-size: .85rem; color: rgba(255, 255, 255, .65); }

/* ── Mockup dashboard ── */
.hero-mock { position: relative; }

.mock-window {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(10, 10, 60, .4);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .5s ease;
}
.hero-mock:hover .mock-window {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .9rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #f87171; }
.dot.y { background: #fbbf24; }
.dot.g { background: #34d399; }
.mock-url {
  margin-left: .75rem;
  font-size: .7rem;
  color: var(--text-mute);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .15rem .8rem;
}

.mock-body { display: flex; min-height: 320px; }

.mock-side {
  width: 62px;
  background: linear-gradient(180deg, #1e293b, #171576);
  padding: .9rem .7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.mock-logo { width: 30px; margin-bottom: .5rem; filter: brightness(0) invert(1); }
.mock-item {
  width: 100%;
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .18);
}
.mock-item.active { background: var(--brand); }

.mock-main { flex: 1; padding: 1rem; background: #f8fafc; }

.mock-cards { display: flex; gap: .7rem; margin-bottom: .9rem; }
.mock-card {
  flex: 1;
  background: #fff;
  border-radius: .6rem;
  border: 1px solid var(--border);
  padding: .6rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mock-label { width: 55%; height: 6px; border-radius: 3px; background: #e2e8f0; }
.mock-value { font-size: .95rem; font-weight: 700; color: var(--text); }
.mock-trend { font-size: .6rem; font-weight: 600; }
.mock-trend.up { color: #10b981; }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: .55rem;
  height: 110px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .8rem;
  margin-bottom: .9rem;
}
.mock-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  opacity: .9;
  animation: grow 1.2s ease both;
}
.mock-chart span:nth-child(odd) { opacity: .55; }
@keyframes grow { from { height: 0; } to { height: var(--h); } }

.mock-rows { display: flex; flex-direction: column; gap: .5rem; }
.mock-row {
  height: 14px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--border);
}

.mock-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: var(--text);
  border-radius: .75rem;
  padding: .6rem .95rem;
  font-size: .78rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(10, 10, 60, .25);
  animation: floaty 5s ease-in-out infinite;
}
.mock-chip svg { width: 16px; height: 16px; fill: var(--brand); flex-shrink: 0; }
.chip-1 { top: -1.4rem; right: -.6rem; animation-delay: .6s; }
.chip-2 { bottom: -1.2rem; left: -1rem; }
.chip-2 svg { fill: #10b981; }

.hero-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 55px; display: block; }

/* ══════════ Secciones ══════════ */
.section { padding: 5.5rem 0; }
.section-alt { background: #fff; }

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  background: rgba(55, 160, 239, .1);
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow.light { color: #fff; background: rgba(255, 255, 255, .15); }

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(55, 160, 239, .4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: .85rem;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 18px rgba(55, 160, 239, .3);
}
.feature-icon svg { width: 26px; height: 26px; fill: #fff; }

.feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature p { font-size: .92rem; color: var(--text-soft); }

/* ── Extensión de Chrome ── */
.ext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ext-visual { position: relative; max-width: 480px; }

.ext-browser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
  overflow: hidden;
  transform: perspective(1200px) rotateY(6deg) rotateX(2deg);
  transition: transform .5s ease;
}
.ext-visual:hover .ext-browser {
  transform: perspective(1200px) rotateY(2deg) rotateX(1deg);
}

/* Resultados de búsqueda estilo Amazon */
.ext-results {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .9rem;
}
.ext-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .6rem .7rem;
}
.ext-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: .5rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: grid;
  place-items: center;
}
.ext-thumb svg { width: 20px; height: 20px; fill: #cbd5e1; }

.ext-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ext-title-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
}
.ext-title-line.short { width: 55%; }

.ext-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
}
.ext-meta strong { font-size: .85rem; color: var(--text); }
.ext-meta code {
  font-size: .6rem;
  color: var(--text-mute);
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1rem .4rem;
  font-family: ui-monospace, 'SF Mono', 'Fira Code', monospace;
}

.ext-popup {
  position: absolute;
  right: -2.2rem;
  bottom: -2.6rem;
  width: 274px;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  box-shadow: 0 24px 55px rgba(23, 21, 118, .28);
  animation: floaty 6s ease-in-out infinite;
}
.ext-popup-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .7rem;
}
.ext-popup-head img { height: 20px; }
.ext-popup-head > span { font-size: .78rem; font-weight: 700; white-space: nowrap; }

.ext-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #059669;
  background: #ecfdf5;
  padding: .2rem .5rem;
  border-radius: 999px;
}
.ext-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.ext-account {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .68rem;
  color: var(--text-mute);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .45rem .6rem;
  margin-bottom: .75rem;
}
.ext-account strong { color: var(--text); font-size: .7rem; }

.ext-progressbar {
  height: 6px;
  border-radius: 3px;
  background: rgba(55, 160, 239, .15);
  overflow: hidden;
  margin-bottom: .45rem;
}
.ext-progressbar span {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: 3px;
  background: var(--grad);
  animation: ext-progress 3s ease-in-out infinite alternate;
}
@keyframes ext-progress {
  from { width: 46%; }
  to   { width: 78%; }
}

.ext-progress-label {
  font-size: .62rem;
  color: var(--text-mute);
  margin-bottom: .75rem;
}

.ext-stats { display: flex; gap: .5rem; }
.ext-stat {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .45rem .55rem;
}
.ext-stat strong { display: block; font-size: .88rem; }
.ext-stat span { font-size: .62rem; color: var(--text-mute); line-height: 1.2; display: block; }

.ext-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: .2rem 0 1rem;
}
.ext-copy > p { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 1.6rem; }

.ext-list { display: flex; flex-direction: column; gap: .85rem; }
.ext-list li {
  position: relative;
  padding-left: 2rem;
  font-size: .95rem;
  color: var(--text-soft);
}
.ext-list li strong { color: var(--text); }
.ext-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .12rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(55, 160, 239, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2337a0ef'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ── Cómo funciona ── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}
.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
}
.step-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 10px 24px rgba(55, 160, 239, .35);
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step p { font-size: .92rem; color: var(--text-soft); }

.step-line {
  flex: 0 1 90px;
  height: 2px;
  margin-top: 29px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px);
  opacity: .5;
}

/* ── Planes ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.plan h3 {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  margin-bottom: 1rem;
}

.plan-pubs {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.plan-pubs span {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0;
}

.plan-price {
  margin-top: 1.1rem;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-unit {
  font-size: .8rem;
  color: var(--text-mute);
  margin-bottom: 1.4rem;
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.8rem;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .9rem;
  color: var(--text-soft);
}
.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .18rem;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(55, 160, 239, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2337a0ef'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/11px no-repeat;
}

.plan-featured {
  border: 2px solid var(--brand);
  box-shadow: 0 20px 50px rgba(55, 160, 239, .22);
  transform: scale(1.03);
}
.plan-featured:hover { transform: scale(1.03) translateY(-6px); }

.plan-badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(55, 160, 239, .4);
  white-space: nowrap;
}

/* ── Plan de actualización ── */
.update-plan {
  margin-top: 3rem;
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  color: #fff;
  box-shadow: 0 24px 60px rgba(23, 21, 118, .3);
}

.update-copy h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: .8rem;
}
.update-copy p { color: rgba(255, 255, 255, .75); font-size: .98rem; }

.update-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.update-item {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}
.update-item:hover { background: rgba(255, 255, 255, .16); transform: translateY(-4px); }

.update-icon {
  width: 40px;
  height: 40px;
  border-radius: .7rem;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  margin-bottom: .8rem;
}
.update-icon svg { width: 22px; height: 22px; fill: #fff; }

.update-item strong { display: block; font-size: .95rem; margin-bottom: .25rem; }
.update-item span { font-size: .8rem; color: rgba(255, 255, 255, .7); line-height: 1.45; }

/* ══════════ CTA final ══════════ */
.cta {
  background: var(--grad-hero);
  color: #fff;
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  top: -300px;
  right: -150px;
}

.cta-logo { height: 56px; margin: 0 auto 1.5rem; }
.cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.cta p { color: rgba(255, 255, 255, .75); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════ Footer ══════════ */
.footer { background: #fff; border-top: 1px solid var(--border); }

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0 2rem;
  flex-wrap: wrap;
}
.footer-brand img { height: 2rem; margin-bottom: .8rem; }
.footer-brand p { font-size: .88rem; color: var(--text-soft); }

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: .92rem;
  font-weight: 500;
}
.footer-links a { color: var(--text-soft); transition: color .18s ease; }
.footer-links a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-mute);
}

/* ══════════ Animaciones de aparición al hacer scroll ══════════
   El estado oculto vive en :not(.visible): al aparecer, el elemento
   no declara transform propio y los transforms de hover/scale de cada
   componente siguen funcionando. */
.reveal {
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}
.reveal:not(.visible) { opacity: 0; transform: translateY(36px); }
.reveal-left:not(.visible) { transform: translateX(-48px); }
.reveal-right:not(.visible) { transform: translateX(48px); }
.reveal-zoom:not(.visible) { transform: scale(.9) translateY(24px); }

/* Retraso escalonado en grids */
.features-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2) { transition-delay: .1s; }
.features-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3) { transition-delay: .2s; }
.features-grid .reveal:nth-child(4) { transition-delay: .05s; }
.features-grid .reveal:nth-child(5) { transition-delay: .15s; }
.features-grid .reveal:nth-child(6) { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════ Responsive ══════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
  .hero-mock { max-width: 560px; margin: 0 auto; }
  .mock-window { transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .update-plan { grid-template-columns: 1fr; }
  .ext-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ext-visual { margin: 0 auto 1.5rem; }
  .ext-browser { transform: none; }
  .ext-popup { right: -.5rem; bottom: -2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(300px, 80vw);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.4rem;
    box-shadow: -10px 0 40px rgba(15, 23, 42, .15);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--text) !important; font-size: 1.05rem; }
  .nav-links .nav-cta {
    background: var(--grad);
    border: none;
    color: #fff !important;
    width: 100%;
    text-align: center;
  }

  .hero { padding: 7.5rem 0 5.5rem; }
  .hero-stats { gap: 1.6rem; }
  .mock-chip { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-6px); }

  .steps { flex-direction: column; align-items: center; gap: 2.2rem; }
  .step-line { display: none; }

  .update-items { grid-template-columns: 1fr; }
  .update-plan { padding: 2rem 1.5rem; }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }

  /* En pantallas pequeñas el popup de la extensión se apila debajo
     de la tarjeta de Amazon en vez de superponerse y taparla. */
  .ext-popup {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto 0;
  }
  .ext-visual { margin-bottom: 0; }
}
