:root {
  --brand: #ff5e14;
  --brand-alt: #ff6600;
  --dark: #111827;
  --dark-soft: #1f2937;
  --light: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 12px 28px rgba(17, 24, 39, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--dark-soft);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer#contacto {
  margin-top: auto;
}

a,
button,
input {
  font: inherit;
}

i:not(.feature-icon) {
  font-size: 24px;
  color: var(--brand);
}

/* Footer campus/index: fondo oscuro (respaldar si Tailwind CDN no aplica bg-navy) y iconos coherentes con styles.css */
footer#contacto {
  background-color: #1e252d;
}

footer#contacto i {
  font-size: inherit;
  color: inherit;
}

footer#contacto .footer-mega-link i {
  width: 1.15rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--cta);
}

footer#contacto .footer-mega-link:hover i {
  color: var(--cta-alt);
}

.container {
  width: min(100%, 80vw);
  margin: 0 auto;
}

.section-pad {
  padding: 3.2rem 0;
}

.section-muted {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.section-title {
  margin: 0 0 1.5rem;
  color: var(--dark);
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  line-height: 1.2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #1e293b 0%, #0f172a 42%, #070b12 100%);
}

.preloader-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 45% at 20% 60%, rgba(242, 103, 34, 0.22) 0%, transparent 55%),
    radial-gradient(35% 40% at 80% 40%, rgba(255, 143, 58, 0.18) 0%, transparent 50%),
    radial-gradient(50% 50% at 50% 100%, rgba(30, 37, 45, 0.9) 0%, transparent 60%);
  animation: preloaderAurora 7s ease-in-out infinite alternate;
}

@keyframes preloaderAurora {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -1%, 0) scale(1.06);
  }
}

.preloader-grid {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.preloader-content {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 520px;
}

.preloader-brand {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.25rem 1.75rem;
}

.preloader-ring {
  position: absolute;
  inset: -8px -28px -20px;
}

.preloader-ring-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.preloader-ring-glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(242, 103, 34, 0) 0deg,
    rgba(242, 103, 34, 0.55) 70deg,
    rgba(255, 143, 58, 0.35) 140deg,
    rgba(242, 103, 34, 0) 220deg,
    rgba(255, 143, 58, 0.45) 300deg,
    rgba(242, 103, 34, 0) 360deg
  );
  filter: blur(18px);
  animation: preloaderRingSpin 2.8s linear infinite;
}

@keyframes preloaderRingSpin {
  to {
    transform: rotate(360deg);
  }
}

.loader-logo {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #fff;
}

.preloader-kicker {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.55);
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.preloader-sub {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.72);
}

.preloader-track {
  margin: 1rem auto 0;
  width: min(320px, 78vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.preloader-progress {
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, #f26722, #ff8f3a, #f26722);
  background-size: 200% 100%;
  animation: preloaderBarSlide 1.15s ease-in-out infinite, preloaderBarShine 1.8s linear infinite;
}

@keyframes preloaderBarSlide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes preloaderBarShine {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 520ms ease;
}

/* Toolbar + header */
.toolbar {
  background: #333333;
  color: #f5f5f5;
  min-height: 30px;
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-inner {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.3rem 0;
}

.toolbar-inner span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.toolbar-cta {
  color: #ffbe9f;
}

.toolbar-cta-lead {
  font-weight: 700;
}

.toolbar-session {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.toolbar-user {
  font-size: 0.7rem;
  font-weight: 600;
  color: #f8fafc;
}

.logout-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 0.45rem;
  min-height: 26px;
  padding: 0.24rem 0.5rem;
  cursor: pointer;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.logout-btn i {
  color: #fff;
  font-size: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 5px;
  background: #ff6600;
}

.header-content {
  min-height: 97px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.logo img {
  display: block;
  width: auto;
  height: 64px;
}

.logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--brand), #f97316);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
}

.desktop-nav {
  display: none;
}

.mobile-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-btn i {
  font-size: 20px;
}

.btn-enter {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-alt));
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.6rem 10%;
  background: #fff;
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--dark);
  padding: 0.75rem 0;
  font-size: 1rem;
}

/* Hero slider */
.hero {
  position: relative;
  min-height: 460px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  height: 300px;
  z-index: 0;
}

