/* ====================================================
   STRYDE Landing v2 · CSS centralizado
   Compartido por las 6 páginas: index, como-funciona,
   que-preguntar, integraciones, faq, soporte.
   ==================================================== */

/* ---------- 1. RESET + ROOT ---------- */
:root {
  --bg: #080a09;
  --bg2: #0c0f0c;
  --bg3: #111411;
  --green: #39e07a;
  --green-soft: rgba(57,224,122,.1);
  --amber: #f0a500;
  --red: #e05252;
  --blue: #4fa8e8;
  --text: #eef2ee;
  --text2: #7a917a;
  --text3: #3d4d3d;
  --border: rgba(255,255,255,.07);
  --border2: rgba(255,255,255,.12);
  --display: 'Bebas Neue', sans-serif;
  --serif: 'Fraunces', serif;
  --body: 'Plus Jakarta Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --maxw: 1100px;
  --maxw-narrow: 800px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ---------- 2. TIPOGRAFÍA HELPERS ---------- */
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: inline-block;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 64px;
  line-height: 1;
}

.section-title-sm {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1;
}

.section-title .y, .section-title span,
.section-title-sm .y, .section-title-sm span { color: var(--green); }

.lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
}

/* ---------- 3. NAV COMPARTIDO ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,10,9,.95), rgba(8,10,9,.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .y { color: var(--green); }

.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg { width: 16px; height: 16px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text2);
  text-transform: uppercase;
  transition: color .2s;
  padding: 8px 0;
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--green); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--bg);
  background: var(--green);
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  cursor: pointer;
  transition: opacity .2s;
  display: inline-block;
}

.nav-cta:hover { opacity: .85; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 80px 32px 32px;
}

.nav-drawer.open { display: flex; }

.nav-drawer-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.nav-drawer-link {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: .02em;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.nav-drawer-link.active { color: var(--green); }

.nav-drawer-cta {
  margin-top: auto;
  text-align: center;
  padding: 14px 24px;
  font-size: 13px;
}

/* ---------- 4. BARS DECORATIVAS ---------- */
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar {
  height: 8px;
  border-radius: 2px;
  transform: skewX(-24deg);
}
.bar-1 { width: 40px; background: var(--text2); opacity: .3; }
.bar-2 { width: 64px; background: var(--text2); opacity: .3; }
.bar-3 { width: 88px; background: var(--green); opacity: .7; }

.bars.lg .bar { height: 12px; gap: 8px; }
.bars.lg .bar-1 { width: 60px; }
.bars.lg .bar-2 { width: 96px; }
.bars.lg .bar-3 { width: 132px; }

.bars.xl .bar { height: 18px; }
.bars.xl .bar-1 { width: 80px; }
.bars.xl .bar-2 { width: 128px; }
.bars.xl .bar-3 { width: 176px; }

