/* ============================================================
   StyLink Pro — stylinkpro.com
   Sistema de diseño: navy profundo + dorado (marca) + verde WhatsApp
   (mecanismo real del producto), tipografía Unbounded/Inter/JetBrains Mono
   ============================================================ */

:root {
  /* Color */
  --bg:         #0E0E1B;
  --bg-alt:     #14152A;
  --surface:    #1B1C34;
  --surface-2:  #23243F;
  --border:     rgba(245, 241, 232, 0.09);
  --border-strong: rgba(245, 241, 232, 0.16);

  --gold:       #C9A96E;
  --gold-soft:  #E8C07E;
  --gold-dim:   rgba(201, 169, 110, 0.14);

  --green:      #25D366;
  --green-dim:  rgba(37, 211, 102, 0.14);

  --cream:      #F5F1E8;
  --muted:      #9A96AE;
  --muted-2:    #6E6A85;

  /* Type */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-lift: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}

/* Background ambience — soft gradient blobs, no images */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 82% -6%, rgba(201,169,110,0.16), transparent 60%),
    radial-gradient(680px 480px at -8% 18%, rgba(37,211,102,0.09), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(201,169,110,0.06), transparent 60%);
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 14, 27, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--cream); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; stroke: var(--bg); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #14152A;
  box-shadow: 0 10px 30px -10px rgba(201,169,110,0.55);
}
.btn-gold:hover { box-shadow: 0 14px 34px -8px rgba(201,169,110,0.7); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(245,241,232,0.06); border-color: var(--cream); }

.btn-whatsapp {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { background: rgba(37,211,102,0.22); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 168px 0 96px;
  position: relative; z-index: 1;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.7rem);
  margin: 20px 0 22px;
  color: var(--cream);
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lead {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.hero-trust div { display: flex; flex-direction: column; gap: 2px; }
.hero-trust strong { font-family: var(--font-display); font-size: 20px; color: var(--cream); }
.hero-trust span { font-size: 12.5px; color: var(--muted-2); }

/* Phone mockup — the signature element */
.phone-stage {
  position: relative;
  display: flex; justify-content: center;
}
.phone-stage::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(201,169,110,0.20), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 300px;
  background: linear-gradient(180deg, #1D1E36, #14152A);
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-lift);
}
.phone-notch {
  width: 90px; height: 22px; background: #0E0E1B;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 10px;
}
.phone-screen {
  background: #0B141A;
  border-radius: 24px;
  overflow: hidden;
  height: 480px;
  display: flex; flex-direction: column;
}
.phone-header {
  background: #1F2C34;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.phone-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  display: grid; place-items: center; flex-shrink: 0;
}
.phone-avatar svg { width: 16px; height: 16px; stroke: var(--bg); }
.phone-header-text strong { display: block; font-size: 13.5px; color: var(--cream); font-family: var(--font-body); }
.phone-header-text span { font-size: 11px; color: var(--green); }

.phone-body {
  flex: 1;
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 40px);
}
.bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  animation: bubbleIn .35s ease forwards;
}
.bubble.in {
  align-self: flex-start;
  background: #202C33;
  color: var(--cream);
  border-bottom-left-radius: 3px;
}
.bubble.out {
  align-self: flex-end;
  background: #005C4B;
  color: #E9FDF2;
  border-bottom-right-radius: 3px;
}
@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0); }
}
.typing-dots {
  align-self: flex-start;
  background: #202C33;
  border-radius: 12px;
  padding: 9px 13px;
  display: inline-flex; gap: 4px;
}
.typing-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted);
  animation: dotPulse 1.1s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotPulse {
  0%, 60%, 100% { opacity: .3; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1); }
}

/* ── Section shell ───────────────────────────────────────── */
.section { padding: 108px 0; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 8%, var(--bg-alt) 92%, transparent); }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--cream); margin-top: 16px; }
.section-head p { font-size: 16px; margin-top: 14px; }

/* Divider — thin diagonal stripe, barbershop nod, used sparingly */
.stripe-divider {
  height: 3px;
  width: 64px;
  background: repeating-linear-gradient(115deg, var(--gold) 0 8px, transparent 8px 14px);
  margin: 0 0 22px;
}