.hero-slider::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -25px;
  width: 100%;
  height: 25px;
  background: #0868a2;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  height: 300px;
  z-index: 1;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
}

.hero-kicker {
  margin: 0;
  color: #ffd7c2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0.45rem 0 0;
  color: #fff;
  font-size: clamp(1.6rem, 7vw, 3rem);
  max-width: 680px;
  line-height: 1.1;
}

.hero-sub {
  color: #f3f4f6;
  max-width: 680px;
  margin-top: 0.7rem;
  font-size: 1rem;
}

.hero-form {
  margin-top: 1.2rem;
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  border: 1px solid rgba(8, 104, 162, 0.22);
  position: relative;
  z-index: 3;
}

.hero-form h3 {
  margin: 0 0 0.7rem;
  color: var(--dark);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.hero-form input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.65rem;
  min-height: 46px;
  padding: 0 0.8rem;
}

.hero-form button,
.hero-form .hero-form-cta {
  margin-top: 0.7rem;
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  min-height: 46px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.layer {
  opacity: 0;
  transform: translateY(20px);
}

.hero-loaded .layer-1 {
  animation: layeredIn 0.5s ease forwards 0.15s;
}

.hero-loaded .layer-2 {
  animation: layeredIn 0.55s ease forwards 0.35s;
}

.hero-loaded .layer-3 {
  animation: layeredIn 0.6s ease forwards 0.52s;
}

.hero-loaded .layer-4 {
  animation: layeredIn 0.62s ease forwards 0.7s;
}

@keyframes layeredIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features and courses */
.features-grid,
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card,
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
  overflow: hidden;
}

.feature-card {
  padding: 1.1rem;
}

.feature-icon {
  font-size: 48px;
  color: var(--brand);
  transition: transform 260ms ease, color 260ms ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-5px);
  color: #fb923c;
}

.feature-card h3 {
  margin: 0.7rem 0 0.4rem;
  color: var(--dark);
}

.feature-card p {
  margin: 0;
  color: #4b5563;
}

.course-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 36px rgba(17, 24, 39, 0.18);
}

.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.course-card img {
  width: 100%;
  height: 198px;
  object-fit: cover;
}

.course-body {
  padding: 1.08rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.58rem;
}

.course-card h3 {
  margin: 0;
  color: var(--dark);
  font-size: 1.11rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  min-height: 2.7rem;
}

.course-desc {
  margin: 0;
  color: #475569;
  line-height: 1.5;
  font-size: 0.92rem;
  min-height: 3rem;
}

.course-meta {
  margin: 0;
  padding: 0.2rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
  font-size: 0.735rem;
  line-height: 1.33;
  color: #64748b;
  border-top: 1px dashed #dbe3ee;
  margin-top: 0.15rem;
  padding-top: 0.52rem;
}