/* ---------- 5. HERO ---------- */
/* Hero grande (home) */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(57,224,122,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(57,224,122,.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bars-bg {
  position: absolute;
  bottom: -20px;
  right: -60px;
  opacity: .04;
  transform: rotate(-10deg) scale(3);
  transform-origin: bottom right;
  pointer-events: none;
}

/* Banda visual intermedia entre secciones. Estructura analoga a
   .lifestyle-shot: contenedor centrado con max-width, imagen con
   aspect-ratio fijo + object-fit cover + object-position bajo para
   encuadrar al corredor que vive en la esquina inferior derecha. */
.hero-band {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.hero-band img {
  width: 100%;
  display: block;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  object-fit: cover;
  object-position: center 75%;
}

@media (max-width: 768px) {
  .hero-band { padding: 0 16px; }
  .hero-band img { aspect-ratio: 3 / 2; max-height: 60vh; }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(72px, 14vw, 160px);
  letter-spacing: .02em;
  line-height: .9;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp .8s .4s forwards;
}

.hero-title .y { color: var(--green); }

.hero-sub {
  font-family: var(--display);
  font-size: clamp(14px, 2.5vw, 22px);
  letter-spacing: .18em;
  color: var(--text2);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp .8s .5s forwards;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  font-weight: 300;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 52px;
  opacity: 0;
  animation: fadeUp .8s .6s forwards;
}

.hero-desc em {
  font-style: normal;
  color: var(--text);
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp .8s .8s forwards;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: .08em;
}

/* Hero chico (subpáginas) */
.section-hero {
  padding: 140px 24px 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.section-hero-title {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: .02em;
  line-height: .95;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 800px;
}

.section-hero-title .y, .section-hero-title span { color: var(--green); }

.section-hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text2);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- 6. SECTIONS LAYOUT ---------- */
.section {
  padding: 120px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

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

.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.section-two-col:last-child { margin-bottom: 0; }

.section-two-col.reverse .col-text { order: 2; }
.section-two-col.reverse .col-img { order: 1; }

.col-text { display: flex; flex-direction: column; }
.col-img img {
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}

.col-text .step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.col-text .col-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.col-text .col-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
}

/* ---------- 7. CTA FINAL ---------- */
.section-cta-final {
  padding: 140px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #080d08 100%);
  position: relative;
  overflow: hidden;
}

.section-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(57,224,122,.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 80px);
  letter-spacing: .02em;
  line-height: .95;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-title .y, .cta-title span { color: var(--green); }

.cta-desc {
  font-size: 16px;
  color: var(--text2);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ---------- 8. BUTTONS ---------- */
.btn-primary {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--green);
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s, transform .2s;
  letter-spacing: -.01em;
}

.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:active { transform: scale(.97); }

.btn-secondary {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: 50px;
  padding: 16.5px 38px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s, color .2s;
  letter-spacing: -.01em;
}

.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* ---------- 9. CARDS ---------- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color .25s, transform .25s;
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.card-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 10. CHAT BUBBLES (que-preguntar) ---------- */
.chat-examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.chat-bubble {
  max-width: 84%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}

.chat-bubble.usr {
  align-self: flex-end;
  background: var(--green);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.q-category {
  margin-bottom: 64px;
}

.q-category-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1;
}

.q-category-sub {
  font-size: 15px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ---------- 11. FAQ ACCORDION ---------- */
.faq-category { margin-bottom: 56px; }

.faq-category-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -.01em;
  transition: color .2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--display);
  font-size: 24px;
  color: var(--green);
  flex-shrink: 0;
  transition: transform .25s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--green); }

.faq-answer {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
}

/* ---------- 12. INTEGRATION CARDS ---------- */
.integration-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .25s;
}

.integration-card:hover { border-color: var(--border2); }
.integration-card.active { border-color: rgba(57,224,122,.25); }
.integration-card.featured { padding: 40px; }

.integration-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.integration-logo {
  width: 48px;
  height: 48px;
  background: var(--bg3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.integration-logo svg { width: 28px; height: 28px; }

.integration-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.01em;
  flex: 1;
}

.status-pill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-pill.active {
  background: rgba(57,224,122,.1);
  color: var(--green);
  border: 1px solid rgba(57,224,122,.25);
}

.status-pill.coming-soon {
  background: rgba(240,165,0,.1);
  color: var(--amber);
  border: 1px solid rgba(240,165,0,.2);
}

.integration-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
}

.integration-steps {
  background: var(--bg3);
  border-radius: 12px;
  padding: 20px 24px;
}

.integration-steps-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text2);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.integration-steps ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.integration-steps li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
}

.integration-footer {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: .08em;
  margin-top: 8px;
}

/* ---------- 13. iPhone MOCKUP FRAME ---------- */
.phone-mockup {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 18px 12px;
  background: #1a1a1a;
  border-radius: 48px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  border: 2px solid #2a2a2a;
}

