/* ================================================================
   Vibe Coder Bootcamp · Static landing pages
   public/vibecoder-assets/styles.css
   Look 1:1 con portal Talent Academy 2.0 (dark + gold).
   Tokens extraídos de src/styles/tokens/{primitives,semantic}.css.
   Sin Tailwind, sin React, sin runtime — solo HTML/CSS planos.
   ================================================================ */

:root {
  /* Brand gold (de --ta-color-brand-gold-*) */
  --gold-300: #e0c98a;
  --gold-400: #d1b876;
  --gold-500: #c1a966;
  --gold-600: #a68c4b;
  --gold-700: #886e32;

  /* Neutrals dark theme (de --ta-color-neutral-*) */
  --bg: #0b0a08;
  --bg-2: #1a1814;
  --bg-3: #34332e;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #fbfaf6;
  --text-muted: #a3a19c;
  --text-soft: #d0cec8;

  /* Radii (de --ta-radius-*) */
  --radius: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;

  /* Shadows (de --ta-shadow-* dark) */
  --shadow-md: 0 2px 4px -1px rgba(0,0,0,0.35), 0 8px 16px -4px rgba(0,0,0,0.45);
  --shadow-lg: 0 4px 8px -2px rgba(0,0,0,0.40), 0 12px 24px -6px rgba(0,0,0,0.50);

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ---------- Base reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body { margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "rlig" 1, "calt" 1;
}

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover { color: var(--gold-300); }

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

h1, h2, h3, h4 { margin: 0; }

p, ul, ol, blockquote { margin: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

/* ---------- Site header (logo + nav) ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 10, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  max-width: 880px;
  margin: 0 auto;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .site-header-inner { padding: 1rem 1.5rem; flex-wrap: nowrap; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--gold-500);
  border-radius: 0.5rem;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  background: rgba(193, 169, 102, 0.06);
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-name small {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.125rem;
}

/* ---------- Botonera nav entre las sesiones ---------- */
.session-nav {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.session-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .session-nav a {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

.session-nav a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.session-nav a.is-active {
  color: var(--gold-300);
  background: rgba(193, 169, 102, 0.14);
  border-color: rgba(193, 169, 102, 0.45);
}

.session-nav .nav-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .session-nav .nav-num {
    font-size: 0.875rem;
  }
}

.session-nav .is-active .nav-num {
  color: var(--gold-500);
}

/* ---------- Main ---------- */
.main {
  padding: 2.5rem 0 3rem;
}

@media (min-width: 640px) {
  .main { padding: 3rem 0 4rem; }
}

/* ---------- Hero ---------- */
.hero {
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(193, 169, 102, 0.35);
  background: rgba(193, 169, 102, 0.10);
  border-radius: 9999px;
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.005em;
}

@media (min-width: 640px) {
  .hero-title { font-size: 2.75rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.25rem; }
}

.hero-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  max-width: 64ch;
}

@media (min-width: 640px) {
  .hero-summary { font-size: 1.0625rem; }
}

.hero-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-byline span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* ---------- Video frame ---------- */
.video-frame {
  margin: 2rem 0 1.5rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Botones ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.9375rem 1.25rem;
  background: var(--gold-500);
  color: #1a1814;
  border: 1px solid var(--gold-600);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, transform 100ms ease, color 150ms ease;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--gold-400);
  color: #1a1814;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary svg {
  flex-shrink: 0;
}

/* Separación entre botones primarios consecutivos (ej. 2 PDFs en
   /vibecoder-extra-2), misma que el margin-top del CTA de WhatsApp. */
.btn-primary + .btn-primary {
  margin-top: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

/* WhatsApp CTA — solo en /vibecoder-extra para alumnos pagantes.
   Gradient diagonal verde WhatsApp brillante → teal oscuro, texto blanco,
   halo verde sutil para sensación de elevación. */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  width: 100%;
  margin-top: 1rem;
  padding: 1.125rem 1.5rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 200ms cubic-bezier(0.2, 0, 0.2, 1),
    box-shadow 250ms ease,
    filter 200ms ease;
  box-shadow:
    0 2px 4px -1px rgba(18, 140, 126, 0.35),
    0 8px 24px -6px rgba(37, 211, 102, 0.40);
}

.btn-whatsapp:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 4px 8px -2px rgba(18, 140, 126, 0.40),
    0 12px 32px -8px rgba(37, 211, 102, 0.55),
    0 0 0 4px rgba(37, 211, 102, 0.16);
}