.course-actions {
  margin-top: auto;
  padding-top: 0.62rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.btn-course-main,
.btn-course-tech,
.btn-course-enroll {
  text-decoration: none;
  min-height: 38px;
  border-radius: 0.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.44rem 0.45rem;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.btn-course-main {
  background: linear-gradient(90deg, var(--brand), var(--brand-alt));
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 7px 14px rgba(255, 94, 20, 0.26);
}

.btn-course-tech {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.btn-course-enroll {
  background: #0f172a;
  color: #fff;
  border: 1px solid #0f172a;
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.24);
}

.btn-course-main:hover,
.btn-course-main:focus-visible,
.btn-course-tech:hover,
.btn-course-tech:focus-visible,
.btn-course-enroll:hover,
.btn-course-enroll:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-course-tech:hover,
.btn-course-tech:focus-visible {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Acciones del catálogo (Curso / Ficha / Inscripción): bloque propio, sin subrayado tipo nav, CTA claras */
.course-card .course-actions {
  margin-top: auto;
  padding: 0.55rem 0.58rem;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #d8e2ee;
  border-radius: 0.72rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

.course-card .course-actions .animated-underline::after {
  content: none;
  display: none;
}

.course-card .btn-course-main,
.course-card .btn-course-tech,
.course-card .btn-course-enroll {
  flex: 1 1 calc(33.333% - 0.35rem);
  min-height: 40px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.35) inset,
    0 6px 14px rgba(15, 23, 42, 0.12);
}

.course-card .btn-course-main {
  border: 1px solid rgba(255, 140, 60, 0.55);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 18px rgba(255, 94, 20, 0.35);
}

.course-card .btn-course-tech {
  border-width: 2px;
  border-color: #94a3b8;
  color: #0f172a;
  font-weight: 800;
}

.course-card .btn-course-enroll {
  background: linear-gradient(180deg, #25d366 0%, #1da851 100%);
  border: 1px solid #128c7e;
  color: #fff;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 18px rgba(18, 140, 126, 0.35);
}

.course-card .btn-course-enroll:hover,
.course-card .btn-course-enroll:focus-visible {
  background: linear-gradient(180deg, #34e077 0%, #22c55e 100%);
  border-color: #0f766e;
  color: #fff;
}

.course-card .btn-course-main:focus-visible,
.course-card .btn-course-tech:focus-visible,
.course-card .btn-course-enroll:focus-visible {
  outline: 2px solid #ff5e14;
  outline-offset: 2px;
}

.course-card .btn-course-enroll:focus-visible {
  outline-color: #0d9488;
}

@media (max-width: 420px) {
  .course-card .btn-course-main,
  .course-card .btn-course-tech,
  .course-card .btn-course-enroll {
    flex: 1 1 100%;
  }
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.78rem;
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  color: #ffb28c;
  font-size: 0.84rem;
}

.bullet-link {
  display: block;
  color: #d8e2f3;
  text-decoration: none;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.bullet-link::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
}

.footer-form {
  display: grid;
  gap: 0.55rem;
}

.footer-form input {
  min-height: 42px;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  background: #0b1220;
  color: #fff;
  padding: 0 0.65rem;
}

.footer-form button {
  min-height: 42px;
  border: 0;
  border-radius: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.copyright {
  margin: 1.2rem auto 0;
  text-align: center;
  font-size: 0.62rem;
  color: #94a3b8;
}

/* Underline animation */
.animated-underline {
  position: relative;
}

.animated-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--brand-alt);
  transition: width 260ms ease;
}

.animated-underline:hover::after,
.animated-underline:focus-visible::after {
  width: 100%;
}

/* Social gadget + WhatsApp + scroll up */
.social-gadget {
  position: fixed;
  right: 0;
  top: 50%;
  margin-top: -140px;
  transform: translate(78%, -50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  transition: transform 300ms ease;
}

.social-gadget.open {
  transform: translate(0, -50%);
}

.gadget-trigger {
  border: none;
  background: var(--brand);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
}

.gadget-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 0.6rem;
  display: grid;
  gap: 0.45rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-link i {
  font-size: 20px;
}

.scroll-up {
  position: fixed;
  right: 1rem;
  bottom: 6.6rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: none;
  z-index: 1090;
}

.scroll-up.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scroll-up i {
  color: #fff;
  font-size: 18px;
}

.whatsapp-bot {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1120;
}

#botToggle {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

#botToggle i {
  color: #fff;
  font-size: 27px;
}

.bot-panel {
  display: none;
  margin-top: 0.55rem;
  width: min(320px, calc(100vw - 1rem));
  background: #fffaf2;
  border-radius: 0.9rem;
  border: 1px solid #eadbc6;
  overflow: hidden;
}

.bot-panel.open {
  display: block;
}

.bot-head {
  background: #128c7e;
  color: #fff;
  padding: 0.8rem;
}

.bot-head p {
  margin: 0;
}

.bot-head small {
  opacity: 0.85;
}

.bot-body {
  padding: 0.8rem;
  font-size: 0.9rem;
}

.bot-cta {
  display: block;
  margin: 0 0.8rem 0.85rem;
  background: #25d366;
  color: #fff;
  text-align: center;
  border-radius: 0.5rem;
  text-decoration: none;
  padding: 0.58rem 0.4rem;
}

/* Megamenu */
.menu-item {
  position: relative;
}

.mega-menu {
  --mm-shift: 0px;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  left: auto;
  transform: translateX(var(--mm-shift, 0px));
  width: min(980px, calc(100vw - 24px));
  min-width: 0;
  max-width: min(980px, calc(100vw - 24px));
  box-sizing: border-box;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #dbe2ea;
  border-radius: 1.2rem;
  padding: 1.25rem;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.24);
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  z-index: 1200;
  max-height: calc(100vh - 130px);
  overflow: auto;
}

.menu-item.open .mega-menu {
  display: grid;
}

.mega-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.9rem;
}

.mega-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f97316;
}

.mega-title {
  margin: 0.22rem 0 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #0f172a;
}

.mega-main-cta {
  text-decoration: none;
  background: #0f172a;
  color: #fff;
  border-radius: 0.62rem;
  padding: 0.56rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 220ms ease, background-color 220ms ease;
}

.mega-main-cta:hover,
.mega-main-cta:focus-visible {
  background: #1e293b;
  transform: translateY(-1px);
}

.mega-menu h4 {
  margin: 0 0 0.32rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.mega-col-sub {
  margin: 0 0 0.62rem;
  font-size: 0.8rem;
  color: #64748b;
}

.mega-menu .bullet-link {
  color: #1f2937;
  margin-bottom: 0.34rem;
  border-radius: 0.72rem;
  padding: 0.56rem 0.7rem 0.56rem 2rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.mega-menu .bullet-link::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5e14, #ff8b3d);
  box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.16);
  left: 0.76rem;
  top: 50%;
  transform: translateY(-50%);
}

.mega-menu .bullet-link:hover,
.mega-menu .bullet-link:focus-visible {
  background: linear-gradient(180deg, #fff4ee 0%, #fffaf7 100%);
  border-color: rgba(255, 94, 20, 0.4);
  color: #111827;
  transform: translateX(3px) translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 94, 20, 0.16);
}

.mega-menu img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 0.7rem;
}

.mega-menu p {
  margin: 0.65rem 0 0;
  font-size: 0.97rem;
  line-height: 1.45;
  color: #4b5563;
}

.mega-preview {
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.mega-preview-cta {
  margin-top: 0.7rem;
  display: inline-flex;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
  border-bottom: 2px solid #f97316;
  padding-bottom: 0.1rem;
}

.icon-small {
  font-size: 12px;
  transition: transform 220ms ease;
}

.menu-item.open .icon-small {
  transform: rotate(180deg);
}

/* Custom scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--brand) #f1f5f9;
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: #e2e8f0;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-alt));
  border-radius: 20px;
}

/* Responsive */
@media (min-width: 641px) and (max-width: 1024px) {
  .features-grid,
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 440px;
  }
}

@media (min-width: 1025px) {
  .desktop-nav {
    display: inline-flex;
    align-items: center;
    gap: 1.15rem;
  }

  .nav-link {
    border: none;
    background: transparent;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0;
  }

  .mobile-btn {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .courses-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .mega-menu {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, 92vw);
  }

  .toolbar-inner {
    gap: 0.45rem;
    font-size: 0.67rem;
  }

  .toolbar-session {
    width: 100%;
    justify-content: flex-end;
  }

  .hero {
    min-height: 500px;
  }

  .hero-slider,
  .hero-slide img,
  .hero-overlay {
    height: 300px;
  }

  .btn-enter {
    padding-inline: 0.8rem;
  }

  .social-gadget {
    top: auto;
    bottom: calc(12rem + 140px);
    margin-top: 0;
    transform: translateX(80%);
  }

  .social-gadget.open {
    transform: translateX(0);
  }
}

/* Login */
.login-page {
  min-height: 100vh;
  background: radial-gradient(120% 120% at 20% 0%, #f8fafc 0%, #eceff4 55%, #e5e7eb 100%);
}

.login-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.1rem;
}

.login-card {
  width: min(100%, 370px);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.8rem;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  padding: 1.1rem;
}

.login-back {
  position: fixed;
  top: 1rem;
  left: 1rem;
  text-decoration: none;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  padding: 0.45rem 0.65rem;
}

.login-back i {
  font-size: 14px;
}

.login-card h1 {
  margin: 0;
  font-size: 1.35rem;
  color: #111827;
}

.login-subtitle {
  margin: 0.45rem 0 1rem;
  color: #4b5563;
  font-size: 0.92rem;
}

.login-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 0.7rem;
  border: 1px solid #9ca3af;
  border-radius: 0.2rem;
  padding: 0 0.72rem;
  background: #f3f4f6;
}

.btn-login {
  width: 100%;
  border: 0;
  border-radius: 0.3rem;
  min-height: 46px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.login-link {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--brand);
  text-decoration: none;
  font-size: 0.83rem;
}

.login-message {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.login-message.success {
  color: #15803d;
}

.login-message.error {
  color: #b91c1c;
}

.login-divider {
  border-top: 1px solid #d1d5db;
  margin: 1rem 0;
}

.guest-title {
  margin: 0;
  font-size: 0.88rem;
  color: #1f2937;
}

.btn-guest {
  margin-top: 0.8rem;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0.28rem;
  background: #526a70;
  color: #fff;
  cursor: pointer;
}

.login-footer-mini {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #d1d5db;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
}

.login-footer-mini button {
  border: 0;
  background: #526a70;
  color: #fff;
  border-radius: 0.2rem;
  padding: 0.34rem 0.65rem;
  cursor: pointer;
}

/* Registro con aprobación administrativa */
.campus-register-page {
  min-height: 100vh;
  background: radial-gradient(120% 120% at 20% 0%, #f8fafc 0%, #eceff4 55%, #e5e7eb 100%);
}

.campus-register-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 1.1rem;
}

.campus-register-card {
  width: min(100%, 760px);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.8rem;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  padding: 1.1rem;
}

.campus-register-card h1,
.campus-register-card h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #111827;
}

.campus-register-subtitle {
  margin: 0.45rem 0 1rem;
  color: #4b5563;
  font-size: 0.92rem;
}

.campus-register-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.campus-register-form input,
.campus-register-form textarea {
  width: 100%;
  min-height: 44px;
  margin-bottom: 0.65rem;
  border: 1px solid #9ca3af;
  border-radius: 0.35rem;
  padding: 0.55rem 0.72rem;
  background: #f8fafc;
}

.campus-register-form textarea {
  min-height: 80px;
  resize: vertical;
}

.campus-register-courses {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.7rem;
  margin: 0.4rem 0 0.9rem;
}

.campus-register-courses legend {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2937;
  padding: 0 0.3rem;
}

.campus-register-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.45rem 0.9rem;
}

.campus-register-course-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #374151;
}

.campus-register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0 0.75rem;
}

.btn-ghost {
  border: 1px solid #9ca3af;
  background: #fff;
  color: #1f2937;
  border-radius: 0.35rem;
  min-height: 42px;
  padding: 0.52rem 0.82rem;
  cursor: pointer;
  font-weight: 600;
}

.campus-register-table-wrap {
  overflow-x: auto;
}

.campus-register-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.campus-register-table th,
.campus-register-table td {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  padding: 0.55rem;
  vertical-align: top;
}

.campus-register-table small {
  color: #6b7280;
}

.pending-role {
  min-height: 36px;
  border: 1px solid #9ca3af;
  border-radius: 0.3rem;
  background: #fff;
  min-width: 130px;
}

/* Página de encuadre (antes del aula virtual) */
.encuadre-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background: #f4f6fa;
  color: #0f172a;
}

.encuadre-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
}

.encuadre-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.encuadre-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ff5e14;
  text-decoration: none;
}

.encuadre-back:hover,
.encuadre-back:focus-visible {
  text-decoration: underline;
  outline: none;
}

.encuadre-brand {
  display: block;
}

.encuadre-logo {
  height: 48px;
  width: auto;
}

.encuadre-main {
  margin: 0 auto;
  padding: 0 0 2.5rem;
  width: 100%;
  max-width: min(100%, 1120px);
}

