/* ==========================================================================
   TranscribeNode v3.1 — CSS premium self-contained
   Misma paleta del paraguas. Cards alineadas, FAQ funcional, micro-interacciones.
   ========================================================================== */

:root {
  --bg: #0a0c0f;
  --bg-2: #0f1319;
  --panel: #141920;
  --panel-2: #1c222b;
  --border: #262d38;
  --border-soft: rgba(38, 45, 56, 0.5);
  --text: #e6edf3;
  --text-dim: #8d96a0;
  --accent: #39d353;
  --accent-2: #2ebd47;
  --accent-dim: #1e6b32;
  --accent-glow: rgba(57, 211, 83, 0.18);
  --warn: #f9c74f;
  --danger: #ff5c5c;
  --max-w: 1140px;
  --ff-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 0 0 1px rgba(57, 211, 83, 0.35), 0 10px 40px rgba(57, 211, 83, 0.08);
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: #6ee084; }
code, pre { font-family: var(--ff-mono); }
::selection { background: var(--accent); color: var(--bg); }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section { padding: 80px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }
.bg-soft {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 15, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 18px 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.logo {
  font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.logo::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.logo span { color: var(--accent); }
.nav-links { display: none; gap: 32px; font-size: 14px; }
.nav-links a { color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 820px) { .nav-links { display: flex; } }
.nav-ctas { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .12s ease, filter .15s, border-color .15s, background .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 18px rgba(57, 211, 83, 0.24); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* Typography */
.kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  padding: 4px 10px; border: 1px solid var(--accent-dim); border-radius: 999px;
  background: rgba(57, 211, 83, 0.08);
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
h4 { font-size: 15px; }
.hero-sub {
  font-size: clamp(17px, 1.8vw, 21px); color: var(--text-dim); max-width: 42em;
  line-height: 1.55; font-weight: 400;
}
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-dim); max-width: 38em; line-height: 1.6; }
p { color: var(--text); }
.dim { color: var(--text-dim); }
.mono { font-family: var(--ff-mono); }
.accent { color: var(--accent); }

/* Gradient text */
.grad-text {
  background: linear-gradient(135deg, #39d353 0%, #66e07f 40%, #7affb3 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.panel-hover:hover {
  border-color: rgba(57, 211, 83, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 780px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Vertical cards (grid-4 con altura uniforme) */
.vertical-grid { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 640px) { .vertical-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .vertical-grid { grid-template-columns: repeat(4, 1fr); } }
.v-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
  min-height: 260px;
}
.v-card:hover { border-color: rgba(57, 211, 83, 0.4); transform: translateY(-2px); }
.v-card .ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(57, 211, 83, 0.12); color: var(--accent);
  font-size: 20px; margin-bottom: 16px;
  border: 1px solid var(--accent-dim);
}
.v-card h3 { margin-bottom: 8px; }
.v-card p { color: var(--text-dim); font-size: 14px; flex-grow: 1; line-height: 1.55; }
.v-card .tag {
  font-size: 12px; color: var(--accent); font-style: italic;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border);
}

/* Pricing — cards perfectamente alineadas */
.pricing-grid { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.price-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .3s;
  min-height: 340px;
}
.price-card:hover { border-color: rgba(57, 211, 83, 0.4); transform: translateY(-2px); }
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(57, 211, 83, 0.06) 0%, var(--panel) 100%);
  box-shadow: var(--shadow-accent);
}
.price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: var(--bg);
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(57, 211, 83, 0.35);
}
.price-card .name {
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px;
}
.price-card .amount {
  font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.price-card .amount sup {
  font-size: 0.5em; font-weight: 600; color: var(--text-dim);
  margin-right: 4px; vertical-align: super;
}
.price-card .credits {
  font-family: var(--ff-mono); font-size: 13px; color: var(--text);
  padding: 4px 0;
}
.price-card .note { color: var(--text-dim); font-size: 12px; }
.price-card ul.features {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  flex-grow: 1;
}
.price-card ul.features li {
  font-size: 14px; color: var(--text);
  display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.45;
}
.price-card ul.features li::before {
  content: ""; flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 3px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><circle cx='8' cy='8' r='8' fill='%2339d353' opacity='.18'/><path d='M5 8.5l2 2 4-4.5' stroke='%2339d353' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  background-size: contain;
}
.price-card .btn { margin-top: 20px; width: 100%; }

/* Pro Unlimited banner */
.pro-banner {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(57, 211, 83, 0.1) 0%, rgba(30, 107, 50, 0.05) 100%);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}

/* Comparison table */
.compare {
  background: linear-gradient(135deg, #0d2817 0%, #0f1319 100%);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.compare h3 {
  color: var(--accent); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 18px; font-weight: 700;
}
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; }
table.data thead th {
  font-size: 11px; font-weight: 500; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
table.data tbody tr { border-bottom: 1px dashed var(--border-soft); }
table.data tbody tr:last-child { border-bottom: none; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
table.data td.us { color: var(--accent); font-weight: 700; }
table.data td.them { color: var(--text-dim); }
table.data td.us::before {
  content: "✓"; margin-right: 6px; font-weight: 700;
}

/* Steps */
.step-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(57, 211, 83, 0.1); color: var(--accent);
  border: 1px solid var(--accent-dim);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-weight: 700; font-size: 22px;
  margin-bottom: 16px;
}

/* FAQ */
.faq {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.faq:hover { border-color: rgba(57, 211, 83, 0.3); }
.faq[open] { border-color: var(--accent-dim); background: var(--panel-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-weight: 600; font-size: 15.5px;
  padding: 6px 0;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent); font-weight: 700; font-size: 22px;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
  flex-shrink: 0;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  margin: 14px 0 6px;
  color: var(--text-dim); font-size: 14.5px;
  line-height: 1.65;
  animation: faqOpen .26s ease-out;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero {
  padding-top: 96px; padding-bottom: 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(57, 211, 83, 0.07), transparent 55%),
    radial-gradient(500px circle at 85% 0%, rgba(57, 211, 83, 0.04), transparent 50%);
  pointer-events: none;
}
.hero h1 { margin-top: 18px; }
.hero .meta-row {
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--text-dim); font-size: 14px;
  margin-top: 22px;
}
.hero .meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta-row span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 30px;
}

/* Diferenciales / feature cards */
.feat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: rgba(57, 211, 83, 0.35); transform: translateY(-2px); }
.feat-card .num {
  font-family: var(--ff-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.05em; font-weight: 600;
  margin-bottom: 10px;
}
.feat-card h3 { margin-bottom: 12px; }
.feat-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 40px;
  color: var(--text-dim); font-size: 14px;
  background: var(--bg-2);
}
footer .cols {
  display: grid; gap: 36px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); font-weight: 700; margin-bottom: 14px;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }
footer .brand { font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -0.03em; }
footer .tagline { max-width: 24em; color: var(--text-dim); font-size: 13.5px; margin-top: 10px; line-height: 1.55; }
footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-dim); }

/* Legal mode override (JS toggles .mode-legal on <body>) */
body.mode-legal .legal-hide { display: none !important; }
body.mode-legal .legal-show { display: block !important; }
.legal-show { display: none; }
.legal-banner {
  background: linear-gradient(90deg, #1a2b1f 0%, #0f1319 100%);
  border-bottom: 1px solid var(--accent-dim);
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text);
}
.legal-banner strong { color: var(--accent); }

/* Util */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 40px; } .mt-6 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 40px; }
.max-700 { max-width: 700px; }
.max-900 { max-width: 900px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-3 { gap: 24px; }

/* Scrollbar fino */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }
