/* ════════════════════════════════════════════════════════════
   ZYRA · Landing premium · styles.css
   Paleta: #080808 / #7C6FF7 / #F4F2EE · Space Grotesk
   ════════════════════════════════════════════════════════════ */

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

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080808;
  --bg-2: #0e0e0e;
  --bg-3: #141414;
  --bg-4: #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);
  --purple: #7C6FF7;
  --purple-dim: rgba(124,111,247,0.12);
  --purple-glow: rgba(124,111,247,0.35);
  --cream: #F4F2EE;
  --muted: rgba(244,242,238,0.50);
  --muted-2: rgba(244,242,238,0.32);
  --green: #4ade80;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }

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

img, video { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .15s, opacity .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 4px 24px rgba(124,111,247,0.25); }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--purple); background: var(--purple-dim); }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 12px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.3px; text-decoration: none; }
.nav-logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--cream); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 160px 24px 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-glow {
  position: absolute; top: -350px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 1100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,111,247,0.14) 0%, transparent 62%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 700; line-height: 1.06; letter-spacing: -2.2px;
  max-width: 980px; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(124,111,247,0.75); }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 660px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 72px; }

/* video mockup */
.hero-video {
  width: min(960px, 100%);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #16151f 0%, #0d0d12 100%);
  border: 1px solid var(--border-2);
  padding: 14px;
  box-shadow: 0 60px 140px rgba(0,0,0,0.65), 0 0 90px rgba(124,111,247,0.12);
  position: relative; z-index: 2;
}
.hero-video .chrome { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; }
.hero-video .chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(244,242,238,0.14); }
.hero-video .chrome .url {
  flex: 1; margin: 0 60px; text-align: center;
  background: rgba(255,255,255,0.05); border-radius: 8px;
  font-size: 12px; color: var(--muted-2); padding: 4px 14px; font-style: normal;
}
.hero-video video { width: 100%; border-radius: 12px; }

/* ── Sections common ── */
section { padding: 104px 0; position: relative; }
.s-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.s-title { font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.12; margin-bottom: 16px; }
.s-title .quiet { color: var(--muted); }
.s-sub { font-size: 17px; color: var(--muted); max-width: 620px; margin-bottom: 56px; }
.center { text-align: center; }
.center .s-sub { margin-left: auto; margin-right: auto; }

/* ── Problema ── */
.problem { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.problem-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.problem-card .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(247,111,111,0.1); border: 1px solid rgba(247,111,111,0.25);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--red);
}
.problem-card .ico svg { width: 20px; height: 20px; }
.problem-card h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 8px; line-height: 1.3; }
.problem-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ── Solución ── */
.solution-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.solution-points { display: flex; flex-direction: column; gap: 22px; }
.spoint { display: flex; gap: 16px; }
.spoint .n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: var(--purple-dim); border: 1px solid rgba(124,111,247,0.3);
  color: var(--purple); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.spoint h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.spoint p { font-size: 14.5px; color: var(--muted); }
.solution-visual {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--bg-2); padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.module-chip {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; font-size: 14.5px; font-weight: 600;
  transition: border-color .25s, background .25s;
}
.module-chip:hover { border-color: var(--purple); background: var(--purple-dim); }
.module-chip .tag { font-size: 11px; font-weight: 600; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }
.module-chip.on .tag { color: var(--green); }

/* ── Categorías índice ── */
.cats { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.cat-card {
  display: block; text-decoration: none;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: border-color .25s, transform .2s, background .25s;
}
.cat-card:hover { border-color: var(--purple); transform: translateY(-3px); background: #161520; }
.cat-card .k { font-size: 12px; font-weight: 700; color: var(--purple); letter-spacing: .1em; margin-bottom: 12px; }
.cat-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.cat-card p { font-size: 13.5px; color: var(--muted); }

/* ── Familia de producto (secciones A–F) ── */
.family { border-bottom: 1px solid var(--border); }
.family:nth-of-type(even) { background: var(--bg-2); }
.fam-head { max-width: 760px; margin-bottom: 56px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.mod-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: border-color .25s, transform .2s;
}
.mod-card:hover { border-color: rgba(124,111,247,0.55); transform: translateY(-3px); }
.mod-card .ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--purple-dim); border: 1px solid rgba(124,111,247,0.25);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.mod-card .ico svg { width: 21px; height: 21px; }
.mod-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 10px; line-height: 1.3; }
.mod-card > p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.mod-feats { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.mod-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.mod-feats li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); flex-shrink: 0; margin-top: 7px; }
.mod-price {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--cream); font-weight: 600;
}
.mod-price .orient { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted-2); margin-top: 3px; }
.mod-price .strong { color: var(--purple); }

.variant-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.variant {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 16px; font-size: 12.5px; font-weight: 500; color: var(--muted);
}

