/* Neural Extension · estilos compartidos
   Estetica terminal estilo @victorpay: fondo negro + monoespaciada + acento verde.
   Mobile-first; responsive con max-width contenidos.
*/

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #161616;
  --text: #fafafa;
  --muted: #a3a3a3;
  --accent: #4ade80;
  --accent-hover: #22c55e;
  --accent-dim: rgba(74, 222, 128, 0.1);
  --danger: #ef4444;
  --border: #262626;
  --radius-subtle: 6px;
  --max: 960px;
  --max-narrow: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { border-color: var(--accent); }

strong { color: var(--text); font-weight: 700; }
em { color: var(--muted); font-style: italic; }

/* ===== NAV ===== */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.nav-brand {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1rem;
}
.nav-brand::before { content: "$ "; color: var(--muted); }
.nav-brand:hover { border: none; }
.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.nav-links a {
  color: var(--text);
  border: none;
  opacity: 0.65;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-links a.active { color: var(--accent); opacity: 1; }

/* ===== LAYOUT ===== */
.container,
.container-narrow { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow > * { max-width: var(--max-narrow); }

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: none; }

.section-tag {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-tag::before { content: "// "; opacity: 0.5; }

/* ===== TIPOGRAFÍA ===== */
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

p { margin-bottom: 1rem; color: var(--text); }
p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 680px;
}
p.tagline {
  color: var(--muted);
  font-style: italic;
  margin-top: 1rem;
  font-size: 0.9rem;
}

ul { list-style: none; margin-bottom: 1rem; }
ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--text);
}
ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
ul.dash li::before { content: "-"; color: var(--muted); }
ul.cross li::before { content: "✗"; color: var(--danger); }
ul.check li::before { content: "✓"; color: var(--accent); }

blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}
blockquote.big {
  font-size: 1.15rem;
  border-left-width: 3px;
}

ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text); }
ol li { margin-bottom: 0.5rem; }
ol li::marker { color: var(--accent); font-weight: 700; }

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 { margin-bottom: 1rem; }
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 2.5rem;
  align-items: center;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-photo {
  margin: 0;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-subtle);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: var(--radius-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
  text-align: center;
}
.btn:hover { border-color: var(--accent-hover); }
.btn::before { content: "[ "; }
.btn::after { content: " ]"; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-dim); }
.btn-full { width: 100%; display: block; }

/* ===== CARDS (4 ofertas) ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-subtle);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card-tag {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.card .btn { margin-top: auto; }

/* ===== TARJETAS DE TARIFAS (mentorias) ===== */
.tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.tariff {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-subtle);
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tariff.popular { border-color: var(--accent); }
.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tariff h3.tariff-name {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.tariff .price {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0.25rem 0;
  letter-spacing: -0.02em;
}
.tariff .price .unit { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.tariff .duration {
  display: inline-block;
  background: var(--bg);
  color: var(--muted);
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-subtle);
}
.tariff h4 {
  font-size: 0.78rem;
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.tariff ul { font-size: 0.95rem; }
.tariff .description {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.tariff .btn { margin-top: auto; }

/* ===== TABLA ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
tbody tr:hover { background: var(--bg-elevated); }

/* ===== FAQ ===== */
details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
details[open] summary::after { content: "−"; }
details p {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* ===== HIGHLIGHT BOX ===== */
.box {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-subtle);
  padding: 1.5rem;
  margin: 2rem 0;
}
.box strong { color: var(--accent); }
.box-quote {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-subtle);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
}

/* ===== FOOTER ===== */
footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin-bottom: 0.5rem; color: var(--muted); }
footer a { font-size: 0.9rem; }
footer .closing {
  color: var(--accent);
  font-style: italic;
  margin-top: 1.5rem;
  font-size: 1rem;
}

/* ===== PLACEHOLDER VISUAL ===== */
.placeholder {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-subtle);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.placeholder::before { content: "[ "; color: var(--accent); font-style: normal; }
.placeholder::after { content: " ]"; color: var(--accent); font-style: normal; }

/* ===== TERMINAL BLOCK ===== */
.terminal {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-subtle);
  padding: 1.25rem 1.5rem 1.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.85;
  margin: 1.75rem 0;
  position: relative;
  overflow-x: auto;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.85rem;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #4ade80; }
.terminal-title {
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.term-cmd {
  color: var(--accent);
  padding: 0.1rem 0;
}
.term-cmd::before { content: "$ "; color: var(--muted); }
.term-out {
  color: var(--muted);
  padding: 0.1rem 0;
}
.term-out::before { content: "→ "; color: var(--accent); opacity: 0.7; }
.term-out.success { color: var(--accent); }
.term-out.success::before { content: "✓ "; color: var(--accent); }
.term-out.bare::before { content: ""; }

.course-proof {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: stretch;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-subtle);
  padding: 1rem;
  margin: 1.75rem 0 0;
}
.course-proof-copy {
  padding: 0.5rem;
  align-self: center;
}
.course-proof-copy .section-tag { margin-bottom: 0.75rem; }
.course-proof-copy h3 { font-size: 1.05rem; line-height: 1.45; }
.course-proof-copy ul { font-size: 0.9rem; margin-bottom: 0; }
.course-proof-shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-subtle);
  height: min(36vw, 340px);
  min-height: 220px;
  overflow: hidden;
}
.course-proof-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ===== CHIP SOCIAL ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-subtle);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0.5rem 0.5rem 0;
}
.chip strong { color: var(--accent); }

/* ===== FORM ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
  margin-top: 2rem;
}
form label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
form input, form select, form textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-subtle);
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2rem; }
  h1 {
    font-size: clamp(1.6rem, 6.8vw, 2rem);
    text-wrap: balance;
    overflow-wrap: break-word;
  }
  .nav { padding: 0.75rem 1rem; }
  .nav-links { gap: 0.85rem; font-size: 0.85rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .course-proof { grid-template-columns: 1fr; }
  .course-proof-shot { height: 260px; min-height: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tariff .price { font-size: 1.85rem; }
}
