/* ====================================================================
   IMPULSORIA HOTELES · Escuela ImpulsorIA
   Estilos globales — Violeta técnico + Naranja conversión
   ==================================================================== */

:root {
  --base-light: #FAF8F5;
  --base-dark: hsl(259, 65%, 10%);
  --base-dark-hex: #12092B;
  --fg-light: #111214;
  --fg-dark: #FFFFFF;
  --muted-light: #6B7280;
  --muted-dark: hsl(0, 0%, 93%);
  --primary: hsl(265, 100%, 58%);
  --primary-hex: #9429FF;
  --primary-glow: hsl(265, 100%, 70%);
  --accent: hsl(14, 100%, 55%);
  --accent-hex: #FF471A;
  --accent-glow: hsl(20, 100%, 65%);
  --orange: var(--accent-hex);
  --amber: var(--accent-glow);
  --secondary: hsl(230, 60%, 15%);
  --border: hsl(230, 40%, 25%);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
  background-color: var(--base-dark-hex);
  background-image:
    linear-gradient(135deg, hsl(259, 65%, 10%), hsl(230, 60%, 8%)),
    linear-gradient(hsl(230, 40%, 30% / 0.1) 1px, transparent 1px),
    linear-gradient(90deg, hsl(230, 40%, 30% / 0.1) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  color: var(--fg-dark);
  overflow-x: hidden;
}

.font-heading { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; }
.font-serif-accent { font-family: 'Inter', system-ui, sans-serif; font-style: italic; }

/* ---------- Superficies de vidrio ---------- */
.glass {
  background: rgba(19, 21, 26, 0.40);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.glass-strong {
  background: rgba(23, 27, 38, 0.62);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ---------- Auras de fondo ---------- */
.aura {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(circle, var(--primary-hex), var(--accent-hex));
  filter: blur(110px);
  opacity: 0.18;
  z-index: 0;
}

/* ---------- Animaciones ---------- */
@keyframes slowFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
.animate-slow-float { animation: slowFloat 6s ease-in-out infinite; }

@keyframes auraPulse {
  0%, 100% { opacity: 0.14; }
  50%      { opacity: 0.28; }
}
.animate-aura-pulse { animation: auraPulse 10s ease-in-out infinite; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.fade-in-delayed { opacity: 0; animation: fadeIn 0.6s ease-out forwards; }
.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.20s; }
.delay-3 { animation-delay: 0.30s; }
.delay-4 { animation-delay: 0.40s; }

@keyframes spin360 { to { transform: rotate(360deg); } }
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--orange);
  border-radius: 9999px;
  animation: spin360 0.8s linear infinite;
}

/* ---------- Scrollbar fina ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 80, 0, 0.45); }

/* ---------- Inputs de vidrio ---------- */
.input-glass {
  background: rgba(17, 18, 20, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: #fff;
  width: 100%;
  transition: all 0.2s ease;
}
.input-glass::placeholder { color: #6B7280; }
.input-glass:focus {
  outline: none;
  border-color: rgba(255, 80, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 80, 0, 0.10);
}

/* ---------- Botones ---------- */
.btn-primary {
  background: #FFFFFF;
  color: #111214;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-primary:hover { transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }

.btn-orange {
  background: linear-gradient(135deg, #FF471A, #FFA366);
  color: #fff;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  box-shadow: 0 16px 48px -12px rgba(255, 80, 0, 0.45);
  transition: all 0.2s ease;
}
.btn-orange:hover { transform: scale(1.02); }
.btn-orange:active { transform: scale(0.98); }

.btn-glass {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.20); }

.btn-compact {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 9999px;
}
.btn-compact.btn-glass { padding: 0.55rem 1rem; }
.btn-compact.btn-orange { padding: 0.55rem 1rem; box-shadow: 0 10px 28px -10px rgba(255, 80, 0, 0.4); }

/* ---------- Utilidades ---------- */
.shadow-aura { box-shadow: 0 16px 48px -12px rgba(255, 80, 0, 0.18); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Hero image ---------- */
.hero-image-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px -12px rgba(255, 80, 0, 0.22);
}
.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 40%, rgba(11, 12, 14, 0.55) 100%),
    linear-gradient(to top, rgba(11, 12, 14, 0.35), transparent 28%),
    linear-gradient(to bottom, rgba(11, 12, 14, 0.2), transparent 22%);
}
.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- Category cards ---------- */
.category-card .category-visual {
  background: radial-gradient(circle at 50% 35%, rgba(255, 80, 0, 0.14), rgba(11, 12, 14, 0.2) 70%);
}
.category-card-marketing .category-label { color: #FFA366; }
.category-card-finanzas .category-label { color: #6EE7B7; }
.category-card-finanzas .category-visual {
  background: radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.16), rgba(11, 12, 14, 0.2) 70%);
}
.category-card-ventas .category-label { color: #93C5FD; }
.category-card-ventas .category-visual {
  background: radial-gradient(circle at 50% 35%, rgba(59, 130, 246, 0.16), rgba(11, 12, 14, 0.2) 70%);
}

/* ---------- Courses carousel ---------- */
#cursos {
  --course-card-width: 400px;
}
.courses-carousel-wrapper {
  position: relative;
  padding: 0.5rem 3.25rem 0.75rem;
}
.courses-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.courses-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0.5rem 0;
}
.courses-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(23, 27, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.courses-carousel-arrow:hover {
  background: rgba(255, 80, 0, 0.18);
  border-color: rgba(255, 157, 102, 0.45);
}
.courses-carousel-arrow:active { transform: translateY(-50%) scale(0.96); }
.courses-carousel-arrow--prev { left: 0; }
.courses-carousel-arrow--next { right: 0; }
.courses-carousel-arrow.hidden { display: none; }
.landing-course-card {
  width: min(var(--course-card-width), 86vw);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}
.landing-course-card__article {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.landing-course-cover {
  flex-shrink: 0;
  background: #0B0C0E;
  line-height: 0;
}
.landing-course-cover__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}
.landing-course-title {
  font-size: 1.3125rem;
  line-height: 1.35;
}
.landing-course-price {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.landing-course-body {
  min-height: 0;
}
.landing-course-body__desc {
  min-height: 3.5rem;
}
.landing-course-card .landing-course-actions {
  margin-top: 0.875rem;
}
.landing-course-card .landing-course-actions .btn-compact {
  padding: 0.6rem 1.05rem;
  font-size: 0.9375rem;
}
.landing-course-card article .p-6 {
  padding: 1.375rem 1.5rem 1.5rem;
}
.landing-course-card article h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.landing-course-card article p.text-sm,
.landing-course-card article .landing-course-body__desc {
  font-size: 0.9375rem;
  margin-bottom: 1.125rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  #cursos { --course-card-width: 400px; }
  .landing-course-card article h3 { font-size: 1.1875rem; }
  .landing-course-title { font-size: 1.375rem; }
  .landing-course-price { font-size: 1.25rem; }
  .courses-carousel-wrapper { padding: 0.5rem 3.75rem 0.75rem; }
}

@media (max-width: 767px) {
  #cursos {
    --course-card-width: min(calc(100vw - 4rem), 420px);
  }
  .courses-carousel-wrapper--mobile {
    padding: 0.5rem 2rem 0.75rem;
  }
  .courses-carousel-wrapper--mobile .courses-carousel-viewport {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
  }
  .courses-carousel-wrapper--mobile .courses-carousel-track {
    gap: 0.625rem;
    padding-inline: max(0px, calc((100vw - var(--course-card-width)) / 2 - 2rem));
  }
  .courses-carousel-wrapper--mobile .landing-course-card {
    width: var(--course-card-width);
    max-width: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .courses-carousel-wrapper--mobile .landing-course-title {
    font-size: 1.375rem;
  }
  .courses-carousel-wrapper--mobile .landing-course-price {
    font-size: 1.25rem;
  }
  .courses-carousel-wrapper--mobile .landing-course-card article .p-6 {
    padding: 1.25rem 1.375rem 1.375rem;
  }
  .courses-carousel-wrapper--mobile .landing-course-card article h3 {
    font-size: 1.1875rem;
  }
  .courses-carousel-wrapper--mobile .landing-course-card article p.text-sm {
    font-size: 0.9375rem;
  }
  .courses-carousel-wrapper--mobile .landing-course-actions {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  .courses-carousel-wrapper--mobile .landing-course-actions .btn-compact {
    width: 100%;
    flex: none;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
  }
  .courses-carousel-arrow {
    width: 2.35rem;
    height: 2.35rem;
  }
  .courses-carousel-arrow--prev { left: 0.1rem; }
  .courses-carousel-arrow--next { right: 0.1rem; }
  .courses-carousel-arrow.is-hint {
    animation: carouselNudgeRight 1.5s ease-in-out infinite;
    border-color: rgba(255, 157, 102, 0.55);
    background: rgba(255, 80, 0, 0.22);
  }
  .courses-carousel-arrow.is-disabled:not(.is-hint) {
    opacity: 0.35;
    pointer-events: none;
  }
}

@keyframes carouselNudgeRight {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
    box-shadow: 0 8px 32px -8px rgba(255, 80, 0, 0.35);
  }
  50% {
    transform: translateY(-50%) translateX(5px);
    box-shadow: 0 10px 36px -6px rgba(255, 80, 0, 0.55);
  }
}

/* ---------- Todo en uno ---------- */
.todo-en-uno-visual {
  width: 100%;
  max-width: 42rem;
}
.todo-en-uno-img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .todo-en-uno-visual {
    max-width: min(100%, 22rem);
  }
}

/* ---------- Bento grid (mapas) ---------- */
.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.bento-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bento-card:hover {
  border-color: rgba(255, 80, 0, 0.22);
  box-shadow: 0 20px 56px -16px rgba(255, 80, 0, 0.14);
}
.bento-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 80, 0, 0.12);
  border: 1px solid rgba(255, 157, 102, 0.2);
}
.bento-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}
.bento-list-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FF471A, #FFA366);
  flex-shrink: 0;
}
.bento-accent {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFA366;
  white-space: nowrap;
}
.bento-stat {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.bento-stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7280;
}
.bento-stat-value {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFA366;
  margin-top: 0.25rem;
}
.bento-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 80, 0, 0.1);
  border: 1px solid rgba(255, 157, 102, 0.22);
  color: #FFA366;
}
.bento-bar {
  height: 0.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bento-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FF471A, #FFA366);
}
.bento-bar--muted span {
  background: rgba(255, 255, 255, 0.15);
}
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.125rem;
  }
  .bento-card--wide:first-child {
    grid-column: 1 / 9;
    min-height: 18.5rem;
  }
  .bento-card--narrow:nth-child(2) {
    grid-column: 9 / 13;
    min-height: 18.5rem;
  }
  .bento-card--narrow:nth-child(3) {
    grid-column: 1 / 6;
    min-height: 16.5rem;
  }
  .bento-card--wide:last-child {
    grid-column: 6 / 13;
    min-height: 16.5rem;
  }
}