.phone-mockup img {
  width: 100%;
  display: block;
  border-radius: 32px;
}

/* ---------- 14. LIFESTYLE FULL-WIDTH ---------- */
.lifestyle-shot {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 1300px;
  padding: 0 24px;
}

.lifestyle-shot img {
  width: 100%;
  border-radius: 24px;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  object-fit: cover;
  object-position: center 65%;
}

/* Variante portrait: para imágenes verticales (retratos, etc). Reduce el
   max-width del contenedor para que el retrato no quede gigante y ajusta
   aspect-ratio + object-position para encuadrar la cara. */
.lifestyle-shot--portrait {
  max-width: 900px;
}

.lifestyle-shot--portrait img {
  aspect-ratio: 4 / 5;
  max-height: 720px;
  object-position: center 30%;
}

@media (max-width: 768px) {
  .lifestyle-shot--portrait img {
    aspect-ratio: 4 / 5;
    max-height: 75vh;
    object-position: center 30%;
  }
}

/* Gradient overlay sutil en el bottom para mejorar contraste del caption */
.lifestyle-shot::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  border-radius: 0 0 24px 24px;
  pointer-events: none;
}

.lifestyle-shot-cap {
  position: absolute;
  bottom: 32px;
  left: 56px;
  right: 56px;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -.01em;
  max-width: 600px;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
  z-index: 1;
}

/* ---------- 15. PROBLEM SECTION (home) ---------- */
.problem-text {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 32px;
}

.problem-text em {
  font-style: italic;
  color: var(--green);
}

.problem-body {
  font-size: 16px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.85;
  max-width: 720px;
}

.problem-body p { margin-bottom: 20px; }
.problem-body p strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- 16. FOUNDER SECTION ---------- */
.founder-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.founder-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.founder-text {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.85;
  font-weight: 300;
}

.founder-text p { margin-bottom: 18px; }
.founder-text p.lead {
  color: var(--text);
  font-size: 22px;
  font-family: var(--serif);
  margin-bottom: 24px;
  line-height: 1.3;
  font-weight: 400;
}
.founder-text p.signature {
  font-family: var(--display);
  font-size: 28px;
  color: var(--text);
  margin-top: 24px;
  letter-spacing: .02em;
}

/* ---------- 17. DIVIDERS ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* Divider gráfico: imagen de línea decorativa. Reservado para puntos
   estratégicos de la home (después del problema, antes del demo real).
   La imagen tiene mucho whitespace negro arriba y abajo de la línea, así
   que damos altura fija y usamos object-fit:cover para mostrar solo la
   franja central donde está la línea. */
.divider-graphic {
  width: 100%;
  max-width: 1100px;
  height: 100px;
  margin: 24px auto;
  padding: 0 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.divider-graphic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: .75;
}

@media (max-width: 768px) {
  .divider-graphic { height: 60px; padding: 0 16px; margin: 16px auto; }
}

/* ---------- 18. DEMO REAL DEL CHAT (home) ---------- */
.demo-real {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.demo-real-tag {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--text);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.demo-real-sub {
  font-size: 15px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
}

/* ---------- 19. INSTALL STEPS (preservar del index actual) ---------- */
.install {
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #080d08 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.install-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(57,224,122,.05) 0%, transparent 70%);
  pointer-events: none;
}

.install-title {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 100px);
  letter-spacing: .02em;
  line-height: .95;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
}

.install-title span { color: var(--green); }

.install-desc {
  font-size: 16px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 64px;
  position: relative;
}

.install-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 64px;
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.install-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  position: relative;
}

.install-step::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -8px;
  width: 16px;
  height: 1px;
  background: var(--text3);
}

.install-step:last-child::after { display: none; }

.install-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  flex-shrink: 0;
}

.install-step-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.01em;
}

.install-step-desc {
  font-size: 12px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.5;
}

/* ---------- 20. STEP CARDS (home cómo funciona preview) ---------- */
/* Layout nuevo: cada paso es una fila con texto a un lado y visual al otro.
   Stack vertical de 3 filas en desktop, columna única en mobile. */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  margin-bottom: 48px;
}

.step {
  background: transparent;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* En mobile cada paso colapsa a una columna: texto arriba, visual abajo. */
@media (max-width: 768px) {
  .steps { gap: 56px; }
  .step { grid-template-columns: 1fr; gap: 28px; }
}

.step-text { min-width: 0; }
.step-visual { min-width: 0; }

.step-visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.step-num {
  font-family: var(--display);
  font-size: 80px;
  letter-spacing: .02em;
  color: var(--text3);
  line-height: 1;
  margin-bottom: 24px;
  opacity: .4;
}

.step-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.step-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
}

/* ---------- 20-bis. PROFILE CARD (tarjeta tipográfica del paso 1) ---------- */
.profile-card {
  background: #0A0A0A;
  border-radius: 12px;
  border: 0.5px solid #1f1f1f;
  padding: 1.75rem;
  color: var(--text);
}

.profile-card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 1.25rem;
}

.profile-card-num {
  font-family: var(--display);
  font-size: 80px;
  line-height: 1;
  color: #00FF66;
  letter-spacing: .02em;
}

.profile-card-data { text-align: right; }

.profile-card-label,
.profile-card-source {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1.2;
}

.profile-card-label { color: #444; }
.profile-card-source { color: #00FF66; }

.profile-card-vdot {
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  color: #fff;
  letter-spacing: .02em;
  margin: 6px 0;
}

.profile-card-divider {
  border-top: 0.5px solid #1e1e1e;
  margin: 1.25rem 0 1.5rem;
}

.profile-card-zones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-zone {
  display: grid;
  grid-template-columns: 36px 96px 1fr 72px;
  gap: 14px;
  align-items: center;
}

.profile-zone-label {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--zone-color);
}

.profile-zone-name {
  font-size: 11px;
  color: #888;
  letter-spacing: .02em;
}

.profile-zone-bar {
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
  overflow: hidden;
}

.profile-zone-bar-fill {
  width: var(--zone-width, 0%);
  height: 100%;
  background: var(--zone-color);
  border-radius: 1px;
}

.profile-zone-pace {
  font-size: 12px;
  color: #aaa;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.profile-card-footer {
  margin-top: 1.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #333;
  text-align: center;
}

/* En mobile, las filas de zonas aprietan un poco las dos columnas centrales. */
@media (max-width: 540px) {
  .profile-card { padding: 1.25rem; }
  .profile-card-num { font-size: 64px; }
  .profile-card-vdot { font-size: 30px; }
  .profile-zone {
    grid-template-columns: 30px 80px 1fr 64px;
    gap: 10px;
  }
  .profile-zone-label { font-size: 18px; }
}

/* ---------- 21. SUPPORT CARDS ---------- */
.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.support-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 22px;
}

.support-card-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.01em;
}

.support-card-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}

.support-card-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--green);
  text-transform: uppercase;
  margin-top: 8px;
}

.support-card-link:hover { text-decoration: underline; }

.support-ticket-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--text2);
  padding: 6px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-block;
  margin-top: 8px;
}

.support-ticket-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--text3);
  text-transform: uppercase;
  margin-right: 6px;
}

.support-warning {
  background: rgba(224,82,82,.06);
  border: 1px solid rgba(224,82,82,.2);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 32px;
}

.support-warning-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.support-warning-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
}

/* ---------- 22. FOOTER COMPARTIDO ---------- */
.site-footer {
  padding: 80px 24px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto 48px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 14px;
  color: var(--text2);
  transition: color .2s;
}

.footer-link:hover { color: var(--text); }