/* Contenido editorial alineado con el aula (panel + unidades) */
.encuadre-editorial.panel {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.encuadre-page .encuadre-editorial .unit {
  background: #fff;
  border: 1px solid #d8e1ee;
  border-radius: 0.75rem;
  overflow: hidden;
}

.encuadre-page .encuadre-editorial .unit-body {
  border-top: 1px solid #d8e1ee;
  padding: 0.9rem 1rem 1rem;
}

.encuadre-page .encuadre-unit--intro .unit-body {
  border-top: none;
  padding-top: 1rem;
}

.encuadre-page .encuadre-editorial h2.unit-toggle.encuadre-section-head {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 1.03rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.encuadre-page .encuadre-editorial h2.unit-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.encuadre-page .encuadre-editorial h2.unit-toggle span i {
  color: #ff5e14;
  font-size: 1rem;
}

.encuadre-page .encuadre-editorial h2.unit-toggle small {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.encuadre-page .encuadre-unit--notice .unit-body {
  background: #fff7ed;
  border-top: none;
}

.encuadre-notice-text {
  margin: 0;
  font-size: 0.9rem;
  color: #9a3412;
  line-height: 1.5;
}

.encuadre-actions--aula {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.encuadre-page .btn {
  border-radius: 0.45rem;
  border: 1px solid #c7d3e2;
  background: #fff;
  color: #0f172a;
  min-height: 33px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.encuadre-page .btn:hover,
.encuadre-page .btn:focus-visible {
  border-color: #94a3b8;
  background: #f8fafc;
  outline: none;
}

.encuadre-page .btn.primary {
  background: linear-gradient(90deg, #ff5e14, #ff7d2b);
  border-color: transparent;
  color: #fff;
}

.encuadre-page .btn.primary:hover,
.encuadre-page .btn.primary:focus-visible {
  filter: brightness(0.95);
  border-color: transparent;
  color: #fff;
}

.encuadre-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}

.encuadre-unit--intro h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.encuadre-summary {
  margin: 0;
  font-size: 1rem;
  color: #475569;
  line-height: 1.55;
}

/* Encuadre: hero del curso y bloque de objetivos */
.encuadre-page .encuadre-unit--intro {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.07);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #fffaf5 100%);
}

.encuadre-page .encuadre-unit--intro .unit-body {
  padding: 1.2rem 1.15rem 1.25rem;
  border-left: 4px solid #ff5e14;
  border-radius: inherit;
}

.encuadre-page .encuadre-unit--intro .encuadre-kicker {
  color: #c2410c;
  letter-spacing: 0.1em;
}

.encuadre-page .encuadre-unit--objectives .unit-body {
  padding: 1rem 1.1rem 1.15rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%);
}

.encuadre-objectives.encuadre-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.encuadre-objectives .encuadre-objective-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.78rem 0.9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.encuadre-objectives .encuadre-objective-item + .encuadre-objective-item {
  margin-top: 0.55rem;
}

.encuadre-obj-index {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.45rem;
  padding: 0.28rem 0.48rem;
  line-height: 1.15;
}

.encuadre-obj-text {
  flex: 1;
  min-width: 0;
  font-size: 0.93rem;
  line-height: 1.52;
  color: #1e293b;
  font-weight: 500;
}

.encuadre-objective-item--empty .encuadre-obj-text {
  color: #64748b;
  font-weight: 400;
}

.encuadre-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #334155;
  line-height: 1.55;
  font-size: 0.88rem;
}

.encuadre-list li + li {
  margin-top: 0.35rem;
}

.encuadre-grid--aula {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.encuadre-mini-card {
  border: 1px solid #e4ebf3;
  border-radius: 0.55rem;
  padding: 0.55rem 0.6rem;
  background: #f8fafc;
}

.encuadre-mini-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.encuadre-mini-card h3 i {
  color: #ff5e14;
}

.encuadre-grid--aula.encuadre-grid--academic-mgmt {
  gap: 1rem;
  align-items: stretch;
}

.encuadre-page .encuadre-editorial .encuadre-unit--academic-mgmt .unit-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.encuadre-mini-card--academic {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 26px rgba(15, 23, 42, 0.06);
}

.encuadre-mini-card--academic h3 {
  margin: 0;
  padding: 0.9rem 1rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  gap: 0.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e8eef4;
}

.encuadre-mini-card--academic h3 i {
  font-size: 1.02rem;
  opacity: 0.95;
}

.encuadre-mini-card--academic-method {
  border-top: 3px solid #ff5e14;
}

.encuadre-mini-card--academic-assess {
  border-top: 3px solid #0d9488;
}

.encuadre-list.encuadre-list--academic-lines {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.75rem 0.95rem;
  flex: 1;
  background: linear-gradient(180deg, #f8fafc 0%, #fafbfd 100%);
}

.encuadre-list.encuadre-list--academic-lines > li {
  position: relative;
  margin: 0;
  padding: 0.78rem 0.9rem 0.78rem 0.95rem;
  font-size: 0.91rem;
  line-height: 1.58;
  font-weight: 500;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.encuadre-list.encuadre-list--academic-lines > li + li {
  margin-top: 0.5rem;
}

.encuadre-mini-card--academic-method .encuadre-list--academic-lines > li {
  border-left: 4px solid #ff5e14;
}

.encuadre-mini-card--academic-assess .encuadre-list--academic-lines > li {
  border-left: 4px solid #0d9488;
}

.encuadre-grid--aula.encuadre-grid--instructional-design {
  gap: 1rem;
  align-items: stretch;
}

.encuadre-page .encuadre-editorial .encuadre-unit--instructional-design .unit-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.encuadre-mini-card--instructional-profile {
  border-top: 3px solid #ff5e14;
}

.encuadre-mini-card--instructional-competencies {
  border-top: 3px solid #4f46e5;
}

.encuadre-mini-card--instructional-profile .encuadre-list--academic-lines > li {
  border-left: 4px solid #ff5e14;
}

.encuadre-mini-card--instructional-competencies .encuadre-list--academic-lines > li {
  border-left: 4px solid #4f46e5;
}

@media (min-width: 960px) {
  .encuadre-grid--aula.encuadre-grid--academic-mgmt {
    gap: 1.2rem;
  }

  .encuadre-grid--aula.encuadre-grid--instructional-design {
    gap: 1.2rem;
  }
}

.encuadre-page .encuadre-editorial .encuadre-unit--learning-outcomes .unit-body {
  padding: 1.1rem 1.2rem 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%);
}

.encuadre-list.encuadre-list--outcomes-prospect {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: encuadre-outcome-idx;
}

.encuadre-list.encuadre-list--outcomes-prospect > li {
  position: relative;
  margin: 0;
  padding: 1rem 1.15rem 1rem 3.2rem;
  font-size: 0.95rem;
  line-height: 1.58;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 0.65rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 20px rgba(15, 23, 42, 0.06);
  border-left: 4px solid #ff5e14;
}

.encuadre-list.encuadre-list--outcomes-prospect > li + li {
  margin-top: 0.65rem;
}

.encuadre-list.encuadre-list--outcomes-prospect > li::before {
  counter-increment: encuadre-outcome-idx;
  content: counter(encuadre-outcome-idx);
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c2410c;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.12);
  line-height: 1.45rem;
  text-align: center;
}

/* Unidades tipo folleto: evidencias + formato */
.encuadre-page .encuadre-editorial .encuadre-unit--prospect {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 32px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.encuadre-page .encuadre-editorial .encuadre-unit--prospect h2.unit-toggle.encuadre-section-head {
  padding: 1rem 1.15rem 0.95rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e8eef4;
}

.encuadre-page .encuadre-editorial .encuadre-unit--prospect h2.unit-toggle span {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.encuadre-page .encuadre-editorial .encuadre-unit--prospect h2.unit-toggle span i {
  font-size: 1.05rem;
  opacity: 0.95;
}

.encuadre-page .encuadre-editorial .encuadre-unit--prospect h2.unit-toggle small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  line-height: 1.2;
}

.encuadre-page .encuadre-editorial .encuadre-unit--prospect .unit-body {
  border-top: none;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 40%);
}

.encuadre-list.encuadre-list--prospect {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.encuadre-list.encuadre-list--prospect > li {
  position: relative;
  margin: 0;
  color: #1e293b;
  font-size: 0.93rem;
  line-height: 1.58;
  font-weight: 500;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 0.6rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.encuadre-list.encuadre-list--prospect > li + li {
  margin-top: 0.6rem;
}

.encuadre-list.encuadre-list--prospect.encuadre-list--deliverables > li {
  padding: 0.82rem 1rem 0.82rem 2.55rem;
}

.encuadre-list.encuadre-list--prospect.encuadre-list--deliverables > li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.1);
}

.encuadre-list.encuadre-list--prospect.encuadre-list--deliverables > li::after {
  content: "\2713";
  position: absolute;
  left: calc(1rem + 0.525rem);
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.58rem;
  font-weight: 900;
  color: #c2410c;
  line-height: 1;
}

.encuadre-list.encuadre-list--prospect.encuadre-list--format-spec > li {
  padding: 0.95rem 1.1rem 0.95rem 1.2rem;
  border-left: 4px solid #ff5e14;
}

.encuadre-list.encuadre-list--prospect.encuadre-list--format-spec > li + li {
  margin-top: 0.65rem;
}

.encuadre-plan-caption {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.encuadre-plan-caption--inset {
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.encuadre-syllabus-shell .encuadre-plan-caption--inset:not([hidden]) {
  margin: 0 1rem 0.75rem;
  max-width: calc(100% - 2rem);
}

/* Plan de estudios — presentación tipo oferta / programa académico */
.encuadre-page .encuadre-unit--syllabus .unit-body.encuadre-syllabus-shell {
  padding: 0;
  border-top: none;
}

.encuadre-syllabus-shell {
  padding: 0 0 0.15rem;
}

.encuadre-syllabus-prospectus-head {
  padding: 1.15rem 1.15rem 1.05rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 48%, #0f172a 100%);
  color: #f8fafc;
  border-radius: 0.65rem 0.65rem 0 0;
  margin: -1px -1px 0;
  border: 1px solid #1e293b;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.encuadre-syllabus-prospectus-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 94, 20, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.encuadre-syllabus-prospectus-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fdba74;
}

.encuadre-syllabus-prospectus-lede {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2e8f0;
  font-weight: 500;
  max-width: 52rem;
}

.encuadre-syllabus--prospectus {
  margin: 0;
  padding: 1rem 1rem 1.15rem;
  list-style: none;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 22%);
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 0.65rem 0.65rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.encuadre-syllabus-mod.encuadre-syllabus-mod--prospectus {
  display: grid;
  grid-template-columns: minmax(8.25rem, 9.5rem) minmax(0, 1fr);
  gap: 0.95rem 1.05rem;
  align-items: stretch;
  padding: 0;
  margin: 0 0 0.85rem;
  border: none;
}

.encuadre-syllabus-mod.encuadre-syllabus-mod--prospectus:last-child {
  margin-bottom: 0;
}

.encuadre-syllabus-mod--solo .encuadre-syllabus-card {
  grid-column: 1 / -1;
}

.encuadre-syllabus-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding-top: 0.15rem;
  width: 100%;
  min-width: 0;
}

.encuadre-syllabus-num {
  flex: 0 0 auto;
  align-self: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(154, 52, 18, 0.08);
}

.encuadre-syllabus-phase {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  width: 100%;
  box-sizing: border-box;
  padding: 0.32rem 0.5rem;
  border-radius: 0.35rem;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  hyphens: auto;
  overflow-wrap: break-word;
}

.encuadre-syllabus-phase--diag {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.encuadre-syllabus-phase--core {
  color: #0f766e;
  background: #f0fdfa;
  border-color: #99f6e4;
}

.encuadre-syllabus-phase--cierre {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fdba74;
}

.encuadre-syllabus-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.95rem 1.05rem 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  border-left: 4px solid #ff5e14;
  min-width: 0;
}

.encuadre-syllabus-card--muted {
  border-left-color: #94a3b8;
  background: #fafafa;
}

.encuadre-syllabus-mod-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.encuadre-syllabus-mod-sum {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
}

.encuadre-syllabus-block {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.encuadre-syllabus-block-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.encuadre-syllabus-topics {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.48;
}

.encuadre-syllabus-topics li + li {
  margin-top: 0.28rem;
}

/* Compatibilidad: estructura antigua si algún listado legacy conserva .encuadre-syllabus-body */
.encuadre-syllabus-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 520px) {
  .encuadre-unit--intro h1 {
    font-size: 1.35rem;
  }

  .encuadre-page .encuadre-editorial h2.unit-toggle.encuadre-section-head {
    flex-wrap: wrap;
    font-size: 0.95rem;
  }

  .encuadre-syllabus-prospectus-head {
    padding: 1rem 0.9rem 0.95rem;
    border-radius: 0.55rem 0.55rem 0 0;
  }

  .encuadre-syllabus-prospectus-lede {
    font-size: 0.88rem;
  }

  .encuadre-syllabus--prospectus {
    padding: 0.85rem 0.75rem 1rem;
    border-radius: 0 0 0.55rem 0.55rem;
  }

  .encuadre-syllabus-mod.encuadre-syllabus-mod--prospectus {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .encuadre-syllabus-rail {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding-top: 0;
  }

  .encuadre-syllabus-phase {
    max-width: none;
    text-align: left;
  }

  .encuadre-syllabus-card {
    padding: 0.85rem 0.9rem;
  }
}

@media (max-width: 760px) {
  .encuadre-grid--aula {
    grid-template-columns: 1fr;
  }
}