/* ---------- CTA final ---------- */
.section-cta-final {
  isolation: isolate;
}
.cta-final-glow {
  position: absolute;
  left: 50%;
  bottom: -35%;
  transform: translateX(-50%);
  width: min(120vw, 56rem);
  height: min(80vw, 28rem);
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 80, 0, 0.22) 0%,
    rgba(255, 157, 102, 0.1) 42%,
    transparent 72%
  );
  filter: blur(48px);
  animation: auraPulse 10s ease-in-out infinite;
}
.btn-cta-light {
  background: #ffffff;
  color: #111214;
  border-radius: 9999px;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 40px -12px rgba(255, 255, 255, 0.15);
}
.btn-cta-light:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px -10px rgba(255, 255, 255, 0.22);
}
.btn-cta-light:active { transform: scale(0.98); }
.btn-cta-gradient {
  background: linear-gradient(135deg, #FF471A 0%, #FF7A33 50%, #FFA366 100%);
  color: #fff;
  border-radius: 9999px;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 48px -12px rgba(255, 80, 0, 0.5);
}
.btn-cta-gradient:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 56px -10px rgba(255, 80, 0, 0.58);
}
.btn-cta-gradient:active { transform: scale(0.98); }
@media (min-width: 640px) {
  .cta-final-actions a {
    min-width: 13.5rem;
  }
}