.footer-brand-logo {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand-logo .y { color: var(--green); }

.footer-tagline {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer-email {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: .04em;
}

.footer-disclaimer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
}

.footer-copy {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: .06em;
}

/* ---------- 23. ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 1; transform: none; }

/* ---------- 24. RESPONSIVE @ 768px ---------- */
@media (max-width: 768px) {
  .site-nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .site-nav .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .nav-drawer-link { font-size: 26px; padding: 12px 0; }

  .hero { padding: 100px 20px 60px; }

  .section { padding: 80px 20px; }
  .section-narrow { padding: 80px 20px; }
  .section-hero { padding: 100px 20px 60px; }

  .section-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .section-two-col.reverse .col-text { order: 1; }
  .section-two-col.reverse .col-img { order: 2; }

  /* .steps y .step ya colapsan a una columna en el breakpoint 768px del
     bloque 20. STEP CARDS. Aquí solo reducimos el tamaño del número. */
  .step-num { font-size: 60px; }

  .card-grid.cols-2,
  .card-grid.cols-3 { grid-template-columns: 1fr; }

  .support-cards { grid-template-columns: 1fr; }

  .install-steps { flex-direction: column; align-items: center; gap: 32px; }
  .install-step::after { display: none; }

  .footer-cols { grid-template-columns: 1fr; gap: 40px; }

  .founder-block { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; }
  .founder-photo { max-width: 260px; }
  .founder-text { text-align: left; max-width: 540px; }

  .lifestyle-shot { padding: 0 16px; }
  .lifestyle-shot::after { left: 16px; right: 16px; height: 55%; }
  .lifestyle-shot img {
    aspect-ratio: 4 / 5;
    max-height: 65vh;
    object-position: center 60%;
  }
  .lifestyle-shot-cap {
    bottom: 24px;
    left: 24px;
    right: 24px;
    font-size: clamp(16px, 4.5vw, 20px);
    max-width: none;
  }

  .section-cta-final { padding: 100px 20px; }

  .hero-cta-row { flex-direction: column; gap: 12px; width: 100%; }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary { width: 100%; justify-content: center; }
  .btn-primary, .btn-secondary { padding: 16px 32px; font-size: 14px; }

  .problem-text { font-size: clamp(24px, 6vw, 36px); }

  .phone-mockup { max-width: 300px; }
}

/* ============================================ */
/* PRICING SECTION — Sprint 2 monetización      */
/* Dos cards con CTA hacia /app.html?plan=...   */
/* ============================================ */
.pricing-section {
  text-align: center;
}
.pricing-intro {
  font-family: var(--body);
  font-size: 16px;
  color: var(--text2);
  margin: 0 auto 40px auto;
  max-width: 540px;
  line-height: 1.5;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 24px auto;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card--annual {
  border-color: rgba(57, 224, 122, .38);
  background: linear-gradient(180deg, rgba(57, 224, 122, .06) 0%, var(--bg2) 100%);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 5px 14px;
  border-radius: 14px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-plan {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 12px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.pricing-amount {
  font-family: var(--display);
  font-size: 56px;
  color: var(--text);
  line-height: 1;
  font-weight: 400;
  letter-spacing: .02em;
}
.pricing-unit {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
}
.pricing-cap {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex-grow: 1;
}
.pricing-features li {
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  padding: 7px 0 7px 24px;
  position: relative;
  line-height: 1.5;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}
.pricing-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 30px;
  padding: 14px 24px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.pricing-cta:hover {
  background: var(--green-soft);
}
.pricing-cta--primary {
  background: var(--green);
  color: var(--bg);
}
.pricing-cta--primary:hover {
  background: var(--green);
  opacity: .92;
}
.pricing-footnote {
  font-family: var(--body);
  font-size: 13px;
  color: var(--text3);
  margin: 18px auto 0 auto;
  max-width: 540px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-amount { font-size: 48px; }
  .pricing-card { padding: 28px 22px; }
}

/* ============================================ */
/* CUENTA PAGE — lista de capacidades del portal */
/* ============================================ */
.cuenta-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0 auto;
  max-width: 620px;
}
.cuenta-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  line-height: 1.55;
}
.cuenta-list li:last-child { border-bottom: none; }
.cuenta-list-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gn2);
  border: 1px solid rgba(57, 224, 122, .25);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--mono);
}
.cuenta-list-text { flex: 1; }
.cuenta-list-text strong {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 640px) {
  .cuenta-list li { font-size: 15px; gap: 12px; padding: 14px 0; }
  .cuenta-list-icon { width: 32px; height: 32px; font-size: 14px; }
}

