/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080d1a;
  --bg-2:       #0d1425;
  --bg-row:     #0f1830;
  --bg-row-alt: #0b1220;
  --bg-card:    #111c35;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --accent:     #2b7fff;
  --accent-dim: rgba(43,127,255,0.15);
  --accent-2:   #00e5a0;
  --text:       #e8edf8;
  --text-muted: #7a8aaa;
  --text-dim:   #3d4d6a;
  --font:       'Inter', system-ui, sans-serif;
  --radius:     10px;
  --radius-sm:  6px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
s { opacity: 0.45; text-decoration: line-through; }

/* ===== HEADER ===== */
.header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

/* Tab nav */
.tab-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  height: 100%;
}

.tab {
  height: 100%;
  padding: 0 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  position: relative;
  top: 1px; /* align with header border */
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.header-cta {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.header-cta:hover { opacity: 0.88; }

/* ===== MAIN ===== */
.main {
  flex: 1;
  overflow: hidden;
}

/* ===== TAB PANELS ===== */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 28px 60px;
}

.panel-title-block {
  margin-bottom: 36px;
}

.panel-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.panel-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== RESUMEN ===== */
.resumen-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 40px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.modules-section {
  margin-bottom: 40px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.module-card {
  background: var(--bg-2);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}

.module-card:hover { background: var(--bg-card); }

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.module-icon { font-size: 1.3rem; }

.module-plan {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  white-space: nowrap;
}

.module-plan-sport {
  background: rgba(43,127,255,0.12);
  color: var(--accent);
}

.module-plan-eco {
  background: rgba(0,229,160,0.1);
  color: var(--accent-2);
}

.module-plan-mkt {
  background: rgba(168,85,247,0.12);
  color: #c084fc;
}

.module-card strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.module-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* color strip on left border per type */
.module-core  { border-top: 2px solid rgba(255,255,255,0.08); }
.module-sport { border-top: 2px solid var(--accent); }
.module-eco   { border-top: 2px solid var(--accent-2); }
.module-mkt   { border-top: 2px solid #c084fc; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.summary-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-2);
  transition: background 0.2s;
}

.summary-card:hover { background: var(--bg-card); }

.summary-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.summary-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}

.summary-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.problem-section {
  margin-bottom: 40px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.problem-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 720px;
}

.problem-text p:last-child { margin-bottom: 0; }
.problem-text strong { color: var(--text); }

.key-data-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.key-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: var(--bg-2);
  gap: 4px;
  text-align: center;
}

.key-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.key-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== OPCIONES TABLE ===== */
.options-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.options-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.options-table thead tr {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-2);
}

.options-table th {
  padding: 14px 18px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.options-table th.col-feature,
.options-table td.col-feature {
  text-align: left;
}

.options-table th.col-popular {
  color: var(--accent);
  background: rgba(43,127,255,0.08);
}

.pop-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
}

.options-table td {
  padding: 12px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.options-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}

.options-table tr:last-child td { border-bottom: none; }

.options-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

.options-table td:nth-child(3) {
  background: rgba(43,127,255,0.04);
}

.options-table .group-row td {
  background: var(--bg-row);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  padding: 10px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.options-table .price-row-top td {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-2);
}

.yes { color: var(--accent-2); font-size: 1rem; }
.no  { color: var(--text-dim); font-size: 0.95rem; }

/* ===== COMPARATIVA TABLE ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.compare-table thead tr {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-2);
}

.compare-table th {
  padding: 14px 18px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.compare-table th.col-feature { text-align: left; }

.compare-table th.col-popular {
  color: var(--accent);
  background: rgba(43,127,255,0.08);
}

.compare-table td {
  padding: 12px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.compare-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.compare-table td:nth-child(3) { background: rgba(43,127,255,0.04); }

/* ===== SAVINGS NOTE ===== */
.savings-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(0,229,160,0.05);
  border: 1px solid rgba(0,229,160,0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.accent { color: var(--accent-2); font-weight: 700; }

/* ===== STEPS TABLE ===== */
.steps-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.steps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.steps-table thead tr {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-2);
}

.steps-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.steps-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  vertical-align: top;
}

.steps-table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  width: 220px;
}

.steps-table tr:last-child td { border-bottom: none; }
.steps-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  margin-right: 10px;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

/* ===== CTA BLOCK ===== */
.cta-block {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 48px;
  margin-bottom: 32px;
  text-align: center;
}

.cta-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.cta-email {
  margin-top: 16px !important;
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
}

.cta-email a { color: var(--accent); }
.cta-email a:hover { text-decoration: underline; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
}

.btn-large {
  padding: 13px 30px;
  font-size: 0.925rem;
  border-radius: var(--radius);
}

/* ===== PANEL NAV ROW ===== */
.panel-nav-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ===== SOPORTE CONTINUO NOTE ===== */
.soporte-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 32px;
}

.soporte-note-icon {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
}

.soporte-note strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.soporte-note p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== PRIMER CLIENTE BANNER ===== */
.primer-cliente-banner {
  border: 1px solid rgba(43,127,255,0.3);
  border-radius: var(--radius);
  background: rgba(43,127,255,0.07);
  padding: 20px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.primer-cliente-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}

.primer-cliente-precios {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primer-cliente-plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.primer-cliente-nombre {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.primer-cliente-precio {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.precio-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.precio-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.precio-original {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 400;
}

.precio-actual {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.badge-50 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.row-detail {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0;
}

.primer-cliente-sep {
  font-size: 1.2rem;
  color: var(--text-dim);
  align-self: center;
}

@media (max-width: 768px) {
  .primer-cliente-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .primer-cliente-precio { font-size: 1.25rem; }
}

/* ===== APORTE DE VALOR ===== */
.valor-section {
  margin-bottom: 40px;
}

.valor-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.valor-row {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.valor-row:last-child { border-bottom: none; }
.valor-row:nth-child(even) { background: rgba(255,255,255,0.015); }

.valor-problem {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.valor-sep {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.valor-solution {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.valor-roles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.valor-role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.valor-role-card .valor-block {
  border: none;
  border-radius: 0;
}

.valor-role-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.valor-role-icon { font-size: 1.1rem; }

.valor-role-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.valor-role-president { border-top: 2px solid rgba(255,255,255,0.18); }
.valor-role-sport     { border-top: 2px solid var(--accent); }
.valor-role-coach     { border-top: 2px solid var(--accent-2); }
.valor-role-medical   { border-top: 2px solid #c084fc; }

.valor-role-president .valor-role-title { color: var(--text); }
.valor-role-sport     .valor-role-title { color: var(--accent); }
.valor-role-coach     .valor-role-title { color: var(--accent-2); }
.valor-role-medical   .valor-role-title { color: #c084fc; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { gap: 16px; }
  .header-cta { display: none; }
  .tab { padding: 0 14px; font-size: 0.8rem; }
  .brand-sub { display: none; }

  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: 1fr; }
  .key-data-row { grid-template-columns: repeat(2, 1fr); }
  .panel-inner { padding: 28px 16px 48px; }
  .panel-title { font-size: 1.3rem; }

  .valor-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .valor-sep { text-align: left; }

  .options-table th, .options-table td,
  .compare-table th, .compare-table td,
  .steps-table th, .steps-table td {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .cta-block { padding: 28px 20px; }
  .steps-table td:first-child { width: auto; white-space: normal; }
}

@media (max-width: 520px) {
  .tab-nav { overflow-x: auto; }
  .tab { padding: 0 12px; font-size: 0.78rem; }
}
