/* ---------------------------------------------------------------------
   Nodyra — landing page
   Paleta/tipografia/componentes calcados de static/style.css de la app
   (desktop_app), para que la web y la app se sientan la misma marca.
   ------------------------------------------------------------------- */
:root {
  --bg: #0a0e14;
  --bg-inset: #060810;
  --surface: rgba(22, 28, 38, .78);
  --surface-soft: rgba(30, 38, 50, .82);
  --rule: rgba(45, 212, 191, .32);
  --ink: #e9eef2;
  --ink-soft: #9fb0b5;
  --ink-faint: #6c7f82;
  --accent: #22d3ee;
  --accent-hover: #38e0f5;
  --accent-soft: rgba(34, 211, 238, .16);
  --accent-ink: #eafdff;
  --ok: #35a06b;
  --warn: #e8b84b;
  --neon-turquoise: #2dd4bf;
  --neon-blue: #38bdf8;
  --neon-green: #4ade80;
  --neon-pink: #d946ef;
  --neon-violet: #8b5cf6;
  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.28);
  --shadow-2: 0 2px 4px rgba(0,0,0,.4), 0 14px 32px rgba(0,0,0,.32);
  --radius: 10px;
  --radius-sm: 7px;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", serif;
  --font-body: -apple-system, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 760px at 12% -8%, rgba(56, 189, 248, .20), transparent 60%),
    radial-gradient(1000px 720px at 88% -4%, rgba(45, 212, 191, .18), transparent 58%),
    radial-gradient(900px 800px at 50% 105%, rgba(74, 222, 128, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------------
   Cabecera (calcada de header/.brand de la app)
   ------------------------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; position: relative; }
.brand::before {
  content: "";
  position: absolute;
  left: -18px; top: 50%;
  transform: translateY(-50%);
  width: 160px; height: 90px;
  background: radial-gradient(ellipse at center, rgba(217,70,239,.55) 0%, rgba(139,92,246,.35) 45%, transparent 75%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}
.brand-logo { position: relative; z-index: 1; height: 40px; width: auto; flex-shrink: 0; }

nav.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  font-size: 13px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  letter-spacing: .01em;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex; align-items: center;
  border: 1px solid var(--rule); border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: transparent; border: none; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-soft); padding: 6px 12px;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------------------------------------------------------------------
   Botones (idénticos a los de la app: píldora, relieve, glow al pulsar)
   ------------------------------------------------------------------- */
.btn {
  background: var(--accent);
  color: var(--accent-ink);
  text-shadow: 0 1px 1px rgba(0,0,0,.55), 0 0 6px rgba(0,0,0,.25);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 1px 2px rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.25);
  transition: background .15s ease, box-shadow .12s ease, transform .08s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.45); }
.btn-ghost {
  background: var(--surface-soft); color: var(--ink); border: 1px solid var(--rule);
  text-shadow: none; box-shadow: none;
}
.btn-ghost:hover { background: var(--rule); }
.btn-lg { padding: 13px 26px; font-size: 15px; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 4px 14px -2px rgba(139,124,246,.45); }

/* ---------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */
.hero { padding: 88px 0 64px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px 1px rgba(60,179,113,.7); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero h1 .accent-text {
  background: linear-gradient(90deg, var(--accent), var(--neon-violet), var(--neon-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  max-width: 620px; margin: 0 auto 34px;
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 12.5px; color: var(--ink-faint); }

.gpu-requirement-banner {
  display: flex; align-items: center; gap: 12px;
  max-width: 640px; margin: 22px auto 0;
  background: rgba(232, 184, 75, .12); border: 1px solid var(--warn);
  border-radius: var(--radius); padding: 16px 22px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  text-align: left;
}
.gpu-requirement-banner svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--warn); }
.gpu-requirement-banner strong { color: var(--warn); }

/* Mockup de la app dentro del hero: mismo panel con borde/rule que usa la
   app de verdad, no una captura de pantalla — evita mantener una imagen
   desactualizada cada vez que cambie la UI real. */
.hero-mockup {
  margin: 56px auto 0; max-width: 880px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  text-align: left;
}
.hero-mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.hero-mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-mockup-dot:nth-child(1) { background: #e2685f; }
.hero-mockup-dot:nth-child(2) { background: #e8b84b; }
.hero-mockup-dot:nth-child(3) { background: #3cb371; }
.hero-mockup-title { margin-left: 8px; font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.hero-mockup-body { display: flex; gap: 0; min-height: 300px; }
.hero-mockup-sidebar {
  width: 60px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 0; border-right: 1px solid var(--rule);
}
.hero-mockup-cat {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-soft); color: var(--ink-soft);
}
.hero-mockup-cat svg { width: 20px; height: 20px; }
.hero-mockup-cat.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.hero-mockup-panel { flex: 1; padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.hero-mockup-panel .fake-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); font-weight: 700; }
.hero-mockup-panel .fake-input {
  background: var(--bg-inset); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; color: var(--ink-soft); font-style: italic;
}
.hero-mockup-panel .fake-progress { height: 8px; background: var(--bg-inset); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; margin-top: 4px; }
.hero-mockup-panel .fake-progress span { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--accent), #b3a3ff); }
.hero-mockup-result {
  flex: 1; margin-top: 6px; border-radius: var(--radius-sm); border: 1px solid var(--rule);
  background: var(--bg-inset);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-family: var(--font-display); font-style: italic; font-size: 14px;
  min-height: 120px;
}

/* ---------------------------------------------------------------------
   Secciones genéricas
   ------------------------------------------------------------------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* Tarjetas de "por qué Nodyra" */
.pitch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pitch-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-1);
}
.pitch-card .pitch-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.pitch-icon svg { width: 20px; height: 20px; }
.pitch-card h3 { font-size: 15.5px; margin: 0 0 8px; }
.pitch-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* Herramientas, por categoria (mismos iconos SVG que la barra lateral real) */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tool-cat-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-1);
}
.tool-cat-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tool-cat-card-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
}
.tool-cat-card-icon svg { width: 18px; height: 18px; }
.tool-cat-card-head h3 { font-size: 14.5px; margin: 0; }
.tool-cat-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tool-cat-card li {
  font-size: 12.8px; color: var(--ink-soft); line-height: 1.4;
  padding-left: 14px; position: relative;
}
.tool-cat-card li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--neon-turquoise);
}
.tool-cat-card li.experimental { color: var(--ink-faint); }
.tool-cat-card li.experimental::before { background: var(--warn); }
.tag-experimental {
  display: inline-block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #fff3d6; background: linear-gradient(135deg, #7a4a12, #9c5f0f); border: 1px solid #d98c2b;
  border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: middle;
}
.tag-highlight {
  display: inline-block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #d8fbe9; background: linear-gradient(135deg, #1b6b45, #237d52); border: 1px solid var(--ok);
  border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: middle;
}
.editor-highlight-note {
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  background: rgba(53, 160, 107, .08); border: 1px solid rgba(53, 160, 107, .35);
  font-size: 13.5px; color: var(--ink-soft);
}

/* Franja "todo local" */
.local-strip {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 30px 32px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.local-strip .status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px 1px rgba(60,179,113,.7); flex-shrink: 0; }
.local-strip-copy h3 { margin: 0 0 6px; font-size: 16px; }
.local-strip-copy p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; max-width: 520px; }
.local-strip-metrics { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.local-metric { text-align: center; }
.local-metric strong { display: block; font-size: 22px; font-family: var(--font-display); color: var(--accent-ink); }
.local-metric span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .03em; }

/* Descargas: ComfyUI (izquierda) + Nodyra (derecha), lado a lado */
.download-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: stretch;
  max-width: 460px; margin: 0 auto;
}
.download-grid > * { height: 100%; box-sizing: border-box; }

.comfyui-req-card, .pricing-card { display: flex; flex-direction: column; }
.comfyui-req-card h3, .pricing-card h3 { font-family: var(--font-display); font-size: 20px; margin: 4px 0 14px; }

/* Requisito de ComfyUI */
.comfyui-req-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 30px 32px; text-align: center;
}
.comfyui-req-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 16px; }
.comfyui-req-card p strong { color: var(--ink); }
.comfyui-req-card .btn { margin-bottom: 18px; align-self: center; }
.comfyui-req-note { font-size: 12px; color: var(--ink-faint); margin-bottom: 0 !important; margin-top: auto; }

/* Precio */
.pricing-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 34px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.pricing-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px 220px at 50% -10%, rgba(139,92,246,.22), transparent 70%);
  pointer-events: none;
}
.pricing-card > * { position: relative; z-index: 1; }
.price-tag { font-family: var(--font-display); font-size: 46px; font-weight: 700; margin: 6px 0 2px; }
.price-tag sup { font-size: 18px; top: -1.4em; }
.price-sub { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 22px; }
.price-features { list-style: none; margin: 0 0 26px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 9px; align-items: flex-start; }
.price-features li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--ok); }
.price-status { margin-top: 16px; font-size: 12px; color: var(--ink-faint); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 32px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-faint); }
.footer-logo { height: 22px; width: auto; opacity: .85; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: var(--ink-faint); text-decoration: none; }
.footer-links a:hover { color: var(--ink-soft); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero-mockup-body { flex-direction: column; }
  .hero-mockup-sidebar { flex-direction: row; width: 100%; border-right: none; border-bottom: 1px solid var(--rule); }
  .local-strip-metrics { margin-left: 0; }
}

.shots-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.shot-card {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
}
.shot-card img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot-card figcaption {
  padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
@media (max-width: 860px) {
  .shots-grid { grid-template-columns: 1fr; }
}

/* Lightbox de capturas (26/07) */
.shots-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 40px;
  background: rgba(6, 8, 16, .92); backdrop-filter: blur(4px);
}
.shots-lightbox.hidden { display: none; }
.shots-lightbox img {
  max-width: min(1100px, 90vw); max-height: 78vh; width: auto; height: auto;
  border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow-2);
}
.lightbox-caption { color: var(--ink); font-size: 15px; font-weight: 600; margin: 0; }
.lightbox-close, .lightbox-arrow {
  position: absolute; background: var(--surface); border: 1px solid var(--rule); color: var(--ink);
  border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-arrow:hover { background: var(--surface-soft); }
.lightbox-close { top: 24px; right: 24px; width: 42px; height: 42px; font-size: 26px; line-height: 1; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 18px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 700px) {
  .lightbox-arrow { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* ---------------------------------------------------------------------
   Paginas legales (EULA / Privacidad / Modelos) — prosa simple sobre el
   mismo fondo y paleta de la landing, sin reinventar estilo aparte.
   ------------------------------------------------------------------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page h1 { font-size: 30px; margin-bottom: 4px; }
.legal-page .legal-updated { color: var(--ink-faint); font-size: 13px; margin-bottom: 32px; }
.legal-page h2 { font-size: 19px; color: var(--accent-ink); margin-top: 34px; margin-bottom: 10px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin: 10px 0; }
.legal-page strong { color: var(--ink); }
.legal-page a { color: var(--accent); }
.legal-page hr { border: none; border-top: 1px solid var(--rule); margin: 34px 0; }
.legal-page em { color: var(--ink-faint); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
.legal-page th, .legal-page td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.legal-page th { background: var(--surface-soft); color: var(--ink); }
.legal-back { display: inline-block; margin-bottom: 24px; font-size: 13px; color: var(--accent); text-decoration: none; }
