/* tk-academia — design system alineado con tk-home/index.html
   Fuente: AWS/Websites/tk-home/index.html (líneas ~63-200).
   Mantener sincronizado con cualquier cambio de tk-home. */

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

:root {
  --bg: #060a14;
  --bg-card: rgba(12, 16, 28, 0.85);
  --bg-card-hover: rgba(18, 24, 42, 0.95);
  --white: #f0f4fb;
  --gray: #b4c0d2;
  --gray-l: rgba(180, 192, 210, 0.82);
  --cyan: #5cffef;
  --purple: #7c5cff;
  --purple-l: rgba(124, 92, 255, 0.8);
  --green: #3ed598;
  --red: #ff4d6a;
  --gold: #ffb84d;
  --bdr: rgba(255, 255, 255, 0.06);
  --bdr-l: rgba(255, 255, 255, 0.10);
  --r: 12px;
  --rs: 8px;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.section { padding: clamp(64px, 8vw, 100px) 0; position: relative; }

.section-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px; display: inline-block;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 700;
  line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.01em;
}
.section-sub {
  font-size: 17.5px; color: var(--gray); max-width: 680px;
  line-height: 1.75; margin-bottom: 18px; font-weight: 300;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 28px; min-height: 46px;
  border: 1px solid var(--bdr-l); border-radius: var(--rs);
  color: var(--white); background: transparent; cursor: pointer;
  transition: all .25s; white-space: nowrap; user-select: none;
}
.btn:hover {
  border-color: var(--cyan); color: var(--cyan);
  box-shadow: 0 0 24px rgba(92, 255, 239, 0.12); transform: translateY(-1px);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-solid {
  background: linear-gradient(135deg, rgba(92, 255, 239, 0.18), rgba(124, 92, 255, 0.18));
  border-color: rgba(92, 255, 239, 0.35); color: var(--white);
}
.btn-solid:hover {
  background: linear-gradient(135deg, rgba(92, 255, 239, 0.28), rgba(124, 92, 255, 0.28));
  box-shadow: 0 0 32px rgba(92, 255, 239, 0.18);
  border-color: var(--cyan); color: var(--white);
}
.btn-arrow::after { content: '→'; font-family: var(--sans); font-size: 14px; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ── Nav fija (estilo tk-home) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(6, 10, 20, 0.70);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  transition: all .3s;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { height: 28px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray); transition: color .2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links .nav-cta {
  padding: 9px 18px; border: 1px solid var(--bdr-l); border-radius: var(--rs);
  color: var(--white);
}
.nav-links .nav-cta:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Hero ── */
.hero {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/Fondo_inicio_prueba.png') center top / cover no-repeat;
  pointer-events: none; opacity: 0.7;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.hero-logo { height: 54px; margin: 0 auto 36px; }
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 700;
  line-height: 1.08; margin-bottom: 22px; letter-spacing: -0.025em;
}
.hero-sub {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 24px;
}
.hero p {
  font-size: clamp(15px, 1.4vw, 18px); color: var(--gray);
  max-width: 620px; margin: 0 auto 36px; line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Card de curso (estilo .pilar de tk-home) ── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr-l);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: all .3s;
  position: relative;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity .3s; z-index: 2;
}
.course-card:hover {
  border-color: rgba(92, 255, 239, 0.2);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.course-card:hover::before { opacity: 1; }

.cc-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(92, 255, 239, 0.10), rgba(124, 92, 255, 0.10));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.cc-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 10, 20, 0.6));
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-thumb-icon {
  font-size: 42px; color: var(--cyan);
  text-shadow: 0 0 24px rgba(92, 255, 239, 0.6);
  position: relative; z-index: 1;
}

.cc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.cc-title { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.cc-desc { font-size: 14px; color: var(--gray); line-height: 1.65; font-weight: 300; flex: 1; }
.cc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bdr);
}
.cc-price { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--white); }
.cc-arrow { color: var(--cyan); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }

/* ── Form card (login) ── */
.form-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 20px 60px;
  position: relative; overflow: hidden;
}
.form-shell::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(92, 255, 239, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(124, 92, 255, 0.08), transparent 50%);
  pointer-events: none;
}
.form-card {
  position: relative; z-index: 1;
  max-width: 440px; width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--bdr-l);
  border-radius: var(--r);
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(92, 255, 239, 0.05);
}
.form-card h1 {
  font-size: 28px; font-weight: 700; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.form-card .form-lead {
  color: var(--gray); margin-bottom: 28px; font-size: 14.5px; line-height: 1.65;
}

.form-label {
  display: block; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 13px 14px;
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid var(--bdr-l); border-radius: var(--rs);
  color: var(--white); font-family: var(--sans); font-size: 14.5px;
  margin-bottom: 18px;
  transition: border-color .2s, background .2s;
}
.form-input:focus {
  outline: none; border-color: var(--cyan);
  background: rgba(6, 10, 20, 0.85);
}

.form-hint {
  font-size: 12px; color: var(--gray);
  margin-top: 16px; text-align: center; letter-spacing: .02em;
}

/* ── Messages ── */
.msg-success {
  background: rgba(62, 213, 152, 0.08);
  border: 1px solid rgba(62, 213, 152, 0.25);
  color: var(--green);
  padding: 12px 14px; border-radius: var(--rs);
  font-size: 13px; line-height: 1.55;
}
.msg-error {
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.25);
  color: var(--red);
  padding: 12px 14px; border-radius: var(--rs);
  font-size: 13px; line-height: 1.55;
}

/* ── Footer ── */
.footer {
  margin-top: 80px; padding: 32px 0;
  border-top: 1px solid var(--bdr);
  text-align: center; color: var(--gray); font-size: 12px;
  font-family: var(--mono); letter-spacing: .08em;
}
.footer a { color: var(--cyan); }

/* ── Coach card (asesoría) ── */
.coach-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 32px;
}
@media (max-width: 720px) { .coach-grid { grid-template-columns: 1fr; } }

.coach-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr-l);
  border-radius: var(--r);
  padding: 36px 32px;
  text-align: center;
  transition: all .3s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.coach-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity .3s;
}
.coach-card:hover {
  border-color: rgba(92, 255, 239, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.coach-card:hover::before { opacity: 1; }

.coach-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(92, 255, 239, 0.22), rgba(124, 92, 255, 0.22));
  border: 2px solid rgba(92, 255, 239, 0.35);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 32px; font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(92, 255, 239, 0.6);
  overflow: hidden;
}
.coach-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coach-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.coach-role {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.coach-bio {
  color: var(--gray); font-size: 14px; line-height: 1.7;
  font-weight: 300; margin-bottom: 22px;
  flex: 1;
}
.coach-price {
  font-family: var(--mono); font-size: 26px; font-weight: 700;
  color: var(--white); margin-bottom: 20px;
}

/* ── App private nav ── */
.app-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  padding: 14px 0;
}
.app-nav .container { display: flex; align-items: center; justify-content: space-between; }
.app-nav-links { display: flex; gap: 22px; align-items: center; }
.app-nav-links a {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray); transition: color .2s;
}
.app-nav-links a:hover, .app-nav-links a.active { color: var(--cyan); }

@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
