/* ================================================================
   Academia 5.000 Millas — Premium Components
   Glassmorphism, Workbook 3D, Course Pages
   ================================================================ */

/* ── Premium Hero ── */
.premium-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.premium-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.premium-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--obsidiana), transparent);
  pointer-events: none;
}

.premium-hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--oro);
  margin-bottom: 1.5rem;
}

.premium-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.premium-hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--blanco-soft);
  margin-bottom: 2.5rem;
}

/* ── Glassmorphism Cards ── */
.glass-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 165, 116, 0.12);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition);
}

.glass-card:hover {
  border-color: rgba(212, 165, 116, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(212, 165, 116, 0.05);
}

/* ── BDL Method Section ── */
.bdl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.bdl-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.bdl-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.bdl-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bdl-card-desc {
  font-size: 0.9rem;
  color: var(--blanco-muted);
  font-weight: 300;
  line-height: 1.6;
}

.bdl-equation {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--oro);
  text-align: center;
  margin: 2.5rem 0;
  letter-spacing: 0.1em;
}

/* ── Premium Course Cards ── */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.premium-course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 165, 116, 0.06);
}

.premium-course-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.premium-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.premium-course-card:hover .premium-course-thumb img {
  transform: scale(1.05);
}

.premium-course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

.premium-course-badge-free {
  background: rgba(39, 174, 96, 0.9);
  color: #fff;
}

.premium-course-badge-paid {
  background: linear-gradient(135deg, #C5973B, #D4A855);
  color: #0D0D0D;
}

.premium-course-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.premium-course-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.premium-course-desc {
  font-size: 0.9rem;
  color: var(--blanco-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.premium-course-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gris);
  margin-bottom: 1.25rem;
}

.premium-course-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--oro);
  margin-bottom: 1rem;
}

.premium-course-price small {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--blanco-muted);
}

/* ── Mentor Section ── */
.mentor-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.mentor-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--obsidiana-lighter);
  font-size: 4rem;
}

.mentor-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mentor-stats {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--oro);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.mentor-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blanco-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.mentor-links {
  display: flex;
  gap: 1rem;
}

.mentor-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gris);
  transition: color var(--transition);
}

.mentor-links a:hover {
  color: var(--oro);
}

/* ── Workbook Mockup 3D ── */
.workbook-mockup-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  gap: 40px;
  flex-wrap: wrap;
}

.workbook-mockup {
  width: 260px;
  height: 370px;
  position: relative;
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  flex-shrink: 0;
}

.workbook-mockup:hover {
  transform: rotateY(-5deg) rotateX(2deg) scale(1.05);
}

.workbook-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow:
    20px 20px 60px rgba(0, 0, 0, 0.6),
    -2px -2px 10px rgba(197, 151, 59, 0.1),
    inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.workbook-mockup::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #C5973B 0%, transparent 50%, #D4A855 100%);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.6s ease;
}

.workbook-mockup:hover::before {
  opacity: 0.8;
}

.workbook-mockup::after {
  content: '';
  position: absolute;
  top: 5px;
  left: -12px;
  width: 12px;
  height: calc(100% - 10px);
  background: linear-gradient(to right, #1a1a1a, #2a2a2a);
  transform: rotateY(90deg);
  transform-origin: right;
  border-radius: 2px 0 0 2px;
}

.workbook-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: linear-gradient(135deg, #C5973B, #D4A855);
  color: #0D0D0D;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 15px rgba(197, 151, 59, 0.4);
}

.workbook-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--oro);
  margin-bottom: 0.75rem;
}

.workbook-info p {
  color: var(--blanco-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.workbook-info .workbook-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--oro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Course Page Hero ── */
.course-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.course-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.7) 100%);
  z-index: 1;
}

.course-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.4);
}

.course-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── Registration Gate Card ── */
.gate-card {
  max-width: 520px;
  margin: 3rem auto;
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
}

.gate-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.gate-card p {
  color: var(--blanco-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.gate-card .modal-form {
  text-align: left;
}

/* ── Course Content (post-registration) ── */
.course-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.course-week {
  margin-bottom: 3rem;
}

.course-week-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--obsidiana-lighter);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-week-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-week-banner-placeholder {
  font-size: 2rem;
  opacity: 0.2;
  font-family: var(--font-display);
  color: var(--oro);
}

.course-week-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Lesson Card ── */
.lesson-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.lesson-card:hover {
  border-color: var(--border-hover);
}

.lesson-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}

.lesson-header:hover {
  background: var(--obsidiana-lighter);
}

.lesson-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--oro);
  min-width: 2.5rem;
}

.lesson-title {
  font-weight: 500;
  font-size: 0.95rem;
  flex: 1;
}

.lesson-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lesson-check:hover {
  border-color: var(--oro);
}

.lesson-check.completed {
  background: var(--oro);
  border-color: var(--oro);
}

.lesson-check.completed::after {
  content: '✓';
  color: var(--obsidiana);
  font-size: 0.7rem;
  font-weight: 700;
}

.lesson-video {
  display: none;
  padding: 0;
}

.lesson-video.open {
  display: block;
}

.lesson-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.lesson-actions {
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 1rem;
  background: var(--obsidiana-lighter);
}

.lesson-actions a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* ── Progress Bar ── */
.progress-container {
  margin: 2rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gris);
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 4px;
  background: var(--obsidiana-lighter);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--oro-dark), var(--oro));
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ── Stripe Button ── */
.btn-stripe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: linear-gradient(135deg, #C5973B, #D4A855);
  color: #0D0D0D;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(197, 151, 59, 0.3);
}

.btn-stripe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(197, 151, 59, 0.5);
  color: #0D0D0D;
  text-decoration: none;
}

/* ── Value Proposition Grid ── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.value-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.85rem;
  color: var(--blanco-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Guarantee Section ── */
.guarantee {
  text-align: center;
  padding: 2.5rem;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 8px;
  background: rgba(39, 174, 96, 0.03);
  margin: 2rem 0;
}

.guarantee-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.guarantee h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.guarantee p {
  color: var(--blanco-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ── Course Completion ── */
.course-completion {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 3rem 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.03), transparent);
}

.course-completion h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.course-completion p {
  color: var(--blanco-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ── Responsive Premium ── */
@media (max-width: 768px) {
  .bdl-grid {
    grid-template-columns: 1fr;
  }

  .premium-grid {
    grid-template-columns: 1fr;
  }

  .mentor-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .mentor-avatar {
    margin: 0 auto;
  }

  .mentor-links {
    justify-content: center;
  }

  .workbook-mockup-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .workbook-mockup {
    width: 200px;
    height: 285px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .course-hero {
    min-height: 50vh;
  }
}