/* ---------- Mobile landing (max 767px) — escritorio intacto ---------- */
@media (max-width: 767px) {
  /* Nav hamburguesa */
  .nav-hamburger {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .nav-hamburger:hover,
  .nav-hamburger[aria-expanded="true"] {
    background: rgba(255, 80, 0, 0.15);
    border-color: rgba(255, 157, 102, 0.35);
  }
  .mobile-nav {
    position: absolute;
    top: calc(100% + 0.625rem);
    left: 0;
    right: 0;
    padding: 0.75rem;
    border-radius: 1.5rem;
    background: rgba(23, 27, 38, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .mobile-nav[hidden] {
    display: none;
  }
  .mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #9CA3AF;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .mobile-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }
  .mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.35rem 0;
  }
  .mobile-nav-cta {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
  }

  /* Hero */
  .hero-copy {
    text-align: center;
  }
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8125rem;
    padding: 0.45rem 0.875rem;
  }
  .hero-copy h1 {
    font-size: 2.625rem;
    line-height: 1.08;
  }
  .hero-copy p {
    font-size: 1.0625rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-actions .btn-orange,
  .hero-actions .btn-glass {
    flex: 1 1 auto;
    min-width: min(100%, 11.5rem);
    text-align: center;
    justify-content: center;
  }

  /* Impulso */
  .section-impulso .impulso-grid {
    text-align: center;
  }
  .section-impulso .impulso-title {
    text-align: center;
    font-size: 2rem;
    line-height: 1.15;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }
  .section-impulso .impulso-copy {
    text-align: center;
  }
  .section-impulso .impulso-actions {
    justify-content: center;
  }
}

/* ── Course landing (Platzi-style) ── */
.cl-review-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cl-review-card:hover {
  border-color: rgba(255, 80, 0, 0.15);
  transform: translateY(-2px);
}

/* ── Course landing — tarjeta compra (portada) ── */
.cl-purchase-card__cover {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cl-purchase-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ── Course landing — hero móvil (portada → título above the fold) ── */
@media (max-width: 1023px) {
  .cl-landing-main {
    gap: 0.75rem;
  }

  .cl-landing-back {
    margin-bottom: 0.125rem;
  }

  .cl-mobile-purchase {
    margin-bottom: 0.25rem;
  }

  .cl-purchase-card {
    border-radius: 1.25rem;
  }

  .cl-purchase-card__cover {
    aspect-ratio: 16 / 10;
  }

  .cl-purchase-card__body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "price price"
      "cta cta"
      "sub sub";
    gap: 0.5rem 0.75rem;
    padding: 0.75rem 1rem 1rem;
    align-items: center;
  }

  .cl-purchase-card__price {
    grid-area: price;
    margin: 0;
    text-align: left !important;
    font-size: 1.125rem !important;
    line-height: 1.2;
  }

  .cl-purchase-card__price-note {
    display: none;
  }

  .cl-purchase-card__body .btn-orange {
    grid-area: cta;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }

  .cl-purchase-card__subtext {
    grid-area: sub;
    justify-content: flex-start !important;
    text-align: left;
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .cl-purchase-card__subtext span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cl-landing-header {
    margin-top: 0.125rem;
  }

  .cl-landing-title {
    margin-top: 0;
  }

  .cl-landing-rating .flex {
    margin-top: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .cl-landing-rating .text-xl {
    font-size: 1rem !important;
  }

  .cl-landing-rating .text-lg {
    font-size: 0.9375rem !important;
  }

  .cl-landing-badges {
    display: none;
  }

  .cl-landing-description {
    margin-top: 0.25rem;
  }
}

@media (min-width: 1024px) {
  .cl-purchase-card__cover {
    aspect-ratio: 16 / 9;
  }

  .cl-purchase-card__body .btn-orange {
    margin-top: 0.25rem;
  }

  .cl-purchase-card__price,
  .cl-purchase-card__price-note {
    margin-bottom: 0.25rem;
  }

  .cl-purchase-card__subtext {
    margin-top: 0.75rem;
  }
}

/* ── Class viewer (Platzi-style) ── */
.class-viewer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.class-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.class-topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .class-topbar-inner {
    padding: 0.875rem 1.5rem;
    padding-left: calc(4rem + 1rem);
  }
}

.class-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.class-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 80, 0, 0.25);
}
.class-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.class-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.class-layout {
  display: flex;
  flex: 1;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .class-layout {
    flex-direction: row;
    align-items: stretch;
  }
}

.class-main {
  flex: 1;
  min-width: 0;
  padding: 1rem 1rem 2rem;
}

@media (min-width: 768px) {
  .class-main {
    padding: 1.25rem 1.5rem 2.5rem;
    padding-left: calc(4rem + 1.25rem);
  }
}

@media (min-width: 1024px) {
  .class-main {
    padding-right: 2rem;
  }
}

.class-video-section {
  max-width: 56rem;
  margin: 0 auto 1.5rem;
}

.class-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px -12px rgba(255, 80, 0, 0.08);
}

