/* Aula (alumno): layout ancho + acento alineado a --color-primary / --color-glow del sitio (sin menta/teal) */

/* Footer al fondo cuando el contenido es corto */
body.public-site.aula-area {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.public-site.aula-area > .site-header,
body.public-site.aula-area > .site-footer {
  flex-shrink: 0;
  width: 100%;
}

body.public-site.aula-area > .main.aula-main-full {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.public-site.aula-area .aula-page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

body.public-site.aula-area .aula-page__body {
  flex: 1 0 auto;
}

body.public-site .main.aula-main-full {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
  background: #f4f5f7;
}

body.public-site .main.aula-main-full a:not(.btn):not(.btn-primary):not(.btn-secondary) {
  color: var(--color-primary, #b07d5b);
  border-bottom: none;
}

body.public-site .main.aula-main-full a:not(.btn):not(.btn-primary):not(.btn-secondary):hover {
  color: var(--color-accent, #5c4a3d);
  border-bottom: 1px solid rgba(176, 125, 91, 0.35);
}

body.public-site .main.aula-main-full .btn.btn-primary {
  background: linear-gradient(180deg, #c9a082 0%, var(--color-primary, #b07d5b) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(176, 125, 91, 0.32);
  font-weight: 700;
}

body.public-site .main.aula-main-full .btn.btn-primary:hover {
  filter: brightness(1.05);
}

body.public-site .main.aula-main-full .btn.btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

body.public-site .main.aula-main-full .btn.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.aula-area .aula-toolbar {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0;
  padding: 0.65rem 0;
  background: linear-gradient(180deg, #12151c 0%, #0b0c0e 100%);
  color: #e8eaef;
  border-bottom: 1px solid rgba(176, 125, 91, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 40;
}

.aula-toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

.aula-toolbar-brand {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-decoration: none;
  min-width: 0;
}

.aula-toolbar-brand:hover {
  color: var(--color-glow, #e3c598);
}

.aula-toolbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.aula-toolbar-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #f8fafc;
  border-radius: 1px;
  transition: transform 0.2s ease;
}

body.aula-toolbar-open .aula-toolbar-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.aula-toolbar-open .aula-toolbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.aula-toolbar-open .aula-toolbar-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.aula-toolbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.aula-toolbar-nav a {
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  font-weight: 600;
  white-space: nowrap;
}

.aula-toolbar-nav a:hover {
  color: var(--color-glow, #e3c598);
}

.aula-toolbar-nav .linkish {
  background: none;
  border: 0;
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.aula-toolbar-nav .linkish:hover {
  color: var(--color-glow, #e3c598);
}

@media (max-width: 639px) {
  .aula-toolbar-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .aula-toolbar-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: max(1rem, env(safe-area-inset-right));
    left: max(1rem, env(safe-area-inset-left));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border-radius: 14px;
    background: #12151c;
    border: 1px solid rgba(176, 125, 91, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 50;
  }

  .aula-toolbar-nav--open {
    display: flex;
  }

  .aula-toolbar-nav a,
  .aula-toolbar-nav .linkish {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
  }

  .aula-toolbar-nav a:hover,
  .aula-toolbar-nav .linkish:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .aula-toolbar-nav {
    gap: 0.65rem;
  }
}

.aula-page {
  width: 100%;
}

.aula-page__body {
  width: 100%;
}

.aula-page__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) max(1.25rem, env(safe-area-inset-left)) 0
    max(1.25rem, env(safe-area-inset-right));
}

.aula-page__inner--course {
  max-width: 900px;
}

.aula-course-modules {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aula-page__inner--course > .aula-err:not([hidden]) {
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(163, 32, 32, 0.08);
  border: 1px solid rgba(163, 32, 32, 0.22);
}

/* Home: hero a todo ancho */
.aula-home-hero {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(176, 125, 91, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #1a2332 0%, #0b0c0e 100%);
  color: #f1f5f9;
  padding: clamp(2.25rem, 5vw, 3.75rem) max(1.25rem, env(safe-area-inset-left)) clamp(2rem, 4vw, 3rem)
    max(1.25rem, env(safe-area-inset-right));
  margin-bottom: 0;
}

.aula-home-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.aula-home-hero__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-glow, #e3c598);
}

.aula-home-hero h1 {
  margin: 0 0 0.85rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
}

.aula-home-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.82);
}

.aula-page--home-logged .aula-page__body {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.aula-dash-header--home {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
}

.aula-home-logged-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-glow, #e3c598);
}

.aula-dash-header--home h1 {
  font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.aula-home-courses {
  margin-bottom: 0.5rem;
}

.aula-home-courses-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.aula-home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.aula-home-stat {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 4px 18px rgba(11, 12, 14, 0.05);
}

.aula-home-stat__num {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.aula-home-stat__lab {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.aula-home-stat--active {
  border-color: rgba(34, 139, 84, 0.25);
  background: linear-gradient(180deg, #fff 0%, rgba(240, 253, 244, 0.85) 100%);
}

.aula-home-stat--active .aula-home-stat__num {
  color: #166534;
}

.aula-home-stat--pending {
  border-color: rgba(180, 130, 50, 0.28);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 251, 235, 0.9) 100%);
}

.aula-home-stat--pending .aula-home-stat__num {
  color: #92400e;
}

.aula-home-stat--revoked {
  border-color: rgba(163, 32, 32, 0.2);
  background: linear-gradient(180deg, #fff 0%, rgba(254, 242, 242, 0.85) 100%);
}

.aula-home-stat--revoked .aula-home-stat__num {
  color: #991b1b;
}

.aula-course-section__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.aula-course-section__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.aula-course-section__dot--active {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.aula-course-section__dot--pending {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.aula-course-section__dot--revoked {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.aula-course-section__count {
  font-weight: 600;
  color: #94a3b8;
}

.aula-course-section--pending .aula-course-section__title {
  color: #78350f;
}

.aula-course-section--revoked .aula-course-section__title {
  color: #7f1d1d;
}

.aula-course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .aula-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .aula-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.aula-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e4ea;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(11, 12, 14, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.aula-course-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  z-index: 2;
}

.aula-course-card--active {
  border-color: rgba(34, 139, 84, 0.22);
}

.aula-course-card--active::before {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
}

.aula-course-card--active:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(11, 12, 14, 0.12);
  border-color: rgba(176, 125, 91, 0.45);
}

.aula-course-card--pending {
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.aula-course-card--pending::before {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

.aula-course-card--revoked {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  filter: grayscale(0.35);
}

.aula-course-card--revoked::before {
  background: linear-gradient(180deg, #f87171 0%, #b91c1c 100%);
}

.aula-course-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1a2332 0%, #0b0c0e 100%);
  overflow: hidden;
}

.aula-course-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.aula-course-card--active:hover .aula-course-card__img {
  transform: scale(1.04);
}

.aula-course-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(227, 197, 152, 0.55);
}

.aula-course-card__overlay-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.aula-course-card__overlay-badge--active {
  background: rgba(22, 101, 52, 0.88);
  color: #ecfdf5;
}

.aula-course-card__overlay-badge--pending {
  background: rgba(146, 64, 14, 0.9);
  color: #fffbeb;
}

.aula-course-card__overlay-badge--revoked {
  background: rgba(127, 29, 29, 0.88);
  color: #fef2f2;
}

.aula-course-card__format {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.aula-course-card__format svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.aula-course-card__format--platform {
  background: rgba(176, 125, 91, 0.88);
}

.aula-course-card__format--pdf {
  background: rgba(51, 65, 85, 0.88);
}

.aula-course-card__format--live {
  background: rgba(127, 29, 29, 0.82);
}

.aula-course-card__format--hybrid {
  background: rgba(30, 64, 175, 0.82);
}

.aula-course-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}

.aula-course-card--revoked .aula-course-card__veil {
  background: rgba(248, 250, 252, 0.55);
}

.aula-course-card__body {
  padding: 1rem 1.25rem 0.65rem;
  flex: 1 1 auto;
}

.aula-course-card__stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed #e8ecf1;
}

.aula-course-card__stat-num {
  font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary, #b07d5b);
}

.aula-course-card--pending .aula-course-card__stat-num {
  color: #b45309;
}

.aula-course-card--revoked .aula-course-card__stat-num {
  color: #94a3b8;
}

.aula-course-card__stat-lab {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.aula-course-card__badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aula-course-card__badge--active {
  background: rgba(34, 139, 84, 0.12);
  color: #166534;
}

.aula-course-card__badge--pending {
  background: rgba(180, 130, 50, 0.14);
  color: #92400e;
}

.aula-course-card__badge--revoked {
  background: rgba(163, 32, 32, 0.1);
  color: #991b1b;
}

.aula-course-card__title {
  margin: 0 0 0.5rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
}

.aula-course-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}

.aula-course-card__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.aula-course-card__meta-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.aula-course-card__meta-pill--modules {
  background: rgba(176, 125, 91, 0.12);
  color: #7c5a42;
}

.aula-course-card__meta-pill--date {
  background: #eef2ff;
  color: #4338ca;
}

.aula-course-card__meta-pill--warn {
  background: #fef3c7;
  color: #92400e;
}

.aula-course-card__meta li {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.aula-course-card__foot {
  padding: 0.85rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  border-top: 1px solid #eef1f5;
  margin-top: auto;
}

.aula-course-card__cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.aula-course-card__link-secondary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary, #b07d5b);
  text-decoration: none;
}

.aula-course-card__link-secondary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aula-course-card__status-msg {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.aula-course-card__status-msg--pending {
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.aula-course-card__status-msg--revoked {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.aula-dash-header {
  background: linear-gradient(180deg, #12151c 0%, #0b0c0e 100%);
  color: #f8fafc;
  padding: clamp(1.35rem, 3vw, 2rem) 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(176, 125, 91, 0.2);
}

.aula-dash-header__inner {
  padding-top: 0;
  padding-bottom: 0;
}

.aula-dash-header h1 {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.aula-dash-header__sub {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: rgba(203, 213, 225, 0.88);
  max-width: 42rem;
  line-height: 1.5;
}

.aula-profile-card {
  background: #fff;
  border: 1px solid #e2e4ea;
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 12px 40px rgba(11, 12, 14, 0.06);
}

.aula-form--profile-grid {
  display: grid;
  gap: 0.85rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .aula-form--profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aula-form--profile-grid .aula-field--full {
    grid-column: 1 / -1;
  }
}

.aula-form--profile-grid label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 0.35rem;
}

.aula-form--profile-grid input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  background: #f8fafc;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.aula-form--profile-grid input:focus:not(:disabled) {
  outline: none;
  border-color: var(--color-primary, #b07d5b);
  box-shadow: 0 0 0 3px rgba(176, 125, 91, 0.2);
  background: #fff;
}

.aula-form--profile-grid input:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.aula-form-actions-row {
  margin-top: 0.5rem;
}

.aula-form-actions-row .btn {
  margin-top: 0;
}

.aula-hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}

.aula-hint--footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e4ea;
}

.aula-shell {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 max(1.25rem, env(safe-area-inset-left)) 0 max(1.25rem, env(safe-area-inset-right));
}

.aula-shell--wide {
  max-width: 1100px;
}

.aula-shell h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.aula-lead {
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.aula-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.aula-card {
  background: #fff;
  border: 1px solid #e2e4ea;
  border-radius: 14px;
  padding: 1.35rem 1.45rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(11, 12, 14, 0.05);
}

.aula-card--elevated {
  box-shadow: 0 14px 44px rgba(11, 12, 14, 0.08);
}
.aula-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.aula-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0.75rem 0 0.25rem;
}
.aula-form input,
.aula-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d8cfc4;
  border-radius: 8px;
  font: inherit;
}
.aula-form .btn {
  margin-top: 1rem;
}
.aula-err {
  color: #a32020;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.aula-enroll-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aula-enroll-list li {
  margin-bottom: 0.5rem;
}
.aula-enroll-list a {
  color: var(--color-primary, #b07d5b);
  font-weight: 600;
  text-decoration: none;
}

.aula-enroll-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* --- Módulos del Curso: Diseño Premium --- */
.aula-module {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  margin-bottom: 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(11, 12, 14, 0.04);
  overflow: hidden;
  scroll-margin-top: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.aula-module:hover {
  box-shadow: 0 20px 48px rgba(11, 12, 14, 0.07);
}

.aula-module__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #cbd5e1;
}

.aula-module--open .aula-module__accent {
  background: linear-gradient(180deg, var(--color-primary, #b07d5b) 0%, var(--color-glow, #e3c598) 100%);
}

.aula-module--done .aula-module__accent {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
}

.aula-module--locked {
  opacity: 0.8;
  box-shadow: 0 4px 18px rgba(11, 12, 14, 0.03);
}

.aula-module--locked .aula-module__accent {
  background: #94a3b8;
}

.aula-module--final {
  border-color: rgba(184, 149, 108, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
}

.aula-module--empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.aula-module__inner {
  padding: 1.5rem 1.75rem 1.75rem;
}

.aula-module-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.aula-module__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
}

.aula-module--open .aula-module__num {
  background: linear-gradient(135deg, var(--color-primary, #b07d5b) 0%, #8f6247 100%);
  box-shadow: 0 4px 12px rgba(176, 125, 91, 0.25);
}

.aula-module--done .aula-module__num {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.aula-module--locked .aula-module__num {
  background: #cbd5e1;
  color: #64748b;
  box-shadow: none;
}

.aula-module__num--final {
  background: linear-gradient(135deg, var(--color-glow, #e3c598) 0%, var(--color-primary, #b07d5b) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(184, 149, 108, 0.25);
}

.aula-module-head__text {
  flex: 1;
  min-width: 0;
}

.aula-module-head h2 {
  margin: 0 0 0.25rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.25;
}

.aula-module__type {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.aula-module-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.aula-module-locked svg {
  color: #94a3b8;
  animation: pulse 2s infinite ease-in-out;
}

.aula-module-locked p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.aula-module__content {
  margin-bottom: 0.75rem;
}

.aula-module__actions {
  padding-top: 1.25rem;
  margin-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.aula-module__cta {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.aula-module__done-msg {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #15803d;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.aula-module__done-msg svg {
  flex-shrink: 0;
  color: #22c55e;
}

.aula-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
}

.aula-badge--open {
  background: rgba(176, 125, 91, 0.12);
  color: #7c5a42;
}

.aula-badge--done {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.aula-module-body {
  line-height: 1.7;
  font-size: 1rem;
  color: #334155;
  margin-bottom: 1.5rem;
}

.aula-module-body p {
  margin: 0 0 1rem;
}

.aula-module-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.aula-mod-hero {
  margin-bottom: 1.25rem;
  border-radius: 18px;
  overflow: hidden;
}

.aula-mod-hero--icon {
  border-radius: 18px;
}

.aula-mod-cover {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.aula-mod-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(184, 149, 108, 0.2);
  color: var(--color-glow, #e3c598);
}

.aula-mod-icon-wrap svg {
  flex-shrink: 0;
  opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(184, 149, 108, 0.3));
}

.aula-mod-intro {
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #475569;
  font-size: 1rem;
  font-weight: 500;
  border-left: 3px solid var(--color-primary, #b07d5b);
  padding-left: 1rem;
}

/* --- Panel de Lectores PDF --- */
.aula-pdf-panel {
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.aula-pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.aula-pdf-toolbar__hint {
  margin: 0;
  flex: 1 1 250px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

.aula-pdf-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.aula-pdf-btn {
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: 600;
}

.aula-pdf-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #2b2e33;
  overflow-y: auto;
  max-height: 75vh;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.aula-pdf-container:fullscreen {
  max-height: 100vh !important;
  padding: 2rem;
  background: #1e1e1e;
}

.aula-pdf-container:-webkit-full-screen {
  max-height: 100vh !important;
  padding: 2rem;
  background: #1e1e1e;
}

.aula-pdf-page-wrapper {
  position: relative;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  background: #ffffff;
  border-radius: 4px;
  line-height: 0;
  max-width: 100%;
  display: inline-block;
}

.aula-pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}

.aula-pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #94a3b8;
  gap: 0.75rem;
  font-weight: 500;
  width: 100%;
}

.aula-pdf-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 4px solid rgba(176, 125, 91, 0.15);
  border-left-color: var(--color-primary, #b07d5b);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.aula-pdf-missing {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #991b1b;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* --- Cuestionarios interactivos (Quiz) --- */
.aula-quiz h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.aula-quiz-card {
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #faf7f2 0%, #ffffff 100%);
  border: 1px solid rgba(184, 149, 108, 0.25);
  box-shadow: 0 10px 30px rgba(184, 149, 108, 0.05);
}

.aula-quiz-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: var(--color-primary, #b07d5b);
}

.aula-quiz-q {
  margin: 0 0 1.5rem;
  border: 0;
  padding: 0;
}

.aula-quiz-q legend {
  font-weight: 700;
  font-size: 1.02rem;
  color: #1e293b;
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.aula-quiz-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: #475569;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 0.55rem;
}

.aula-quiz-choice:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.aula-quiz-choice:has(input[type="radio"]:checked) {
  border-color: var(--color-primary, #b07d5b);
  background: rgba(176, 125, 91, 0.05);
  color: #6b4c38;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(176, 125, 91, 0.08);
}

.aula-quiz-choice input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, #b07d5b);
  cursor: pointer;
}

/* --- Caja de Diploma / Certificado --- */
.aula-cert-box {
  margin-top: 2rem;
  padding: 1.75rem;
  border: 2px solid rgba(184, 149, 108, 0.35);
  border-radius: 24px;
  background: linear-gradient(135deg, #fbf7f0 0%, #ffffff 50%, #fdfcf7 100%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 20px 50px rgba(176, 125, 91, 0.14);
  position: relative;
  overflow: hidden;
  animation: shineGlow 6s infinite alternate;
}

@keyframes shineGlow {
  0% { border-color: rgba(184, 149, 108, 0.3); box-shadow: 0 15px 40px rgba(176, 125, 91, 0.1); }
  100% { border-color: rgba(184, 149, 108, 0.55); box-shadow: 0 25px 60px rgba(176, 125, 91, 0.18); }
}

.aula-cert-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 100% 0%, rgba(227, 197, 152, 0.15), transparent 45%);
  pointer-events: none;
}

.aula-cert-box__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #e3c598 0%, #b8956c 50%, #8a6848 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(184, 149, 108, 0.35);
  animation: sealFloat 4s ease-in-out infinite;
}

@keyframes sealFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.aula-cert-box__body {
  flex: 1;
}

.aula-cert-box__body h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.aula-cert-box__body .aula-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

.aula-cert-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.aula-cert-box .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(90deg, #b8956c 0%, #d4a574 50%, #b8956c 100%);
  background-size: 200% auto;
  box-shadow: 0 8px 20px rgba(184, 149, 108, 0.28);
  transition: all 0.3s ease;
  animation: shineBtn 3s infinite;
}

.aula-cert-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(184, 149, 108, 0.38);
}

@keyframes shineBtn {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (max-width: 640px) {
  .aula-cert-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }
}

/* --- Vista curso (player) --- */
.aula-page--course .aula-page__inner--course {
  max-width: 1200px;
}

.aula-course-hero {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  background: radial-gradient(ellipse at 50% 0%, rgba(184, 149, 108, 0.15) 0%, rgba(11, 12, 14, 0) 75%), linear-gradient(180deg, #111317 0%, #17191e 100%);
  color: #f8fafc;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(184, 149, 108, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.aula-course-hero__inner {
  max-width: 1200px;
}

.aula-course-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-glow, #e3c598);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.aula-course-back::before {
  content: '←';
  font-size: 0.95rem;
  line-height: 1;
}

.aula-course-back:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.aula-course-hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.aula-course-progress__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.aula-course-progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary, #b07d5b) 0%, var(--color-glow, #e3c598) 100%);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(184, 149, 108, 0.4);
}

.aula-course-progress__label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(241, 245, 249, 0.85);
}

.aula-course-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .aula-course-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.aula-course-nav-wrap {
  position: relative;
  min-width: 0;
}

@media (max-width: 959px) {
  .aula-course-nav-wrap {
    margin-bottom: 0.5rem;
  }

  .aula-course-nav {
    padding: 1rem;
    border-radius: 20px;
  }

  .aula-course-nav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    margin: 0 -0.25rem;
  }

  .aula-course-nav__item {
    margin: 0;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .aula-course-nav__item a {
    white-space: nowrap;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
  }

  .aula-course-nav__item--open a {
    border-color: var(--color-primary, #b07d5b) !important;
  }
}

@media (min-width: 960px) {
  .aula-course-nav-wrap {
    position: sticky;
    top: 1.5rem;
  }
}

.aula-course-nav {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(11, 12, 14, 0.04);
}

.aula-course-nav__title {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.aula-course-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aula-course-nav__item a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.aula-course-nav__item a:hover {
  background: #f8fafc;
  color: var(--color-primary, #b07d5b);
}

.aula-course-nav__item--done a {
  color: #15803d;
  background: rgba(34, 197, 94, 0.04);
}

.aula-course-nav__item--done a::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  margin-right: 0.55rem;
  flex-shrink: 0;
}

.aula-course-nav__item--open a {
  background: rgba(176, 125, 91, 0.08);
  color: #6b4c38;
  font-weight: 700;
  border-color: rgba(176, 125, 91, 0.15);
}

.aula-course-nav__item--open a::before {
  content: '•';
  color: var(--color-primary, #b07d5b);
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 0.55rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  display: inline-block;
}

.aula-course-nav__item--locked a {
  color: #94a3b8;
  cursor: not-allowed;
}

.aula-course-nav__item--locked a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.55rem;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.aula-course-nav__item--final a {
  color: var(--color-primary, #b07d5b);
  font-weight: 700;
  background: rgba(184, 149, 108, 0.06);
  border: 1px dashed rgba(184, 149, 108, 0.28);
}

.aula-course-nav__item--final a::before {
  content: '★';
  color: var(--color-primary, #b07d5b);
  margin-right: 0.55rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
  display: inline-block;
}

.aula-course-main-col {
  min-width: 0;
}

.aula-course-no-access {
  max-width: 520px;
  margin: 1.5rem auto;
  text-align: center;
}

.aula-cert-box h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

/* --- Aula: registro / ingreso (full width, split hero + card) --- */
body.public-site .main.aula-auth-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f4f5f7;
}

body.public-site .main.aula-auth-main .btn.btn-primary {
  background: linear-gradient(180deg, #c9a082 0%, var(--color-primary, #b07d5b) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(176, 125, 91, 0.32);
  font-weight: 700;
}

body.public-site .main.aula-auth-main .btn.btn-primary:hover {
  filter: brightness(1.05);
}

.aula-auth-page {
  display: grid;
  min-height: min(78vh, 52rem);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .aula-auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }
}

.aula-auth-page__hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 80% at 25% 15%, rgba(176, 125, 91, 0.14) 0%, transparent 55%),
    linear-gradient(165deg, #1a2332 0%, #0b0c0e 100%);
  color: #ede6dc;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
}

.aula-auth-page__hero-inner {
  max-width: min(38rem, 100%);
}

.aula-auth-page__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-glow, #e3c598);
}

.aula-auth-page__title {
  margin: 0 0 0.85rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #faf8f5;
}

.aula-auth-page__lead {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.78);
}

.aula-auth-page__bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(250, 248, 245, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.aula-auth-page__bullets li {
  margin-bottom: 0.5rem;
}

.aula-auth-page__bullets li::marker {
  color: rgba(231, 201, 143, 0.95);
}

.aula-auth-page__panel {
  background: #f4f5f7;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aula-auth-card {
  width: 100%;
  max-width: min(44rem, 100%);
  background: #fff;
  border: 1px solid #e2e4ea;
  border-radius: 18px;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.25rem);
  box-shadow: 0 16px 48px rgba(11, 12, 14, 0.08);
}

.aula-auth-card--narrow {
  max-width: min(28rem, 100%);
}

.aula-form-fieldset {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
  min-width: 0;
}

.aula-form-legend {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #e2e4ea;
}

.aula-form-grid {
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .aula-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aula-field--full {
    grid-column: 1 / -1;
  }
}

.aula-form--register .aula-field label,
.aula-form--login .aula-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: #3f3830;
}

.aula-form--register .aula-field input,
.aula-form--login .aula-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(26, 22, 18, 0.14);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aula-form--register .aula-field input:focus,
.aula-form--login .aula-field input:focus {
  outline: none;
  border-color: var(--color-primary, #b07d5b);
  box-shadow: 0 0 0 3px rgba(176, 125, 91, 0.22);
}

.aula-field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #7a726a;
}

.aula-form-actions {
  margin-top: 0.5rem;
}

.aula-form-submit {
  width: 100%;
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.aula-auth-card__switch {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(26, 22, 18, 0.08);
  font-size: 0.9rem;
  color: #5c544c;
  text-align: center;
}

.aula-auth-card__switch a {
  font-weight: 700;
  margin-left: 0.25rem;
}

body.public-site .aula-auth-card__switch a {
  color: var(--color-primary, #b07d5b);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 125, 91, 0.35);
}

body.public-site .aula-auth-card__switch a:hover {
  color: var(--color-accent, #5c4a3d);
  border-bottom-color: var(--color-accent, #5c4a3d);
}

.aula-auth-card .aula-err {
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(163, 32, 32, 0.08);
  border: 1px solid rgba(163, 32, 32, 0.22);
}

/* —— Aula inicio: estado vacío —— look “salon” con mesh, orbes y mechones brillantes —— */
.aula-home-empty {
  --aula-empty-glow: var(--color-glow, #e3c598);
  --aula-empty-rose: #c9a6a8;
  --aula-empty-gold: #d4a574;
  position: relative;
  margin-top: 0.5rem;
  padding: clamp(1.15rem, 3.2vw, 2rem) clamp(0.85rem, 2.2vw, 1.5rem);
  text-align: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(176, 125, 91, 0.28);
  background: linear-gradient(160deg, #fffefb 0%, #fdf6ee 38%, #faf0e8 72%, #fff9f4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 48px rgba(176, 125, 91, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: aulaEmptyFade 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aula-home-empty__mesh {
  position: absolute;
  inset: -40%;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(227, 197, 152, 0.45), transparent 50%),
    radial-gradient(ellipse 70% 45% at 85% 15%, rgba(201, 166, 168, 0.35), transparent 48%),
    radial-gradient(ellipse 60% 55% at 50% 100%, rgba(176, 125, 91, 0.22), transparent 55%),
    conic-gradient(from 200deg at 50% 50%, transparent, rgba(212, 165, 116, 0.12), transparent 40%);
  animation: aulaMeshDrift 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes aulaMeshDrift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(2%, -1%) rotate(2deg) scale(1.03);
  }
  66% {
    transform: translate(-2%, 1%) rotate(-1.5deg) scale(1.02);
  }
}

.aula-home-empty__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.aula-home-empty__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.65;
  animation: aulaBlobFloat 8s ease-in-out infinite;
}

.aula-home-empty__blob--a {
  width: min(55vw, 220px);
  height: min(55vw, 220px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(227, 197, 152, 0.9) 0%, rgba(176, 125, 91, 0.15) 70%);
  animation-delay: 0s;
}

.aula-home-empty__blob--b {
  width: min(45vw, 180px);
  height: min(45vw, 180px);
  bottom: -5%;
  right: -10%;
  background: radial-gradient(circle, rgba(201, 160, 130, 0.75) 0%, transparent 70%);
  animation-delay: -2.5s;
  animation-duration: 9.5s;
}

.aula-home-empty__blob--c {
  width: min(40vw, 160px);
  height: min(40vw, 160px);
  top: 35%;
  right: 5%;
  background: radial-gradient(circle, rgba(201, 166, 168, 0.55) 0%, transparent 68%);
  animation-delay: -4s;
  animation-duration: 11s;
}

@keyframes aulaBlobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6%, -4%) scale(1.08);
  }
}

.aula-home-empty__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aula-home-empty__sparkles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--aula-empty-glow) 45%, transparent 70%);
  box-shadow: 0 0 10px rgba(227, 197, 152, 0.9);
  animation: aulaSparkle 2.8s ease-in-out infinite;
  opacity: 0;
}

.aula-home-empty__sparkles span:nth-child(1) {
  top: 18%;
  left: 12%;
  animation-delay: 0s;
}
.aula-home-empty__sparkles span:nth-child(2) {
  top: 28%;
  right: 18%;
  animation-delay: -0.4s;
}
.aula-home-empty__sparkles span:nth-child(3) {
  bottom: 42%;
  left: 8%;
  animation-delay: -0.9s;
}
.aula-home-empty__sparkles span:nth-child(4) {
  bottom: 38%;
  right: 12%;
  animation-delay: -1.2s;
}
.aula-home-empty__sparkles span:nth-child(5) {
  top: 52%;
  left: 22%;
  animation-delay: -1.6s;
}
.aula-home-empty__sparkles span:nth-child(6) {
  top: 48%;
  right: 28%;
  animation-delay: -2.1s;
}

@keyframes aulaSparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.aula-home-empty__stage {
  position: relative;
  z-index: 1;
}

@keyframes aulaEmptyFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.aula-home-empty__hair {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.22rem;
  height: 4.25rem;
  margin: 0 auto 1.15rem;
  max-width: 10rem;
  filter: drop-shadow(0 6px 14px rgba(176, 125, 91, 0.35));
}

.aula-home-empty__strand {
  position: relative;
  display: block;
  width: 0.46rem;
  height: 2.75rem;
  border-radius: 50% 50% 50% 50% / 58% 58% 38% 38%;
  background: linear-gradient(
    185deg,
    #fff5e4 0%,
    var(--aula-empty-glow) 18%,
    var(--color-primary, #b07d5b) 42%,
    #9d6548 78%,
    #6b3f2c 100%
  );
  box-shadow:
    inset -2px 0 4px rgba(255, 255, 255, 0.45),
    inset 1px 0 3px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(139, 90, 58, 0.35);
  transform-origin: 50% 0%;
  animation: aulaStrandSway 2.5s ease-in-out infinite, aulaStrandSheen 3.2s ease-in-out infinite;
}

.aula-home-empty__strand::after {
  content: '';
  position: absolute;
  left: 15%;
  top: 8%;
  width: 35%;
  height: 55%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  opacity: 0.85;
  animation: aulaStrandHighlight 2.8s ease-in-out infinite;
}

.aula-home-empty__strand:nth-child(1) {
  height: 2.45rem;
  animation-delay: 0s, -0.2s;
}
.aula-home-empty__strand:nth-child(2) {
  height: 3.25rem;
  width: 0.5rem;
  animation-delay: -0.3s, -0.5s;
}
.aula-home-empty__strand:nth-child(3) {
  height: 3.55rem;
  width: 0.52rem;
  animation-delay: -0.55s, -0.9s;
}
.aula-home-empty__strand:nth-child(4) {
  height: 3.1rem;
  animation-delay: -0.85s, -1.1s;
}
.aula-home-empty__strand:nth-child(5) {
  height: 2.7rem;
  animation-delay: -1.15s, -1.35s;
}
.aula-home-empty__strand:nth-child(6) {
  height: 2.35rem;
  animation-delay: -1.45s, -1.6s;
}

@keyframes aulaStrandSway {
  0%,
  100% {
    transform: rotate(-8deg) scaleY(1);
  }
  50% {
    transform: rotate(11deg) scaleY(1.08);
  }
}

@keyframes aulaStrandSheen {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.12) saturate(1.15);
  }
}

@keyframes aulaStrandHighlight {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(12%);
  }
}

.aula-home-empty__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1a1410;
  text-shadow:
    0 0 28px rgba(227, 197, 152, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.8);
  animation: aulaTitlePulse 4s ease-in-out infinite;
}

@keyframes aulaTitlePulse {
  0%,
  100% {
    text-shadow:
      0 0 28px rgba(227, 197, 152, 0.45),
      0 1px 0 rgba(255, 255, 255, 0.8);
  }
  50% {
    text-shadow:
      0 0 42px rgba(176, 125, 91, 0.55),
      0 0 20px rgba(227, 197, 152, 0.4),
      0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

.aula-home-empty__text {
  margin: 0 auto 0.8rem;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #3d362f;
  max-width: 36rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.aula-home-empty__text:last-of-type {
  margin-bottom: 1.05rem;
}

.aula-home-empty__cta {
  margin-top: 0.4rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(176, 125, 91, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  animation: aulaCtaGlow 2.8s ease-in-out infinite;
}

.aula-home-empty__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: aulaCtaShine 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes aulaCtaGlow {
  0%,
  100% {
    box-shadow:
      0 4px 20px rgba(176, 125, 91, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  }
  50% {
    box-shadow:
      0 6px 28px rgba(176, 125, 91, 0.55),
      0 0 24px rgba(227, 197, 152, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  }
}

@keyframes aulaCtaShine {
  0% {
    left: -120%;
  }
  40%,
  100% {
    left: 160%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aula-home-empty,
  .aula-home-empty__mesh,
  .aula-home-empty__blob,
  .aula-home-empty__sparkles span,
  .aula-home-empty__strand,
  .aula-home-empty__strand::after,
  .aula-home-empty__title,
  .aula-home-empty__cta,
  .aula-home-empty__cta::before {
    animation: none !important;
  }

  .aula-home-empty__mesh {
    opacity: 0.35;
  }
}

/* ==========================================================================
   REFRESH MEJORADO: Nuevas Clases Premium, Modales, Confeti, Progreso y Usabilidad
   ========================================================================== */

/* Desplazamiento suave general */
html {
  scroll-behavior: smooth;
}

/* 1. Contenedor de input y Toggle de Contraseña */
.aula-input-wrapper {
  position: relative;
  width: 100%;
}

.aula-input-wrapper input {
  padding-right: 3rem !important; /* Espacio para el botón de ojo */
}

.aula-toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 5px;
  transition: color 0.2s, background-color 0.2s;
  outline: none;
}

.aula-toggle-password:hover {
  color: var(--color-primary, #b07d5b);
  background-color: rgba(176, 125, 91, 0.08);
}

.aula-toggle-password svg {
  pointer-events: none;
}

/* 2. Barra de Progreso en Tarjetas de Curso */
.aula-course-card__progress-box {
  margin: 0.85rem 0;
  width: 100%;
}

.aula-course-card__progress-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.aula-course-card__progress-pct {
  color: var(--color-primary, #b07d5b);
  letter-spacing: 0.02em;
}

.aula-course-card__progress-fraction {
  color: #64748b;
}

.aula-course-card__progress-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.aula-course-card__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary, #b07d5b) 0%, var(--color-glow, #e3c598) 100%);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 6px rgba(176, 125, 91, 0.3);
}

/* Ajustes a tarjetas inactivas */
.aula-course-card--pending .aula-course-card__progress-pct {
  color: #b45309;
}

/* 3. Indicador de Cuestionarios (Quiz) Personalizado */
.aula-quiz-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.aula-quiz-indicator {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.aula-quiz-choice:hover .aula-quiz-indicator {
  border-color: #94a3b8;
}

.aula-quiz-choice input[type="radio"]:checked + .aula-quiz-indicator {
  border-color: var(--color-primary, #b07d5b);
  box-shadow: 0 0 0 3px rgba(176, 125, 91, 0.16);
}

.aula-quiz-choice input[type="radio"]:checked + .aula-quiz-indicator::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary, #b07d5b);
  animation: scaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.aula-quiz-choice-text {
  font-size: 0.92rem;
  line-height: 1.4;
  color: inherit;
}

/* 4. Notificaciones Toast Premium */
.aula-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  min-width: 260px;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  transform: translateY(1.5rem) scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}

.aula-toast--visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.aula-toast--info {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.aula-toast--success {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.aula-toast--error {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 5. Partículas de Confeti CSS */
.aula-confetti {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  border-radius: 3px;
  opacity: 1;
}

/* 6. Modal de Resultados Premium */
.aula-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: overlayFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.aula-modal-card {
  background: #ffffff;
  border-radius: 28px;
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 2rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: cardZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardZoomIn {
  from { transform: scale(0.9) translateY(1.5rem); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.aula-modal-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.aula-modal-card--success .aula-modal-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.aula-modal-card--error .aula-modal-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.aula-modal-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.aula-modal-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}

.aula-modal-score-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

.score-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.score-val {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.aula-modal-card--success .score-val {
  color: #166534;
}

.aula-modal-card--error .score-val {
  color: #991b1b;
}

.aula-modal-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 1.75rem;
}

.aula-modal-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.aula-modal-card--success .aula-modal-btn {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.aula-modal-card--success .aula-modal-btn:hover {
  filter: brightness(1.05);
}

/* Efectos de Foco Premium para Formularios */
.aula-form input:focus {
  border-color: var(--color-primary, #b07d5b) !important;
  box-shadow: 0 0 0 3px rgba(176, 125, 91, 0.22) !important;
}

/* Pequeño toque interactivo para las tarjetas */
.aula-course-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.aula-quiz-choice {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.aula-quiz-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   TABS PLAYER LAYOUT: Visualización por pestañas
   ========================================================================== */

/* Ocultar todos los módulos y examen final por defecto */
.aula-course-modules .aula-module {
  display: none !important;
}

/* Mostrar únicamente el módulo/examen activo con una animación de entrada elegante */
.aula-course-modules .aula-module.aula-module--active {
  display: block !important;
  animation: tabFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo destacado premium para la pestaña activa en la barra lateral */
.aula-course-nav__item--active a {
  background: var(--color-primary, #b07d5b) !important;
  color: #ffffff !important;
  border-color: var(--color-primary, #b07d5b) !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(176, 125, 91, 0.25) !important;
  transform: translateX(4px);
}

.aula-course-nav__item--active a::before {
  color: #ffffff !important;
}

/* Ajustes a checks en tabs activos */
.aula-course-nav__item--active.aula-course-nav__item--done a::before {
  background: #ffffff !important;
  color: #15803d !important;
}

/* Ajuste del botón "siguiente tema" de lectura */
.aula-module__next-btn {
  background: #ffffff;
  color: var(--color-primary, #b07d5b) !important;
  border: 1px solid var(--color-primary, #b07d5b) !important;
  transition: all 0.2s ease;
}

.aula-module__next-btn:hover {
  background: rgba(176, 125, 91, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(176, 125, 91, 0.1);
}

/* --------------------------------------------------------------------------
   PREMIUM UPGRADES: Skeleton loader and layout improvements
   -------------------------------------------------------------------------- */

/* Skeleton Layout */
.aula-course-skeleton {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  width: 100%;
  margin-bottom: 2rem;
}

@media (min-width: 960px) {
  .aula-course-skeleton {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.aula-skeleton-sidebar, .aula-skeleton-main {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(11, 12, 14, 0.04);
}

.aula-skeleton-main {
  padding: 2rem;
  border-radius: 24px;
}

.aula-skeleton-item {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 1rem;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.aula-skeleton-item.title {
  height: 24px;
  width: 60%;
  margin-bottom: 1.5rem;
}

.aula-skeleton-item.nav {
  height: 40px;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.aula-skeleton-item.cover {
  height: 240px;
  width: 100%;
  border-radius: 18px;
  margin-bottom: 1.5rem;
}

.aula-skeleton-item.text {
  height: 14px;
  width: 80%;
  border-radius: 4px;
}

.aula-skeleton-item.text.long {
  width: 95%;
}

.aula-skeleton-item.button {
  height: 44px;
  width: 100%;
  border-radius: 12px;
  margin-top: 1.5rem;
}

/* Glassmorphic elements & transitions */
.aula-course-nav, .aula-profile-card, .aula-module, .aula-auth-card {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(176, 125, 91, 0.12) !important;
}

/* Luxury accent details for input borders and animations */
.aula-form input:focus, .aula-form textarea:focus {
  background: #ffffff !important;
  border-color: var(--color-primary, #b07d5b) !important;
  box-shadow: 0 0 0 4px rgba(176, 125, 91, 0.18) !important;
  transform: translateY(-1px);
}

.aula-form input, .aula-form textarea {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Floating effect on hover for cards */
.aula-course-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary, #b07d5b) !important;
  box-shadow: 0 20px 40px rgba(176, 125, 91, 0.12) !important;
}

/* Syllabus modules visual enhancements (sidebar item visual states) */
.aula-course-nav__item a {
  position: relative;
  overflow: hidden;
}

.aula-course-nav__item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary, #b07d5b) 0%, var(--color-glow, #e3c598) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.aula-course-nav__item--active a::after {
  transform: scaleX(1);
}