/* ============================================ */
/* BIBLIOTECA — Sprint 3                        */
/* Página de recursos descargables. Auth-only.  */
/* Saludo + filtros + grid + cards.             */
/* ============================================ */
.biblio-loading-section {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.biblio-loading-text {
  font-family: var(--body);
  font-size: 15px;
  color: var(--text2);
  margin: 0;
}
.biblio-section {
  /* .section default es padding:120px 24px (suficiente para clear el nav
     fixed). NO bajar el padding-top: el nav fixed estaria encima del
     saludo. Sumamos env(safe-area-inset-top) defensivo para iOS PWA. */
  padding-top: calc(120px + env(safe-area-inset-top, 0px));
  padding-bottom: 80px;
}
@media (max-width: 540px) {
  .biblio-section { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
}
.biblio-greeting {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text);
  margin: 0 auto 36px auto;
  max-width: 880px;
  line-height: 1.1;
  letter-spacing: .01em;
  font-weight: 400;
}
.biblio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 32px auto;
  max-width: 1100px;
}
.biblio-filter {
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 24px;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.biblio-filter:hover {
  background: var(--bg3);
  color: var(--text);
}
.biblio-filter.is-active {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
  font-weight: 700;
}
.biblio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.biblio-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
  font-family: var(--body);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}
.biblio-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.biblio-card:hover {
  border-color: rgba(57, 224, 122, .35);
}
.biblio-card--disabled {
  opacity: .6;
}
.biblio-card--disabled:hover {
  border-color: var(--border2);
}
.biblio-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg3);
  overflow: hidden;
}
.biblio-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.biblio-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.biblio-cover-icon {
  font-size: 56px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}
.biblio-card-body {
  padding: 20px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.biblio-category {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 10px;
}
.biblio-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  margin: 0 0 10px 0;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.01em;
}
.biblio-description {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  margin: 0 0 18px 0;
  flex-grow: 1;
}
.biblio-download {
  width: 100%;
  background: var(--green);
  color: var(--bg);
  border: 1px solid var(--green);
  border-radius: 24px;
  padding: 11px 18px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  margin-top: auto;
}
.biblio-download:hover { opacity: .92; }
.biblio-download:disabled { cursor: default; }
.biblio-download--disabled {
  background: transparent;
  color: var(--text3);
  border-color: var(--border2);
  font-weight: 500;
}
.biblio-download--disabled:hover { opacity: 1; }
/* Botón para abrir links: outline verde, distinto del download sólido. */
.biblio-open-link {
  width: 100%;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 24px;
  padding: 11px 18px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  margin-top: auto;
}
.biblio-open-link:hover { background: var(--gn2); }
.biblio-open-link:disabled { cursor: default; }
.biblio-open-link--disabled {
  background: transparent;
  color: var(--text3);
  border-color: var(--border2);
  font-weight: 500;
}
.biblio-open-link--disabled:hover { background: transparent; }
@media (max-width: 540px) {
  .biblio-greeting { font-size: 26px; }
  .biblio-grid { grid-template-columns: 1fr; gap: 16px; }
  .biblio-card-body { padding: 16px 18px 18px 18px; }
  .biblio-title { font-size: 18px; }
  .biblio-filter { font-size: 11px; padding: 8px 14px; }
}