@media (min-width: 768px) {
  .class-video-frame {
    border-radius: 1.75rem;
  }
}

.class-video-frame iframe,
.class-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.class-video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 1.5rem;
  text-align: center;
}

.class-lesson-meta {
  max-width: 56rem;
  margin: 0 auto;
}

.class-lesson-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9d66;
  margin-bottom: 0.5rem;
}

.class-sidebar {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 21, 26, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-height: 24rem;
}

@media (min-width: 1024px) {
  .class-sidebar {
    width: min(24rem, 34vw);
    flex-shrink: 0;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 3.75rem;
    height: calc(100vh - 3.75rem);
    max-height: calc(100vh - 3.75rem);
  }
}

.class-progress-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.class-progress-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}
.class-progress-panel summary::-webkit-details-marker {
  display: none;
}
.class-progress-panel[open] .class-progress-chevron {
  transform: rotate(180deg);
}

.class-progress-bar {
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.5rem;
}
.class-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5000, #ff9d66);
  transition: width 0.3s ease;
}

.class-class-list {
  max-height: 14rem;
  overflow-y: auto;
  padding: 0 0.75rem 0.75rem;
}

.class-class-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  transition: background 0.15s;
}
.class-class-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.class-class-item.is-active {
  background: rgba(255, 80, 0, 0.12);
  border: 1px solid rgba(255, 80, 0, 0.2);
}