.btn-whatsapp:active {
  transform: translateY(0);
  filter: brightness(0.96);
  transition-duration: 80ms;
}

.btn-whatsapp svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.20));
}

@media (max-width: 480px) {
  .btn-whatsapp {
    font-size: 0.9375rem;
    padding: 1rem 1.125rem;
    gap: 0.625rem;
  }
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.30);
  color: var(--text);
}

/* ---------- Sections ---------- */
.section {
  margin: 2.5rem 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1px;
  background: var(--gold-500);
}

/* ---------- Links grid (enlaces de la clase) ---------- */
.links-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gold-300);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.link-card::before {
  content: '↗';
  font-size: 0.8125rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.link-card:hover {
  background: rgba(193, 169, 102, 0.08);
  border-color: rgba(193, 169, 102, 0.30);
  color: var(--gold-300);
}

/* ---------- Summary card (resumen contenedor) ---------- */
.summary-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .summary-card { padding: 2rem 2.25rem; }
}

.summary-card h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.25;
}

@media (min-width: 640px) {
  .summary-card h2 { font-size: 1.5rem; }
}

.summary-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
  letter-spacing: 0.005em;
}

@media (min-width: 640px) {
  .summary-card h3 { font-size: 1.0625rem; }
}

.summary-card h3:first-of-type { margin-top: 1.25rem; }

.summary-card p {
  color: var(--text-soft);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.summary-card .summary-intro {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .summary-card .summary-intro { font-size: 0.96875rem; }
}

.summary-card ul {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
}

.summary-card ul li {
  position: relative;
  padding: 0.4375rem 0 0.4375rem 1.25rem;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.9375rem;
}

.summary-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9375rem;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gold-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* sub-listas (anidadas) */
.summary-card ul ul {
  margin: 0.375rem 0 0.25rem;
}

.summary-card ul ul li {
  padding-left: 1.125rem;
  font-size: 0.9rem;
}

.summary-card ul ul li::before {
  background: transparent;
  border: 1px solid var(--gold-600);
  width: 0.3125rem;
  height: 0.3125rem;
  top: 0.875rem;
}

.summary-card li strong {
  color: var(--text);
  font-weight: 600;
}

.summary-card blockquote {
  border-left: 3px solid var(--gold-500);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.25rem 0;
  color: var(--text-soft);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.summary-card .meta-final {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.summary-card .meta-final strong {
  color: var(--text-soft);
}

/* ---------- CTA card (días públicos: día 1 + día 2) ---------- */
.cta-card {
  margin: 3rem 0 1rem;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at top left, rgba(193, 169, 102, 0.10) 0%, transparent 60%),
    var(--bg-2);
  border: 1px solid rgba(193, 169, 102, 0.25);
  border-radius: var(--radius-xl);
  text-align: center;
}

@media (min-width: 640px) {
  .cta-card { padding: 2.75rem 2.5rem; }
}

.cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text);
  letter-spacing: -0.005em;
}

@media (min-width: 640px) {
  .cta-card h3 { font-size: 2rem; }
}

.cta-card p {
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 auto 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .cta-card p { font-size: 1rem; }
}

.cta-actions {
  display: grid;
  gap: 0.625rem;
  max-width: 22rem;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .cta-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cta-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.20);
  text-underline-offset: 3px;
}

.cta-note a:hover {
  color: var(--text);
  text-decoration-color: var(--gold-500);
}

/* ---------- Site footer ---------- */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.site-footer p { margin-bottom: 0.25rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text-soft); }

/* ---------- Accesibilidad ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
