/* ===========================================================================
 * NodrizaRun landing — variante A_terminal LOCKED
 * Paleta + tipografía consistentes con marketing/LINEAMIENTO_CAMPANA.md §2.
 * =========================================================================== */

:root {
  --bg: #0b0f14;
  --surface: #131a22;
  --surface2: #1b242e;
  --primario: #3fe57f;
  --primario-osc: #1f8e4d;
  --acento: #ff4757;
  --texto: #e8ecf1;
  --texto-sec: #8a95a4;
  --outline: #2a3340;
  --jbm: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
  --sg: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --inter: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--texto);
  font-family: var(--inter);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--primario);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
::selection {
  background: var(--primario);
  color: var(--bg);
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo {
  font-family: var(--jbm);
  color: var(--primario);
  font-size: 1.25rem;
  font-weight: 800;
}
.wordmark {
  font-family: var(--sg);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav a {
  color: var(--texto-sec);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--texto);
  text-decoration: none;
}
.nav .cta-link {
  background: var(--primario);
  color: var(--bg);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav .cta-link:hover {
  background: #5fef99;
  text-decoration: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(63, 229, 127, 0.18) 0%,
      transparent 50%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(63, 229, 127, 0.04) 0 1px,
      transparent 1px 40px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(63, 229, 127, 0.04) 0 1px,
      transparent 1px 40px
    );
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.day-tag {
  font-family: var(--jbm);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.day-tag .prompt {
  color: var(--acento);
}
.day-tag .cmd {
  color: var(--primario);
}
.headline {
  font-family: var(--jbm);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.headline .hl {
  color: var(--primario);
  text-shadow: 0 0 18px rgba(63, 229, 127, 0.45);
}
.headline .hl-red {
  color: var(--acento);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}
.sub {
  font-size: 1.1rem;
  color: var(--texto-sec);
  max-width: 680px;
  margin: 0 auto 2rem;
}
.sub .comment {
  font-family: var(--jbm);
  color: var(--primario);
}
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 520px;
  margin: 0 auto 1.25rem;
}
.signup input[type="email"] {
  flex: 1 1 240px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 8px;
  color: var(--texto);
  font-family: var(--inter);
  font-size: 1rem;
}
.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--primario);
  box-shadow: 0 0 0 3px rgba(63, 229, 127, 0.2);
}
.signup button {
  padding: 0.85rem 1.4rem;
  background: var(--primario);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: var(--inter);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.signup button:hover {
  background: #5fef99;
}
.signup button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.signup .msg {
  flex-basis: 100%;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.signup .msg.error {
  color: var(--acento);
}
.signup .msg.success {
  color: var(--primario);
}
.signup .finep {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--texto-sec);
  margin-top: 0.4rem;
}
.terminal-line {
  font-family: var(--jbm);
  color: var(--primario);
  font-size: 0.95rem;
  margin-top: 2rem;
  opacity: 0.85;
}
.cursor {
  display: inline-block;
  background: var(--primario);
  color: var(--primario);
  width: 0.5em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- SECCIONES generales ---------- */
section {
  padding: 4rem 1.5rem;
}
section h2 {
  font-family: var(--jbm);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
section h2 .comment {
  color: var(--primario);
}
.sub-section {
  text-align: center;
  color: var(--texto-sec);
  margin-bottom: 2.5rem;
}

/* ---------- FEATURES ---------- */
.features {
  background: var(--surface);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
}
.card {
  background: var(--surface2);
  padding: 1.25rem;
  border: 1px solid var(--outline);
  border-radius: 10px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--primario-osc);
}
.card h3 {
  font-family: var(--jbm);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primario);
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--texto-sec);
  font-size: 0.92rem;
}

/* ---------- VS COMPETENCIA ---------- */
.vs {
  padding-bottom: 3.5rem;
}
.table-wrap {
  max-width: 920px;
  margin: 0 auto;
  overflow-x: auto;
}
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.vs-table th,
.vs-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--outline);
}
.vs-table thead {
  background: var(--surface2);
  color: var(--texto-sec);
  font-family: var(--jbm);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vs-table tbody tr:hover {
  background: rgba(63, 229, 127, 0.04);
}
.vs-table .winner {
  background: rgba(63, 229, 127, 0.08);
}
.vs-table .winner td:first-child {
  border-left: 3px solid var(--primario);
}
.numero {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--jbm);
  font-size: 1rem;
  color: var(--texto-sec);
}
.numero .hl {
  color: var(--primario);
  font-weight: 700;
}

/* ---------- PRICING ---------- */
.pricing {
  background: var(--surface);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.tier {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
}
.tier.featured {
  border-color: var(--primario);
  box-shadow: 0 0 0 3px rgba(63, 229, 127, 0.12);
}
.tier .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primario);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--jbm);
  font-size: 0.75rem;
  font-weight: 700;
}
.tier h3 {
  font-family: var(--jbm);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier .price {
  margin-bottom: 0.25rem;
}
.tier .amount {
  font-family: var(--jbm);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--primario);
}
.tier .per {
  color: var(--texto-sec);
  font-size: 0.9rem;
}
.tier .devices {
  font-family: var(--jbm);
  color: var(--texto-sec);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.tier ul {
  list-style: none;
  margin-bottom: 1.25rem;
  text-align: left;
}
.tier li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--texto-sec);
}
.tier li::before {
  content: "✓";
  color: var(--primario);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.tier-cta {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--surface);
  color: var(--texto);
  border: 1px solid var(--outline);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.tier-cta:hover {
  border-color: var(--primario);
  text-decoration: none;
}
.tier-cta-primary {
  background: var(--primario);
  color: var(--bg);
  border-color: var(--primario);
}
.tier-cta-primary:hover {
  background: #5fef99;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface2);
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--outline);
  border-radius: 8px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--jbm);
  font-weight: 600;
  color: var(--texto);
}
.faq details[open] summary {
  color: var(--primario);
}
.faq p {
  margin-top: 0.6rem;
  color: var(--texto-sec);
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--surface2);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  padding: 3.5rem 1.5rem;
}
.final-cta h2 {
  font-family: var(--jbm);
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.final-cta p {
  color: var(--texto-sec);
  margin-bottom: 1.5rem;
}
.big-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primario);
  color: var(--bg);
  border-radius: 10px;
  font-family: var(--jbm);
  font-weight: 700;
  font-size: 1.05rem;
}
.big-cta:hover {
  background: #5fef99;
  text-decoration: none;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--outline);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-inner .wordmark {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
}
.footer-nav a {
  color: var(--texto-sec);
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: var(--texto);
  text-decoration: none;
}
.footer-terminal {
  width: 100%;
  font-family: var(--jbm);
  color: var(--primario-osc);
  font-size: 0.8rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px dashed var(--outline);
}
.finep {
  font-size: 0.8rem;
  color: var(--texto-sec);
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .nav a:not(.cta-link) {
    display: none;
  }
  .topbar {
    padding: 0.7rem 1rem;
  }
  section {
    padding: 3rem 1rem;
  }
}
