/* =============================================
   OPERADORES AI — Landing CSS
   Dark mode, operador hispano, sin gurú-pose
============================================= */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
code, pre { font-family: 'JetBrains Mono', 'Courier New', monospace; }

/* === Variables === */
:root {
  /* Colors */
  --bg: #0A0B0F;
  --bg-elev: #13151B;
  --bg-elev-2: #181B23;
  --text-primary: #F5F5F7;
  --text-secondary: #A0A4AE;
  --text-muted: #5E6573;
  --accent-violet: #8B5CF6;
  --accent-violet-soft: rgba(139, 92, 246, 0.15);
  --accent-cyan: #22D3EE;
  --accent-cyan-soft: rgba(34, 211, 238, 0.15);
  --border: #1F2230;
  --border-strong: #2A2E3E;
  --success: #10B981;
  --warning: #F59E0B;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 120px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Containers */
  --container-w: 1200px;
  --container-narrow-w: 880px;
  --pad-x: 80px;

  /* Transitions */
  --t-fast: .15s ease;
  --t-base: .25s cubic-bezier(.2,.8,.2,1);
  --t-slow: .5s cubic-bezier(.2,.8,.2,1);

  /* Shadows */
  --shadow-glow-violet: 0 0 80px rgba(139, 92, 246, 0.25);
  --shadow-glow-cyan: 0 0 60px rgba(34, 211, 238, 0.18);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

/* === Typography base === */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero-h1, .section-h2 { letter-spacing: -0.02em; }

/* === Layout helpers === */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}
.container.narrow { max-width: var(--container-narrow-w); }
.center { text-align: center; }
.center-block { display: block; margin: 0 auto; text-align: center; }

.text-cyan { color: var(--accent-cyan); }
.text-violet { color: var(--accent-violet); }

/* === Sections === */
.section {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
  position: relative;
}

/* === Eyebrow === */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: var(--space-lg);
}
.center-block.eyebrow { display: block; }

/* === Badges === */
.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--accent-violet-soft);
  border: 1px solid var(--accent-violet);
  border-radius: var(--r-full);
  margin-bottom: var(--space-xl);
}

/* === Buttons === */
.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--accent-violet) 0%, #7C3AED 100%);
  border-radius: var(--r-md);
  transition: transform var(--t-base), box-shadow var(--t-base), filter var(--t-base);
  border: none;
  text-align: center;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}
.btn-primary.btn-full { display: block; width: 100%; }
.btn-primary.btn-large { padding: 20px 40px; font-size: 19px; }

.btn-text {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 500;
  font-size: 16px;
  margin-left: var(--space-lg);
  padding: 16px 0;
}
.btn-text:hover { filter: brightness(1.2); }

/* =============================================
   BLOQUE 1 — HERO
============================================= */
.hero {
  position: relative;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-4xl);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .bg-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  margin-bottom: var(--space-xl);
}
.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  line-height: 1.6;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-2xl);
  font-size: 15px;
  color: var(--text-secondary);
}
.stat-num {
  color: var(--accent-cyan);
  font-weight: 600;
  margin-right: 4px;
}
.stat-label { color: var(--text-secondary); }
.dot { color: var(--text-muted); }

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.creator-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  max-width: 360px;
}
.avatar-circle-40 {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--border-strong);
}
.creator-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.creator-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-right { display: flex; justify-content: center; }
.hero-video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 340px;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow-violet);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: linear-gradient(0deg, rgba(10, 11, 15, 0.6) 0%, rgba(10, 11, 15, 0.1) 100%);
  cursor: pointer;
  transition: background var(--t-base);
}
.play-overlay:hover { background: rgba(10, 11, 15, 0.5); }
.play-circle {
  width: 72px;
  height: 72px;
  border-radius: var(--r-full);
  background: rgba(139, 92, 246, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  padding-left: 6px;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.15);
}
.play-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(10,11,15,0.7);
  padding: 6px 14px;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}

/* =============================================
   BLOQUE 2 — DOLOR
============================================= */
.section-h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  line-height: 1.1;
}
.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
}
.dolor-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
}
.dolor-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base), transform var(--t-base);
}
.dolor-card:hover {
  border-color: var(--accent-violet);
  transform: translateX(4px);
}
.dolor-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dolor-icon svg { width: 22px; height: 22px; }
.dolor-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.dolor-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.dolor-cierre {
  margin-top: var(--space-3xl);
  font-size: 18px;
  color: var(--text-secondary);
  font-style: italic;
}

/* =============================================
   BLOQUE 3 — CÓMO FUNCIONA
============================================= */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-3xl) auto;
  padding: var(--space-xl);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-width: 1000px;
  overflow-x: auto;
}
.pipeline-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: nowrap;
}
.pipe-node {
  flex-shrink: 0;
  padding: 10px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.pipe-node.pipe-output {
  background: var(--accent-violet-soft);
  border-color: var(--accent-violet);
  color: var(--text-primary);
}
.arrow {
  color: var(--accent-violet);
  font-size: 18px;
  flex-shrink: 0;
}

.cli-block {
  max-width: 720px;
  margin: var(--space-3xl) auto var(--space-md);
  background: #0E1018;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cli-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border-strong);
}
.cli-dot {
  width: 11px; height: 11px;
  border-radius: var(--r-full);
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.cli-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.cli-content {
  padding: var(--space-lg) var(--space-xl);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  white-space: pre-wrap;
  overflow-x: auto;
}
.cli-prompt { color: var(--accent-cyan); font-weight: 600; }
.cli-string { color: var(--success); }
.cli-caption {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-4xl);
}
.cli-caption code {
  background: var(--bg-elev);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--accent-cyan);
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.preset-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.preset-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-violet);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.18);
}
.preset-img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.preset-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--t-slow);
}
.preset-card:hover .preset-img-wrap img { transform: scale(1.05); object-position: center top; }
.preset-body {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
}
.preset-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.preset-title {
  font-size: 24px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.preset-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   BLOQUE 4 — DEMOS
============================================= */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.demo-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base);
}
.demo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}
.demo-img-wrap {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.demo-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.demo-body {
  padding: var(--space-lg);
}
.demo-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.demo-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.demos-note {
  margin-top: var(--space-3xl);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* =============================================
   BLOQUE 5 — PRUEBA SOCIAL
============================================= */
.canales-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.canal-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-2xl);
  transition: border-color var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.canal-card:hover {
  border-color: var(--accent-violet);
  transform: translateY(-2px);
}
.canal-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-violet-soft) 0%, var(--accent-cyan-soft) 100%);
  border: 1px solid var(--border-strong);
  margin-bottom: var(--space-sm);
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}
.canal-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,11,15,0.6) 100%);
}
.thumb-frutinovela {
  background-image: url('images/preset-frutinovelas.jpg');
  background-position: center top;
}
.thumb-skeleton {
  background-image: url('images/preset-calaveras.jpg');
  background-position: center top;
}
.thumb-series {
  background-image: url('images/preset-series.jpg');
  background-position: center top;
}
.thumb-terror {
  background-image: url('images/preset-terror.jpg');
  background-position: center top;
}

.canal-card .preset-badge {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  align-self: flex-start;
}

.canal-name {
  font-size: 22px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.canal-cat {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.canal-metric {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.canales-note {
  margin-top: var(--space-2xl);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* === Reviews block === */
.reviews-block {
  margin-top: var(--space-4xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--border);
}
.reviews-title {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.review-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--t-base), transform var(--t-base);
}
.review-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}
.review-stars {
  color: #FBBF24;
  font-size: 16px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}
.review-text strong {
  color: var(--accent-cyan);
  font-weight: 600;
}
.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}
.review-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.review-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.review-author-channel {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.quote-block {
  margin-top: var(--space-4xl);
  padding: var(--space-2xl) var(--space-3xl);
  background: var(--bg-elev);
  border-left: 3px solid var(--accent-violet);
  border-radius: var(--r-md);
  font-size: 19px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.quote-block cite {
  display: block;
  margin-top: var(--space-md);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* =============================================
   BLOQUE 6 — PRICING
============================================= */
.pricing-section { position: relative; }
.pricing-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-violet-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.pricing-section > .container { position: relative; z-index: 1; }

.pricing-card {
  max-width: 640px;
  margin: var(--space-3xl) auto 0;
  padding: var(--space-3xl);
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid var(--accent-violet);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-glow-violet);
  position: relative;
}
.pricing-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}
.pricing-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}
.price-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.price-currency {
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 500;
}
.price-old {
  font-size: 28px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.price-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.cap-counter {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent-cyan-soft);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
}
.cap-num {
  color: var(--accent-cyan);
  font-weight: 700;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}
.pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-list li code {
  background: var(--bg-elev-2);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--accent-cyan);
}

.pricing-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-lg);
  text-align: center;
  line-height: 1.6;
}
.pricing-disclaimer code {
  background: var(--bg-elev-2);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 12px;
}

.pricing-secondary {
  margin-top: var(--space-2xl);
  font-size: 14px;
  color: var(--text-muted);
}

/* =============================================
   BLOQUE 7 — FAQ
============================================= */
.faq-list {
  margin-top: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item[open] {
  border-color: var(--accent-violet);
}
.faq-item summary {
  padding: var(--space-lg) var(--space-xl);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent-violet);
  font-weight: 400;
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}
.faq-answer {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-answer code {
  background: var(--bg-elev-2);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--accent-cyan);
  word-break: break-word;
}
.faq-answer ul {
  margin: var(--space-md) 0 var(--space-md) var(--space-lg);
  list-style: disc;
  color: var(--text-secondary);
}
.faq-answer ul li { margin-bottom: 6px; }
.faq-answer strong { color: var(--text-primary); }

/* =============================================
   BLOQUE 8 — CTA FINAL / NOTA FIRMADA
============================================= */
.cta-final-section {
  position: relative;
}
.cta-final-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cta-final-section > .container { position: relative; z-index: 1; }

.creator-photo-big {
  width: 112px;
  height: 112px;
  border-radius: var(--r-full);
  object-fit: cover;
  margin: 0 auto var(--space-xl);
  border: 2px solid var(--border-strong);
  display: block;
  box-shadow: var(--shadow-glow-cyan);
}

.letter-body {
  margin-top: var(--space-2xl);
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.75;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.letter-body p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}
.letter-body p strong { color: var(--text-primary); font-weight: 600; }
.letter-body ul {
  list-style: disc;
  margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
}
.letter-body ul li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.letter-body code {
  background: var(--bg-elev);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--accent-cyan);
}

.signature {
  margin-top: var(--space-xl);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.footer-cta-meta {
  margin-top: var(--space-xl);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-cta-meta code {
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 12px;
}

/* =============================================
   FOOTER
============================================= */
.footer {
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
  margin-top: var(--space-4xl);
  text-align: center;
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.footer-links a:hover { color: var(--accent-cyan); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   ANIMATIONS — reveal on scroll
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   MOBILE RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  :root { --pad-x: 48px; }
  .hero-grid { gap: var(--space-3xl); }
  .presets-grid { gap: var(--space-md); }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --space-5xl: 80px;
    --space-4xl: 64px;
  }

  /* Hero stack */
  .hero {
    min-height: auto;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .hero-left { order: 2; }
  .hero-right { order: 1; }
  .hero-video-frame { max-width: 260px; }
  .hero-h1 { font-size: 36px; }
  .hero-sub { font-size: 17px; }

  /* Stats break to 2 lines */
  .stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  .stats-row .dot { display: none; }

  /* CTAs stack */
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-text { margin-left: 0; text-align: center; }
  .btn-primary { text-align: center; }

  /* Pipeline scroll horizontal */
  .pipeline {
    padding: var(--space-md);
  }
  .pipeline-row {
    justify-content: flex-start;
  }

  /* Grids stack */
  .presets-grid, .canales-grid {
    grid-template-columns: 1fr;
  }
  .demos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Section h2 */
  .section-h2 { font-size: 28px; }
  .section-sub { font-size: 16px; }

  /* Dolor cards */
  .dolor-card { padding: var(--space-md) var(--space-lg); }
  .dolor-title { font-size: 17px; }

  /* Pricing */
  .pricing-card { padding: var(--space-xl) var(--space-lg); }
  .price-main { font-size: 60px; }

  /* FAQ */
  .faq-item summary { padding: var(--space-md) var(--space-lg); font-size: 16px; }
  .faq-answer { padding: 0 var(--space-lg) var(--space-lg); }

  /* Letter body */
  .letter-body { font-size: 16px; }

  /* CLI block scroll */
  .cli-content { font-size: 13px; padding: var(--space-md); }
}

@media (max-width: 480px) {
  .demos-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 32px; }
  .price-main { font-size: 52px; }
  .creator-photo-big { width: 88px; height: 88px; }
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