.class-comments-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.class-comments-head {
  padding: 1rem 1rem 0.75rem;
  flex-shrink: 0;
}

.class-comments-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem 1rem;
  min-height: 8rem;
}

.class-comment-form-wrap {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(11, 12, 14, 0.4);
}

.class-comment-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.class-comment-form:focus-within {
  border-color: rgba(255, 80, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.08);
}
.class-comment-form textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  min-height: 2.5rem;
  max-height: 6rem;
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.45;
}
.class-comment-form textarea::placeholder {
  color: #6b7280;
}

.class-mobile-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .class-mobile-tabs {
    display: none;
  }
}

.class-tab-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  transition: all 0.2s;
}
.class-tab-btn.is-active {
  background: rgba(255, 80, 0, 0.15);
  border-color: rgba(255, 80, 0, 0.35);
  color: #fff;
}

.class-resources-block {
  max-width: 56rem;
  margin: 1.25rem auto 0;
}
.class-resources-block.is-hidden-mobile {
  display: none;
}
@media (min-width: 1024px) {
  .class-resources-block.is-hidden-mobile {
    display: block;
  }
}

.class-tab-panel.is-hidden {
  display: none !important;
}

@media (min-width: 1024px) {
  .class-sidebar-mobile-only {
    display: none;
  }
  .class-layout .class-sidebar {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .class-layout .class-sidebar.class-sidebar-desktop {
    display: none;
  }
  .class-sidebar-mobile-only {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
