/* ============================================================
   YojaoDigital — Landing Page
   Paleta: negro cálido + dorado ámbar + crema
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: oklch(0.16 0.008 60);
  --bg-alt: oklch(0.19 0.008 60);
  --bg-card: oklch(0.21 0.010 60);
  --bg-card-hover: oklch(0.23 0.012 60);
  --border: oklch(0.32 0.015 65 / 0.5);
  --border-hover: oklch(0.55 0.10 75 / 0.6);
  --text: oklch(0.95 0.015 80);
  --text-dim: oklch(0.72 0.015 75);
  --text-mute: oklch(0.55 0.012 70);
  --accent: oklch(0.78 0.14 75);
  --accent-bright: oklch(0.85 0.16 78);
  --accent-dim: oklch(0.55 0.10 72);
  --accent-glow: oklch(0.78 0.14 75 / 0.25);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 800px 600px at 80% -10%, oklch(0.35 0.10 75 / 0.15), transparent 60%),
    radial-gradient(ellipse 600px 500px at 10% 30%, oklch(0.30 0.08 60 / 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--accent);
  font-weight: 400;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(1.4);
  background: oklch(0.16 0.008 60 / 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.logo-mark {
  color: var(--accent);
  display: flex;
}
.logo-text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  gap: 1px;
}
.logo-name { color: var(--text); }
.logo-suffix { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ============================================================
   BOTONES
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

.btn-primary {
  background: var(--accent);
  color: oklch(0.15 0.010 60);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: oklch(0.22 0.010 60 / 0.5);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 100px 32px 120px;
  overflow: hidden;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: oklch(0.20 0.010 60 / 0.5);
  margin-bottom: 32px;
}
.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 20px 40px;
  background: oklch(0.20 0.010 60 / 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.hero-stats > div:not(.divider) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
}
.hero-stats span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-stats .star-inline {
  color: var(--accent);
  font-size: 20px;
  margin-left: 2px;
}
.hero-stats .divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* ============================================================
   SECTION
   ============================================================ */

.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-alt {
  background: var(--bg-alt);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt .section-head,
.section-alt .testimonials {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   CURSOS
   ============================================================ */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.course {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.course:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px oklch(0 0 0 / 0.3), 0 0 0 1px var(--border-hover);
}

.course-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: oklch(0.15 0.010 60);
  overflow: hidden;
}
.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-placeholder {
  position: absolute;
  inset: 0;
  background: oklch(0.14 0.008 60);
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-placeholder svg {
  position: absolute;
  inset: 0;
}
.placeholder-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: oklch(0.16 0.008 60 / 0.8);
}
.course-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: oklch(0.16 0.008 60 / 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.course-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  color: var(--accent);
}
.star-wrap {
  position: relative;
  display: inline-block;
  color: oklch(0.28 0.010 60);
}
.star-bg { color: oklch(0.28 0.010 60); }
.star-fill {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
}
.stars-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 6px;
}

.course-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.course-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.course-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.price-old {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mute);
  text-decoration: line-through;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  margin: 0;
  font-style: normal;
}
.quote-mark {
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
}
.testimonial p {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 24px;
  position: relative;
  z-index: 2;
}
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: oklch(0.30 0.05 70);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
}
.testimonial footer strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.testimonial footer span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-hover); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-q:hover { background: oklch(0.22 0.012 60 / 0.5); }
.faq-toggle {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--accent);
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
.faq-a {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: oklch(0.13 0.008 60);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 16px 0 0;
  max-width: 340px;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.footer-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.social-links {
  display: flex;
  gap: 8px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13px;
  transition: all 0.2s;
}
.social-links a:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}

/* ============================================================
   BOTÓN FLOTANTE LINK.BIO
   ============================================================ */

.floating-linkbio {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 18px;
  background: var(--accent);
  color: oklch(0.15 0.010 60);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow:
    0 12px 32px oklch(0 0 0 / 0.4),
    0 0 0 4px oklch(0.78 0.14 75 / 0.15),
    0 0 40px oklch(0.78 0.14 75 / 0.35);
  transition: all 0.25s ease;
}
.floating-linkbio:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--accent-bright);
  box-shadow:
    0 16px 40px oklch(0 0 0 / 0.5),
    0 0 0 4px oklch(0.78 0.14 75 / 0.2),
    0 0 60px oklch(0.78 0.14 75 / 0.5);
}
.fl-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  animation: fl-pulse 2.4s infinite;
  pointer-events: none;
}
@keyframes fl-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ============================================================
   PANEL DE EDICIÓN — CUSTOM
   ============================================================ */

.course-editor {
  background: oklch(0.22 0.008 60);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ce-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ce-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ce-remove {
  background: transparent;
  border: 1px solid oklch(0.5 0.15 30 / 0.5);
  color: oklch(0.7 0.15 30);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--mono);
  transition: all 0.2s;
}
.ce-remove:hover {
  background: oklch(0.5 0.15 30 / 0.2);
  color: oklch(0.85 0.15 30);
}
.ce-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ce-field > span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ce-field input,
.ce-field textarea {
  background: oklch(0.16 0.008 60);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.ce-field input:focus,
.ce-field textarea:focus {
  border-color: var(--accent);
}
.ce-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ce-highlight input {
  border-color: var(--accent-dim);
  background: oklch(0.22 0.03 75 / 0.3);
}
.ce-highlight > span { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 720px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 60px 20px 80px; }
  .hero-stats {
    gap: 20px;
    padding: 16px 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-stats .divider { display: none; }
  .section { padding: 60px 20px; }
  .courses-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-social { align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: left; gap: 8px; }
  .floating-linkbio { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 13px; }
  .fl-label { display: none; }
  .floating-linkbio { padding: 14px; }
  .fl-label { display: inline; }
}