/* ── Pricing ── */
.pricing { background: var(--bg); }
.price-note { font-size: 13px; color: var(--muted-2); margin-bottom: 40px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 24px; }
.plan {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px; display: flex; flex-direction: column; position: relative;
  transition: border-color .25s, transform .2s;
}
.plan:hover { border-color: rgba(124,111,247,0.5); transform: translateY(-4px); }
.plan.featured { border-color: var(--purple); background: linear-gradient(180deg, rgba(124,111,247,0.08) 0%, var(--bg-3) 40%); }
.plan .badge-pop {
  position: absolute; top: -13px; left: 28px;
  background: var(--purple); color: #fff; font-size: 11.5px; font-weight: 700;
  border-radius: 100px; padding: 5px 14px; letter-spacing: .04em;
}
.plan .tier { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.plan .pname { font-size: 19px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 6px; }
.plan .pfor { font-size: 13px; color: var(--muted); margin-bottom: 22px; min-height: 40px; }
.plan .pprice { font-size: 40px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.plan .pprice small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .pdesde { font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.plan .psetup { font-size: 12px; color: var(--muted-2); margin: 10px 0 22px; line-height: 1.5; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.plan ul li { display: flex; gap: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.plan ul li::before { content: '✓'; color: var(--purple); font-weight: 700; flex-shrink: 0; }
.plan ul li.no::before { content: '—'; color: var(--muted-2); }
.plan .btn { margin-top: auto; width: 100%; }

.plan-grupo {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.plan-grupo .tier { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.plan-grupo h3 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 10px; }
.plan-grupo p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.plan-grupo ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.plan-grupo ul li { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.plan-grupo ul li::before { content: '✓'; color: var(--purple); font-weight: 700; }
.plan-grupo .gprice { text-align: right; }
.plan-grupo .gprice .pprice { font-size: 44px; font-weight: 700; letter-spacing: -1.5px; }
.plan-grupo .gprice .pprice small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-grupo .gprice .meta { font-size: 12px; color: var(--muted-2); margin: 8px 0 18px; line-height: 1.6; }

/* ── Add-ons ── */
.addons { background: var(--bg-2); border-top: 1px solid var(--border); }
.addon-fams { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.addon-fam {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.addon-fam h3 { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-bottom: 18px; }
.addon-fam .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.addon-fam .row:last-child { border-bottom: none; }
.addon-fam .row .nm { color: var(--cream); }
.addon-fam .row .pr { color: var(--muted); white-space: nowrap; font-size: 12.5px; text-align: right; }
.orientative-note {
  margin-top: 28px; font-size: 12.5px; color: var(--muted-2);
  border-left: 3px solid var(--purple); padding-left: 14px; max-width: 720px;
}

/* ── Sectores tabs ── */
.sectors-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.stab {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 100px;
  padding: 11px 22px; font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.stab svg { width: 17px; height: 17px; flex: 0 0 auto; }
.stab.active, .stab:hover { background: var(--purple-dim); border-color: var(--purple); color: var(--purple); }
.sector-panel { display: none; }
.sector-panel.active { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sector-panel h3 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 12px; }
.sector-panel .desc { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.sector-mods { display: flex; flex-wrap: wrap; gap: 10px; }
.sector-mods span {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 100px;
  padding: 9px 18px; font-size: 13px; font-weight: 500; color: var(--muted);
}
.sector-mods span.hl { background: var(--purple-dim); border-color: rgba(124,111,247,0.45); color: var(--purple); }

/* ── Por qué Zyra ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.why-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.2px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* caso real */
.case {
  margin-top: 56px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.case img { height: 44px; width: auto; filter: brightness(10); opacity: .9; }
.case p { flex: 1; min-width: 280px; font-size: 15px; color: var(--muted); }
.case p strong { color: var(--cream); }

/* ── CTA final + form ── */
.final { background: var(--bg-2); border-top: 1px solid var(--border); }
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.final h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.15; margin-bottom: 18px; }
.final .s-sub { margin-bottom: 28px; }
.final-channels { display: flex; flex-direction: column; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; text-decoration: none; font-size: 14.5px; font-weight: 600;
  transition: border-color .2s;
}
.channel:hover { border-color: var(--purple); }
.channel .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--purple-dim); display: flex; align-items: center; justify-content: center; }

.form { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.full { grid-column: 1 / -1; }
.fg label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fg input, .fg select, .fg textarea {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 12px 14px; font-family: var(--font); font-size: 14px; color: var(--cream);
  outline: none; transition: border-color .2s; width: 100%;
}
.fg select option { background: #1a1a1a; }
.fg textarea { resize: vertical; min-height: 86px; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--purple); }
.fg input::placeholder, .fg textarea::placeholder { color: rgba(244,242,238,0.2); }
.form .btn { width: 100%; margin-top: 16px; }
.form-note { font-size: 12px; color: var(--muted-2); margin-top: 14px; text-align: center; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand .nav-logo { margin-bottom: 14px; }
.foot-brand p { font-size: 13px; color: var(--muted-2); max-width: 280px; }
.foot-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13.5px; color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--cream); }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 12.5px; color: var(--muted-2);
}
.made-in { display: inline-flex; align-items: center; gap: 8px; }
.made-in svg { width: 24px; height: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,0.14); border-radius: 2px; }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
  .solution-grid, .final-grid { grid-template-columns: 1fr; gap: 48px; }
  .plan-grupo { grid-template-columns: 1fr; }
  .plan-grupo .gprice { text-align: left; }
  .sector-panel.active { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .hero { padding: 130px 20px 72px; }
  .container { padding: 0 20px; }
  .nav-links { 
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,8,8,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 11px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-burger { display: block; }
  .hero-ctas .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .case { padding: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