/* ── Features grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 32px 26px;
  transition: background .25s ease;
}
.feature-card:hover { background: var(--surface-2); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gold-dim);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.feature-card.wa .feature-icon { background: var(--green-dim); }
.feature-card.wa .feature-icon svg { stroke: var(--green); }
.feature-card h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.feature-card p { font-size: 13.8px; line-height: 1.55; }
.feature-tag {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--gold); background: var(--gold-dim);
  padding: 3px 8px; border-radius: 6px;
}

/* ── How it works ────────────────────────────────────────── */
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.flow-card > .eyebrow { margin-bottom: 22px; }
.flow-steps { display: flex; flex-direction: column; }
.flow-step { display: flex; gap: 18px; padding: 18px 0; position: relative; }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute; left: 18px; top: 46px; bottom: -4px;
  width: 1px; background: var(--border-strong);
}
.flow-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border-strong);
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  z-index: 1;
}
.flow-step h4 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.flow-step p { font-size: 13.8px; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--green-dim); border: 1px solid rgba(37,211,102,0.3);
  color: var(--green); font-size: 13.5px; font-weight: 600;
  padding: 12px 18px; border-radius: 999px;
  width: fit-content; margin-bottom: 40px;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,169,110,0.08), var(--surface) 40%);
  box-shadow: var(--shadow-lift);
  transform: translateY(-10px);
}
.price-badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--gold); color: var(--bg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .04em;
}
.price-name { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--cream); }
.price-desc { font-size: 13px; margin: 6px 0 22px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-amount span.num { font-family: var(--font-display); font-size: 2.6rem; color: var(--cream); }
.price-amount span.cur { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.price-period { font-size: 12.5px; color: var(--muted-2); margin-bottom: 26px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-list li { display: flex; gap: 10px; font-size: 13.8px; color: var(--cream); align-items: flex-start; }
.price-list li svg { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }
.price-list li.dim { color: var(--muted-2); }
.price-list li.dim svg { stroke: var(--muted-2); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; color: var(--cream);
  font-family: var(--font-body); font-size: 16.5px; font-weight: 600;
}
.faq-q svg { width: 18px; height: 18px; stroke: var(--gold); flex-shrink: 0; transition: transform .25s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 22px; font-size: 14.5px; max-width: 640px; }

/* ── CTA banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  overflow: hidden; position: relative;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 90% 20%, rgba(201,169,110,0.18), transparent 70%);
}
.cta-banner-text { position: relative; z-index: 1; max-width: 480px; }
.cta-banner-text h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--cream); margin-bottom: 12px; }
.cta-banner-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 72px 0 32px; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { font-size: 13.8px; margin-top: 14px; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block; font-size: 13.8px; color: var(--muted); margin-bottom: 10px;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--cream); }
.footer-legal { display: flex; gap: 20px; }

/* ── Download panel ──────────────────────────────────────── */
.download-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.download-text h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: var(--cream); margin: 16px 0 12px; }
.download-text > p { font-size: 15px; max-width: 460px; margin-bottom: 30px; }
.download-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.download-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  min-width: 200px;
}
.download-badge svg { stroke: var(--gold); }
.download-badge strong { display: block; font-family: var(--font-body); font-size: 14.5px; color: var(--cream); }
.download-badge span { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

@media (max-width: 860px) {
  .download-panel { grid-template-columns: 1fr; padding: 40px 28px; }
  .download-badge { justify-self: start; }
}

/* ── Legal pages ─────────────────────────────────────────── */
.legal-hero { padding: 156px 0 48px; position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--cream); margin: 16px 0 10px; }
.legal-hero .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); }
.legal-body { padding: 0 0 100px; position: relative; z-index: 1; }
.legal-body .wrap { max-width: 780px; }
.legal-body h2 {
  font-family: var(--font-body); font-size: 19px; font-weight: 700;
  color: var(--cream); margin: 44px 0 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 15px; line-height: 1.75; margin-bottom: 14px; color: var(--muted); }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { font-size: 15px; line-height: 1.75; color: var(--muted); margin-bottom: 8px; }
.legal-body strong { color: var(--cream); }
.legal-body a { color: var(--gold); border-bottom: 1px solid rgba(201,169,110,0.35); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--cream); }

/* ── Reveal on scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-stage { order: -1; margin-bottom: 12px; }
  .flows { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 48px 32px; }
  .cta-banner-actions { justify-content: center; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 140px 0 72px; }
  .section { padding: 76px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-trust { gap: 20px; }
  .phone { width: 100%; max-width: 300px; }
}
