:root {
  --bg: #f4f7ff;
  --text: #223161;
  --muted: #4b5f8f;
  --primary: #223161;
  --primary-dark: #1a264c;
  --primary-light: #3258a1;
  --accent: #eab818;
  --accent-alt: #df9b1b;
  --accent-cyan: #39aae6;
  --neutral-gray: #868686;
  --card: #ffffff;
  --border: #d5def0;
  --shadow: 0 14px 36px rgba(34, 49, 97, 0.14);
  --font-family-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --gradient-brand-1: linear-gradient(135deg, #39aae6 0%, #3258a1 50%, #223161 100%);
  --gradient-brand-2: linear-gradient(135deg, #39aae6 0%, #223161 100%);
  --gradient-accent: linear-gradient(135deg, #eab818 0%, #df9b1b 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family-sans);
  background: radial-gradient(circle at 80% -20%, rgba(57, 170, 230, 0.2) 0%, rgba(57, 170, 230, 0) 48%), var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1, h2, h3,
.font-display {
  font-family: var(--font-family-serif);
  font-weight: 700;
  color: var(--primary);
}

/* En bandas oscuras el contenedor define color claro; los títulos heredan */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white .font-display,
.public-hero h1,
.public-hero h2,
.public-hero h3,
.verify-hero-band h1,
.verify-hero-band h2,
.verify-hero-band h3 {
  color: inherit;
}

/* Superficies claras: títulos con color de marca (anulan .text-white en ancestros) */
section.bg-white h1,
section.bg-white h2,
section.bg-white h3,
section.bg-slate-50 h1,
section.bg-slate-50 h2,
section.bg-slate-50 h3,
.home-bestsellers-surface h1,
.home-bestsellers-surface h2,
.home-bestsellers-surface h3,
.impact-stories-section h1,
.impact-stories-section h2,
.impact-stories-section h3,
h1.text-brand-600,
h2.text-brand-600,
h3.text-brand-600,
h1.home-bestsellers-title,
h2.home-bestsellers-title {
  color: var(--primary);
}

.container {
  width: min(1540px, 96%);
  margin: 0 auto;
}

.utility-bar {
  background: var(--primary-dark);
  color: #d8e8ff;
  font-size: .85rem;
}

.utility-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-left {
  display: flex;
  gap: 1rem;
  color: #eef4ff;
  font-weight: 500;
}

.utility-links {
  display: flex;
  gap: .9rem;
  align-items: center;
}

.utility-links a {
  color: #d8e8ff;
  text-decoration: none;
  transition: color .2s ease;
}

.utility-links a:hover {
  color: #fff;
}

.utility-cta {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-cyan));
  color: #fff !important;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 28px rgba(13, 27, 61, 0.12);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand img {
  height: 72px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-item {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  min-width: 220px;
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .55rem;
}

.submenu a {
  display: block;
  padding: .45rem .55rem;
  border-radius: 8px;
  font-size: .92rem;
}

.submenu a:hover {
  background: rgba(57, 170, 230, 0.1);
}

.has-submenu:hover .submenu {
  display: block;
}

.btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  padding: .7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  display: inline-block;
  transition: transform .2s ease, box-shadow .25s ease;
  box-shadow: 0 8px 18px rgba(34, 49, 97, 0.28);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(34, 49, 97, 0.34);
}

.btn-sm {
  padding: .45rem .8rem;
}

.btn-ghost {
  background: #fff;
  color: var(--primary) !important;
  border: 1px solid #bed0f2;
  box-shadow: none;
}

.hero {
  padding: 72px 0 40px;
}

.hero-reference {
  background:
    radial-gradient(circle at 78% -20%, rgba(57, 170, 230, 0.25), rgba(57, 170, 230, 0) 50%),
    linear-gradient(180deg, #f8fbff, transparent);
}

.hero-reference-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.1rem;
  align-items: stretch;
}

.hero-copy p {
  color: var(--muted);
  max-width: 62ch;
}

.hero-pro h1 {
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1.12;
  margin: .4rem 0 .8rem;
}

.hero-reference-copy h1 {
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 1.1;
  margin: .45rem 0 .9rem;
}

.eyebrow {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(57, 170, 230, 0.14);
  color: var(--primary-light);
  font-size: .8rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.hero-tags {
  margin-top: .9rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.hero-tags span {
  background: rgba(50, 88, 161, 0.1);
  color: var(--primary);
  border: 1px solid rgba(50, 88, 161, 0.2);
  border-radius: 999px;
  padding: .3rem .6rem;
  font-size: .82rem;
  font-weight: 600;
}

.hero-slider-mock {
  background:
    linear-gradient(115deg, rgba(34, 49, 97, 0.93) 0 58%, rgba(34, 49, 97, 0.32) 100%),
    radial-gradient(circle at 70% 22%, rgba(57, 170, 230, 0.7), rgba(57, 170, 230, 0) 42%),
    linear-gradient(135deg, #1c2c59, #3258a1);
  color: #fff;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-item {
  margin-bottom: .55rem;
  opacity: .92;
}

.slide-item h3 {
  margin: .2rem 0;
  font-size: 1.1rem;
  line-height: 1.2;
  max-width: 28ch;
}

.slide-item p {
  margin: 0;
  color: #d8ecff;
}

.slide-item.is-active {
  opacity: 1;
}

.slide-kicker {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9fd6fb;
  font-weight: 700;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.05rem;
  box-shadow: var(--shadow);
}

.glass {
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(241, 247, 255, .92));
  backdrop-filter: blur(8px);
}

.hero-media {
  min-height: 335px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(110deg, rgba(34, 49, 97, 0.92) 0 55%, rgba(34, 49, 97, 0.28) 100%),
    radial-gradient(circle at 78% 34%, rgba(57, 170, 230, 0.75), rgba(57, 170, 230, 0.02) 42%),
    linear-gradient(135deg, #1c2c59, #3258a1);
  color: #fff;
}

.hero-media-content h3 {
  margin: .2rem 0 .45rem;
  font-size: 1.4rem;
  line-height: 1.25;
  max-width: 24ch;
}

.hero-media-content p {
  margin: .25rem 0 .8rem;
  color: #def0ff;
}

.hero-media-kicker {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #a8d7f3;
  font-weight: 700;
}

.hero-dots {
  display: flex;
  gap: .45rem;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .36);
}

.hero-dots .is-active {
  background: #fff;
}

.feature-list {
  margin: .8rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.feature-list li {
  margin: .35rem 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .9rem;
  margin-top: 1rem;
}

.kpi {
  background: linear-gradient(180deg, #fff, #f7faff);
  border: 1px solid #cfdaf0;
  border-radius: 14px;
  padding: .95rem;
  transition: transform .2s ease;
  box-shadow: 0 8px 18px rgba(34, 49, 97, .08);
}

.kpi:hover {
  transform: translateY(-2px);
}

.kpi strong {
  color: var(--primary);
  font-size: 1.35rem;
}

.metrics-band {
  background: linear-gradient(180deg, rgba(34, 49, 97, 0.04), rgba(57, 170, 230, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-title {
  margin-top: 0;
}

.program-grid .card {
  min-height: 185px;
}

.section {
  padding: 40px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(57, 170, 230, 0.12), rgba(255, 255, 255, 0));
}

.section-actions {
  margin-top: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.course-card h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
}

.course-card p {
  color: var(--muted);
}

.course-card a {
  display: inline-flex;
  align-items: center;
  margin-top: .35rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.course-card a:hover {
  color: var(--primary-light);
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 14% -20%, rgba(57, 170, 230, 0.16), rgba(57, 170, 230, 0) 46%),
    linear-gradient(180deg, #fff, #f3f7ff);
  padding: 32px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(34, 49, 97, 0.08);
  margin-bottom: 1rem;
}

.footer-top-left strong {
  color: var(--primary);
  display: block;
  margin-bottom: .2rem;
}

.footer-top-left p {
  margin: 0;
  color: var(--muted);
}

.footer-top-cta {
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
}

.footer-grid h5,
.footer-grid h4 {
  margin: .2rem 0 .6rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: .3rem 0;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-brand p {
  margin: .35rem 0;
}

.footer-contact-pills {
  margin-top: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.footer-contact-pills span {
  border: 1px solid #c6d6f2;
  background: #f8fbff;
  border-radius: 999px;
  padding: .3rem .65rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .84rem;
}

.footer-muted {
  color: var(--muted);
  font-size: .92rem;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
}

.footer-bottom-links {
  display: flex;
  gap: .9rem;
}

.footer-bottom-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

.alert {
  background: rgba(57, 170, 230, 0.1);
  color: var(--primary);
  border: 1px solid rgba(57, 170, 230, 0.4);
  padding: .8rem;
  border-radius: 10px;
}

.mt-24 {
  margin-top: 24px;
}

.menu-toggle {
  display: none;
}

input,
textarea,
select {
  width: 100%;
  padding: .7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .utility-row {
    flex-direction: column;
    padding: .5rem 0;
    align-items: flex-start;
  }

  .utility-left {
    flex-wrap: wrap;
    gap: .55rem;
  }

  .utility-links {
    flex-wrap: wrap;
  }

  .hero-reference-grid,
  .kpis,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top-cta {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: inline-block;
  }

  .brand img {
    height: 57px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: grid;
    gap: .7rem;
  }

  .submenu {
    position: static;
    display: none;
    min-width: auto;
    box-shadow: none;
    border: 0;
    padding: .2rem 0 .4rem .6rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .main-nav.open .has-submenu.is-submenu-open > .submenu {
    display: grid;
    gap: .2rem;
  }
}

/* OVERRIDES FOR NEW UI */
.utility-bar {
  background: var(--text);
  color: #fff;
  font-size: .8rem;
}

.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  min-height: auto;
}

.utility-left.d-flex {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.utility-left a {
  color: #eef4ff;
  text-decoration: none;
  transition: color .2s ease;
}

.utility-left a:hover {
  color: var(--accent-cyan);
}

.utility-contact i,
.utility-cert i {
  color: var(--accent-cyan);
  margin-right: 2px;
}

.utility-links-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.2rem;
  flex-wrap: wrap;
}

.utility-links-left a i {
  color: #8da1ce;
  margin-right: 3px;
}

.utility-social {
  display: flex;
  gap: .6rem;
}

.utility-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #fff;
  font-size: .9rem;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.utility-social a:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--accent-cyan);
}

/* Utility bar: compacta y de una sola linea en escritorio */
@media (min-width: 992px) {
  .utility-row {
    min-height: 34px;
    padding: .35rem 0;
    gap: .65rem;
  }

  .utility-left {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .utility-contact,
  .utility-cert {
    white-space: nowrap;
    font-size: .76rem;
    line-height: 1.15;
  }

  .utility-links-left {
    flex-wrap: nowrap;
    gap: .65rem;
    padding-left: .8rem;
    min-width: 0;
  }

  .utility-links-left a {
    white-space: nowrap;
    font-size: .73rem;
    line-height: 1.1;
  }

  .utility-social {
    flex-shrink: 0;
    gap: .45rem;
  }

  .utility-social a {
    width: 24px;
    height: 24px;
    font-size: .75rem;
  }
}

/* En pantallas intermedias, ocultar enlaces secundarios para mantener una sola fila */
@media (min-width: 992px) and (max-width: 1360px) {
  .utility-links-left a:nth-last-child(-n+2) {
    display: none;
  }
}

.header-row {
  min-height: 80px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}

.main-nav a:hover {
  color: var(--primary-light);
}

.btn-cyan.rounded-pill {
  background: var(--accent-cyan);
  color: #fff !important;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(57, 170, 230, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cyan.rounded-pill:hover {
  background: #2a92cd;
  box-shadow: 0 6px 16px rgba(57, 170, 230, 0.5);
  transform: translateY(-1px);
}

/* Cart drawer (public cart integration) */
.mc-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 15, 32, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  z-index: 1060;
}

.mc-cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mc-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: min(430px, 100%);
  height: 100vh;
  background: #fff;
  box-shadow: -18px 0 42px rgba(5, 23, 56, 0.24);
  transform: translateX(100%);
  transition: .3s ease;
  z-index: 1061;
  display: flex;
  flex-direction: column;
}

.mc-cart-drawer.is-open {
  transform: translateX(0);
}

.mc-cart-head {
  padding: 22px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-cart-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.mc-cart-close {
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  width: 36px;
  height: 36px;
}

.mc-cart-body {
  flex: 1;
  overflow: auto;
  padding: 14px 20px;
}

.mc-cart-item {
  border: 1px solid #e7edf7;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.mc-cart-item-name {
  margin: 0 0 6px;
  font-size: .95rem;
  font-weight: 700;
}

.mc-cart-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mc-cart-remove {
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: .85rem;
}

.mc-cart-foot {
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px 20px;
}

.mc-cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero {
  padding: 0;
}

.hero-biomedical {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay-curved {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
  background: linear-gradient(100deg, rgba(23, 43, 90, 1) 0%, rgba(23, 43, 90, 1) 45%, rgba(23, 43, 90, 0.85) 55%, transparent 68%);
  display: flex;
  align-items: center;
}

.hero-container {
  width: 100%;
}

.hero-copy-box {
  max-width: 600px;
  padding-right: 20px;
}

.hero-copy-box h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-date {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
}

.btn-cyan-bright,
.btn-brand-accent {
  display: inline-block;
  background: var(--accent-cyan);
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: .8rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(57, 170, 230, 0.4);
  text-decoration: none;
  transition: all .2s ease;
  border: none;
  cursor: pointer;
}

.btn-cyan-bright:hover,
.btn-brand-accent:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 18px rgba(50, 88, 161, 0.45);
  transform: translateY(-2px);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all .2s ease;
}

.slider-nav:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.slider-nav.prev {
  left: 2%;
}

.slider-nav.next {
  right: 2%;
}

.hero-dots-center {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.hero-dots-center span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  display: block;
  cursor: pointer;
}

.hero-dots-center span.is-active {
  background: #fff;
}

@media (max-width: 960px) {
  .hero-biomedical {
    height: auto;
    min-height: 500px;
  }

  .hero-overlay-curved {
    background: linear-gradient(100deg, rgba(23, 43, 90, 0.95) 0%, rgba(23, 43, 90, 0.85) 100%);
  }

  .hero-copy-box {
    padding: 3rem 0;
    text-align: center;
    margin: 0 auto;
  }

  .utility-left.d-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }

  .utility-links-left {
    border-left: none;
    padding-left: 0;
  }

  .slider-nav {
    display: none;
  }
}

/* FOOTER OVERRIDES */
.site-footer {
  margin-top: 0;
  border-top: none;
  background: var(--text);
  /* Matches top header bar */
  color: #d1def0;
  padding: 60px 0 32px;
}

.footer-top-cta-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border: none;
  border-radius: 16px;
  padding: 1.8rem 2.2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 3rem;
  color: #fff;
}

.footer-top-left strong {
  color: #fff;
  font-size: 1.2rem;
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
}

.footer-top-left p {
  margin: 0;
  color: #e5f2ff;
  font-size: 1.05rem;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
}

/* Makes the dark logo white */
.footer-grid {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
}

.footer-grid h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-grid h5 i {
  color: var(--accent-cyan);
  font-size: .95rem;
}

.footer-grid a {
  color: #a4bed9;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-grid a i {
  font-size: 0.8rem;
  opacity: 0.6;
  transition: transform .2s ease;
}

.footer-grid a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-grid a:hover i {
  opacity: 1;
  transform: translateX(2px);
  color: var(--accent-cyan);
}

.footer-muted {
  color: #8da1ce;
}

.footer-location {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8da1ce;
}

.footer-location i {
  color: var(--accent-cyan);
  margin-right: 4px;
}

.footer-contact-pills {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.2rem;
}

.footer-contact-pills span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: .6rem .8rem;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-pills span i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
  color: #8da1ce;
}

.footer-bottom-links a {
  color: #a4bed9;
}

.footer-bottom-links a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .footer-top-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .footer-top-cta-banner .btn-brand-accent {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}

/* Header redesign - premium CRO */
.utility-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 58%, var(--accent-cyan) 140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.utility-row {
  gap: .8rem;
  padding: .42rem 0;
}

.utility-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  min-width: 0;
}

.utility-contact,
.utility-cert {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #f0f6ff;
  text-decoration: none;
  font-size: .74rem;
  white-space: nowrap;
}

.utility-contact:hover,
.utility-cert:hover {
  color: #bfe9ff;
}

.utility-links-left {
  display: flex;
  align-items: center;
  gap: .55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: .7rem;
  min-width: 0;
}

.utility-links-left a {
  color: #d9e9ff;
  text-decoration: none;
  font-size: .7rem;
  white-space: nowrap;
}

.utility-links-left a:hover {
  color: #ffffff;
}

.utility-social a {
  width: 24px;
  height: 24px;
  font-size: .74rem;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.utility-social a:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #dde8f8;
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 28px rgba(13, 27, 61, 0.12);
}

.header-row {
  min-height: 78px;
  gap: 1rem;
}

.brand img {
  height: 72px;
}

.main-nav {
  gap: 1.2rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .92rem;
  font-weight: 600;
  color: #334872;
}

.main-nav a:hover {
  color: #0a63a5;
}

/* Cabecera pública — usuario logueado: compacto, 2 líneas (nombre / email), sin heredar “look” de enlaces nav */
.site-header nav.main-nav .public-nav-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}

.site-header nav.main-nav a.public-user-chip {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 0.45rem;
  max-width: min(210px, 34vw);
  padding: 0.08rem 0.35rem 0.08rem 0.06rem;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1e3a5f;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header nav.main-nav a.public-user-chip:hover {
  background: #f4f7ff;
  border-color: #c9dcf0;
  box-shadow: 0 1px 8px rgba(34, 49, 97, 0.06);
  color: #1e3a5f;
}

.site-header nav.main-nav .public-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #15365f;
  background: linear-gradient(145deg, #5ee7df 0%, #2de4e3 42%, #12c1c9 100%);
  box-shadow: 0 1px 5px rgba(7, 155, 174, 0.28);
}

.site-header nav.main-nav .public-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
}

.site-header nav.main-nav .public-user-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: #223161;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.site-header nav.main-nav .public-user-email {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.site-header nav.main-nav a.public-user-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 9px;
  color: #7c8ca5;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header nav.main-nav a.public-user-logout:hover {
  background: #f1f5f9;
  color: #334872;
}

.site-header nav.main-nav a.cart-icon {
  position: relative;
  width: 36px;
  height: 36px;
  margin-left: 0.1rem;
  padding: 0;
  border-radius: 50%;
  font-size: 0.92rem;
  color: #223161;
  background: #eef6ff;
  border: 1px solid #c9dcf0;
  box-shadow: 0 1px 6px rgba(34, 49, 97, 0.07);
  justify-content: center;
}

.site-header nav.main-nav a.cart-icon:hover {
  background: #e4f0ff;
  border-color: #9ec9ef;
  color: #1a365d;
}

.site-header nav.main-nav a.cart-icon .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border: 2px solid #fff;
}

@media (max-width: 960px) {
  .main-nav.open .public-nav-user-wrap {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0 0;
    margin-top: 0.35rem;
    border-top: 1px solid #e8eff9;
  }

  .site-header .main-nav.open a.public-user-chip {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .site-header nav.main-nav a.public-user-chip {
    max-width: min(52vw, 175px);
  }

  .site-header nav.main-nav .public-user-email {
    display: none;
  }
}

.main-nav .fa-gem {
  color: var(--accent-cyan);
}

.has-submenu>a .fa-chevron-down {
  margin-left: .12rem;
  transition: transform .2s ease;
}

.has-submenu:hover>a .fa-chevron-down,
.has-submenu:focus-within>a .fa-chevron-down,
.has-submenu.is-open>a .fa-chevron-down {
  transform: rotate(180deg);
}

.site-header .has-submenu {
  position: relative;
  padding-bottom: .55rem;
  margin-bottom: -.55rem;
}

.submenu {
  top: calc(100% - .05rem);
  border-radius: 14px;
  border: 1px solid #d8e6fb;
  box-shadow: 0 14px 28px rgba(16, 44, 96, 0.12);
  padding: .55rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.site-header .has-submenu:hover .submenu,
.site-header .has-submenu:focus-within .submenu,
.site-header .has-submenu.is-open .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  color: #2d4068;
  font-weight: 500;
  border-radius: 9px;
}

.submenu a:hover {
  background: #eef4fb;
  color: #0a63a5;
}

@media (max-width: 960px) {
  .site-header .has-submenu {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .site-header .main-nav.open .has-submenu > a {
    justify-content: space-between;
    width: 100%;
  }

  .site-header .main-nav.open .has-submenu.is-submenu-open > a .fa-chevron-down {
    transform: rotate(180deg);
  }
}

.btn-outline-pill {
  border: 1px solid #9ec7ef;
  color: #1d4377 !important;
  background: #f6fbff;
  border-radius: 999px;
  padding: .52rem 1rem;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-outline-pill:hover {
  background: #e8f4ff;
  border-color: #6fb4eb;
  color: #0e4f8b !important;
}

.btn-cyan.rounded-pill {
  padding: .52rem 1.1rem;
  font-size: .86rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}

@media (max-width: 1360px) {
  .utility-links-left a:nth-last-child(-n+3) {
    display: none;
  }
}

@media (max-width: 992px) {
  .utility-row {
    flex-direction: column;
    align-items: flex-start;
    padding: .55rem 0;
  }

  .utility-left {
    width: 100%;
  }

  .utility-links-left {
    border-left: 0;
    padding-left: 0;
    overflow-x: auto;
    width: 100%;
    padding-bottom: .12rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .utility-links-left::-webkit-scrollbar {
    display: none;
  }

  .utility-social {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Public pages - premium system */
.public-page {
  padding: 2.2rem 0 3rem;
}

.public-hero {
  background: var(--gradient-brand-1);
  color: #fff;
  border-radius: 22px;
  padding: 2.1rem 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 20px 42px rgba(34, 49, 97, 0.24);
}

.public-hero h1 {
  margin: 0 0 .55rem;
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  line-height: 1.15;
}

.public-hero p {
  margin: 0;
  color: #d8eaff;
  max-width: 760px;
}

.public-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.public-grid {
  display: grid;
  gap: 1rem;
}

.public-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-panel {
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 66, 124, 0.09);
  padding: 1.15rem;
}

.public-panel h2,
.public-panel h3 {
  margin-top: 0;
}

.public-eyebrow {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #9ec9ef;
  padding: .2rem .65rem;
  background: #ecf7ff;
  color: #0e5183;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: .6rem;
}

.public-list {
  margin: .5rem 0 0;
  padding-left: 1.05rem;
}

.public-list li {
  margin-bottom: .28rem;
}

.public-form label {
  display: block;
  font-weight: 600;
  color: #2e4270;
  margin-bottom: .25rem;
}

.public-form input,
.public-form textarea {
  width: 100%;
  border: 1px solid #cfddf1;
  border-radius: 12px;
  padding: .7rem .8rem;
  margin-bottom: .8rem;
  font-family: inherit;
}

/* Verificador de certificados */
.verify-page-wrap {
  padding: 0 0 3.5rem;
  background: linear-gradient(180deg, #eef4fb 0%, #f8fafc 38%, #f1f5f9 100%);
}

.verify-hero-band {
  background: var(--gradient-brand-1);
  color: #fff;
  padding: 2.4rem 0 3.2rem;
  text-align: center;
}

.verify-hero-band h1 {
  margin: 0 0 .55rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.15;
}

.verify-hero-band p {
  margin: 0 auto;
  max-width: 40rem;
  color: #d8eaff;
  font-size: .98rem;
  line-height: 1.65;
}

.verify-main-card {
  max-width: 44rem;
  margin: -2rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.verify-card-shell {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(34, 49, 97, 0.14);
  border: 1px solid #dbe6f5;
}

.verify-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 1.75rem;
  background: var(--gradient-brand-2);
  color: #fff;
}

.verify-card-head-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .85rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.verify-card-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.verify-card-head p {
  margin: .25rem 0 0;
  font-size: .86rem;
  color: #bae6fd;
}

.verify-card-body {
  padding: 1.75rem;
}

.verify-code-input {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 15px 17px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.verify-code-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.verify-code-input.is-valid-hint { border-color: #22c55e; }
.verify-code-input.is-invalid-hint { border-color: #f59e0b; }

.verify-field-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
  font-size: .88rem;
  font-weight: 700;
  color: #1e293b;
}

.verify-field-help {
  margin-top: .45rem;
  font-size: .78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.verify-tip-box {
  margin-top: 1.25rem;
  border-radius: 16px;
  border: 1px solid #bae6fd;
  background: linear-gradient(180deg, #eef4fb 0%, #dceaf8 100%);
  padding: 1.15rem;
}

.verify-tip-box h3 {
  margin: 0 0 .75rem;
  font-size: .88rem;
  font-weight: 700;
  color: #0c4a6e;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.verify-tip-grid {
  display: grid;
  gap: .75rem;
}

@media (min-width: 640px) {
  .verify-tip-grid { grid-template-columns: 1fr 1fr; }
}

.verify-tip-item {
  display: flex;
  gap: .75rem;
  padding: .85rem;
  border-radius: .85rem;
  background: rgba(255, 255, 255, 0.85);
}

.verify-tip-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .65rem;
  display: grid;
  place-items: center;
  background: #dceaf8;
  color: var(--primary-light);
  flex-shrink: 0;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .verify-actions { flex-direction: row; }
}

.verify-btn-primary,
.verify-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: .85rem;
  padding: .95rem 1.35rem;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.verify-btn-primary {
  flex: 1;
  border: 0;
  color: #fff;
  background: var(--gradient-brand-2);
  box-shadow: 0 10px 24px rgba(34, 49, 97, 0.22);
}

.verify-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.verify-btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.verify-btn-outline {
  border: 2px dashed #86b8e7;
  color: var(--primary-light);
  background: #eef4fb;
}

.verify-btn-outline:hover:not(:disabled) {
  background: #dceaf8;
}

.verify-result-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  animation: verifyFadeUp .45s ease forwards;
}

.verify-result-panel[hidden],
.verify-qr-wrap[hidden] { display: none !important; }

@keyframes verifyFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.verify-result-error {
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fef2f2;
  padding: 1.25rem;
}

.verify-result-success {
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
  padding: 1.35rem;
}

.verify-result-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.verify-result-badge--ok {
  background: #059669;
  color: #fff;
}

.verify-result-badge--fail {
  background: #dc2626;
  color: #fff;
}

.verify-result-meta {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .verify-result-meta { grid-template-columns: 1fr 1fr; }
}

.verify-result-meta dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
}

.verify-result-meta dd {
  margin: .15rem 0 0;
  font-size: .92rem;
  font-weight: 600;
  color: #0f172a;
}

.verify-cert-preview {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid #dbe6f5;
  background: linear-gradient(160deg, #fff 0%, #eef4fb 100%);
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verify-cert-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(57, 170, 230, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(34, 49, 97, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.verify-cert-preview__seal {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto .65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #223161, #39aae6);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(34, 49, 97, 0.25);
  position: relative;
  z-index: 1;
}

.verify-cert-preview__label {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-light);
  position: relative;
  z-index: 1;
}

.verify-cert-preview__name {
  margin: .45rem 0 .15rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  position: relative;
  z-index: 1;
}

.verify-cert-preview__program {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  z-index: 1;
}

.verify-cert-preview__code {
  margin-top: .75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
  position: relative;
  z-index: 1;
}

.verify-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  border-radius: .75rem;
  border: 1px solid #a7f3d0;
  background: #fff;
  padding: .65rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  color: #047857;
  text-decoration: none;
}

.verify-pdf-link:hover {
  background: #ecfdf5;
  color: #065f46;
}

.verify-footer-note {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  text-align: center;
  font-size: .78rem;
  color: #64748b;
}

.verify-footer-note a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

.verify-hint-ok { color: #15803d; font-size: .78rem; font-weight: 600; margin-top: .45rem; }
.verify-hint-warn { color: #b45309; font-size: .78rem; font-weight: 600; margin-top: .45rem; }

.verify-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: verifySpin .7s linear infinite;
}

@keyframes verifySpin { to { transform: rotate(360deg); } }

.is-hidden { display: none !important; }

#qr-reader {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
}

.public-form input:focus,
.public-form textarea:focus {
  outline: none;
  border-color: #62ade3;
  box-shadow: 0 0 0 4px rgba(98, 173, 227, 0.18);
}

.public-kpis {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-kpis .kpi-box {
  border-radius: 12px;
  border: 1px solid #d8e7f8;
  background: #f7fbff;
  text-align: center;
  padding: .65rem .5rem;
  font-size: .8rem;
}

.public-kpis .kpi-box strong {
  display: block;
  color: #173b6a;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .public-grid.cols-2,
  .public-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .public-kpis {
    grid-template-columns: 1fr;
  }
}

/* Blog post detail - premium editorial */
.blog-post-hero {
  margin-bottom: 1rem;
}

.reading-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #d9e8f9;
  margin-bottom: 1rem;
  overflow: hidden;
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-light), #39aae6);
  transition: width .2s ease;
}

.blog-post-meta {
  margin-top: .95rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  font-size: .85rem;
  color: #dbeeff;
}

.blog-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.blog-post-layout {
  align-items: start;
}

.public-grid.cols-2.blog-post-split {
  grid-template-columns: minmax(0, 1fr);
}

.blog-article-shell {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dce7f7;
  box-shadow: 0 16px 34px rgba(26, 58, 112, 0.09);
  padding: 1.4rem 1.5rem;
}

.blog-post-content {
  color: #1c2e52;
  line-height: 1.78;
  font-size: 1.06rem;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  color: #162f59;
  margin: 1.35rem 0 .65rem;
  line-height: 1.3;
}

.blog-post-content p {
  margin: 0 0 1rem;
}

.blog-post-content .blog-inline-heading {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #13295a;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-post-content .blog-inline-heading:first-child {
  margin-top: 0;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: .3rem 0 1rem 1.15rem;
}

.blog-post-content a {
  color: var(--primary-light);
  font-weight: 600;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-article-cta {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5eef9;
}

.blog-article-cta h3 {
  margin: 0 0 .35rem;
  color: #17335f;
}

.blog-article-cta p {
  margin: 0;
  color: #496286;
}

.blog-post-sidebar {
  display: grid;
  gap: 1rem;
  margin-top: 1.05rem;
}

.blog-post-resources {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-resources > .public-panel {
  height: 100%;
}

.blog-resource-wide {
  grid-column: span 2;
}

.toc-list {
  margin-top: .25rem;
}

.toc-list li {
  margin-bottom: .38rem;
}

.toc-list li.toc-level-3 {
  margin-left: .85rem;
  list-style-type: circle;
}

.toc-list a {
  color: #244572;
  text-decoration: none;
  font-weight: 500;
}

.toc-list a:hover {
  color: #0d66ac;
  text-decoration: underline;
}

.share-actions {
  display: grid;
  gap: .55rem;
  align-content: start;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 10px;
  border: 1px solid #d9e6f8;
  background: #f8fbff;
  color: #25406c;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  padding: .55rem .75rem;
  transition: all .2s ease;
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-1px);
  border-color: #bcd4ef;
  background: #eef6ff;
  color: #1a3560;
}

.share-linkedin i { color: #0a66c2; }
.share-whatsapp i { color: #25d366; }
.share-facebook i { color: #1877f2; }
.share-copy i { color: #2e5a92; }

.share-feedback {
  margin: .55rem 0 0;
  font-size: .8rem;
  color: #40608f;
}

@media (max-width: 1100px) {
  .public-grid.cols-2.blog-post-split {
    grid-template-columns: 1fr;
  }

  .blog-article-shell,
  .blog-post-resources {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .blog-article-shell {
    padding: 1.1rem;
  }

  .blog-post-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .blog-post-resources {
    grid-template-columns: 1fr;
  }

  .blog-resource-wide {
    grid-column: auto;
  }
}

/* Course detail - premium learning page */
.course-hero {
  margin-bottom: 1rem;
}

.course-hero-meta {
  margin-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  color: #dbeeff;
  font-size: .86rem;
}

.course-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.course-detail-split {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .95fr);
  align-items: start;
}

.course-main-panel {
  padding: 1.35rem;
}

.course-main-panel p {
  color: #1d335a;
  line-height: 1.68;
}

.course-main-panel h3 {
  margin: 1rem 0 .45rem;
  color: #183363;
}

.course-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 1rem 0 1.15rem;
}

.course-highlight {
  border: 1px solid #d8e7f8;
  background: #f7fbff;
  border-radius: 12px;
  padding: .7rem .75rem;
  display: grid;
  gap: .15rem;
}

.course-highlight strong {
  color: #345585;
  font-size: .76rem;
  text-transform: uppercase;
}

.course-highlight span {
  color: #123766;
  font-weight: 700;
}

.course-sidebar {
  display: grid;
  gap: 1rem;
}

.course-sticky-cta .public-actions {
  flex-direction: column;
}

.course-sticky-cta .btn {
  width: 100%;
  text-align: center;
}

.course-price {
  margin: .25rem 0;
  color: var(--primary-light);
  font-size: 1.95rem;
  font-weight: 800;
}

.course-note {
  margin: 0 0 .7rem;
  color: #4b628b;
  font-size: .9rem;
}

@media (max-width: 1100px) {
  .course-detail-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .course-highlight-grid {
    grid-template-columns: 1fr;
  }
}

/* Public checkout - premium */
.checkout-hero {
  margin-bottom: 1rem;
}

.checkout-trust {
  margin-top: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .85rem;
  color: #dcecff;
  font-size: .85rem;
}

.checkout-trust span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.checkout-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .9fr);
  align-items: start;
}

.checkout-form-card {
  padding: 1.3rem;
}

.checkout-help {
  margin: 0 0 .8rem;
  color: #48638f;
  font-size: .9rem;
}

.checkout-pay-btn {
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .25rem;
}

.checkout-error {
  margin: .65rem 0 0;
  color: #b91c1c;
  font-size: .86rem;
  font-weight: 600;
  min-height: 1.1rem;
}

.checkout-sidebar {
  display: grid;
  gap: 1rem;
}

.checkout-summary h3 {
  margin-bottom: .65rem;
}

.checkout-course-title {
  margin: 0 0 .6rem;
  color: #1a3766;
  font-weight: 700;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #d8e5f7;
  padding: .45rem 0;
  color: #385785;
}

.checkout-line[hidden] {
  display: none !important;
}

.checkout-line strong {
  color: #1b3d6f;
}

.checkout-line.checkout-total {
  border-bottom: 0;
  padding-top: .65rem;
  font-size: 1.04rem;
}

.checkout-note {
  margin: .65rem 0 0;
  color: #58709a;
  font-size: .82rem;
}

/* Formulario checkout público — filas y documento */
.checkout-form-card .checkout-field-group {
  margin-bottom: 0.95rem;
}

.checkout-form-card .checkout-field-group label {
  display: block;
  font-weight: 600;
  color: #2e4270;
  margin-bottom: 0.28rem;
  font-size: 0.82rem;
}

.checkout-form-card .checkout-field-group input:not([type="checkbox"]):not([type="radio"]),
.checkout-form-card .checkout-field-group select {
  width: 100%;
  margin-bottom: 0;
  border: 1px solid #cfddf1;
  border-radius: 11px;
  padding: 0.62rem 0.75rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-form-card .checkout-field-group select {
  cursor: pointer;
  appearance: auto;
  min-height: 2.65rem;
}

.checkout-form-card .checkout-field-group input:not([type="checkbox"]):not([type="radio"]):focus,
.checkout-form-card .checkout-field-group select:focus {
  outline: none;
  border-color: #62ade3;
  box-shadow: 0 0 0 3px rgba(98, 173, 227, 0.2);
}

.checkout-form-row {
  display: grid;
  gap: 0.75rem 1rem;
  margin-bottom: 0.95rem;
}

.checkout-form-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-form-row--doc {
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  align-items: end;
  margin-bottom: 0.35rem;
}

.checkout-field-hint {
  margin: 0 0 0.95rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}

@media (max-width: 560px) {
  .checkout-form-row--2,
  .checkout-form-row--doc {
    grid-template-columns: 1fr;
  }

  .checkout-form-row--doc {
    align-items: stretch;
  }
}

/* Franja de medios de pago — checkout público */
.checkout-payment-trust {
  margin-top: 1.75rem;
  border-radius: 16px;
  border: 1px solid #dbe6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  box-shadow: 0 10px 28px rgba(34, 49, 97, 0.07);
  overflow: hidden;
}

.checkout-payment-trust__inner {
  padding: 1.1rem 1.25rem 1.15rem;
}

.checkout-payment-trust__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #c9dcf0;
}

.checkout-payment-trust__badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0e5183;
  background: linear-gradient(145deg, #ecf7ff 0%, #d8efff 100%);
  border: 1px solid #b8daf5;
  font-size: 0.95rem;
}

.checkout-payment-trust__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #223161;
  letter-spacing: -0.02em;
}

.checkout-payment-trust__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.checkout-payment-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.checkout-payment-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #e2ebf7;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.checkout-payment-trust__item--muted {
  background: #f8fafc;
}

.checkout-payment-trust__chip {
  width: 40px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f1f5f9;
  color: #1e3a5f;
  font-size: 1.15rem;
}

.checkout-payment-trust__item--muted .checkout-payment-trust__chip {
  background: #e8f0fe;
  color: #334155;
}

.checkout-payment-trust__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .checkout-payment-trust__list {
    gap: 0.45rem;
  }
}

@media (min-width: 901px) {
  .checkout-sidebar {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 1100px) {
  .checkout-split {
    grid-template-columns: 1fr;
  }
}

/* Blog post - Platzi-inspired refinement */
.blog-pro-header {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #13295a 0%, #1a4a84 58%, #1168a1 100%);
  margin-bottom: 1rem;
  min-height: 260px;
  border: 1px solid #1a3f73;
}

.blog-pro-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-pro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 20, 45, .88) 12%, rgba(13, 49, 91, .76) 62%, rgba(17, 104, 161, .56) 100%);
}

.blog-pro-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 1.25rem 1.35rem 1.45rem;
}

.blog-pro-breadcrumb {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: #d3e7ff;
  margin-bottom: .7rem;
}

.blog-pro-breadcrumb a {
  color: #e3f2ff;
  text-decoration: none;
  font-weight: 600;
}

.blog-pro-content h1 {
  margin: 0 0 .45rem;
  font-size: clamp(1.55rem, 3.5vw, 2.65rem);
  line-height: 1.14;
}

.blog-pro-content p {
  margin: 0;
  color: #d7eaff;
  max-width: 760px;
}

.blog-pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 1rem;
  align-items: start;
}

.blog-article-shell {
  max-width: none;
  width: 100%;
}

.blog-pro-sidebar {
  display: grid;
  gap: 1rem;
}

.blog-pro-related {
  margin-top: 1.2rem;
}

.blog-pro-related h2 {
  margin: 0 0 .7rem;
  color: #1d3562;
}

.blog-pro-related .public-panel h3 {
  margin-bottom: .4rem;
  font-size: 1.05rem;
}

.blog-pro-related .public-panel h3 a {
  color: #173765;
  text-decoration: none;
}

.blog-pro-related .public-panel h3 a:hover {
  color: #0f69ad;
}

@media (min-width: 1000px) {
  .blog-pro-sidebar {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 1000px) {
  .blog-pro-layout {
    grid-template-columns: 1fr;
  }
}

/* Blog índice público */
.blog-index-page .blog-index-hero {
  margin-bottom: 1.25rem;
}

.blog-index-lead {
  max-width: 640px;
  color: #4a5f82;
  margin: 0.35rem 0 0;
  line-height: 1.55;
}

.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #c9d8ee;
  color: #1c3f72;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blog-cat-pill:hover {
  border-color: var(--primary-light);
  color: #0b5088;
  background: #f2f8ff;
}

.blog-cat-pill.is-active {
  border-color: #1168a1;
  background: linear-gradient(135deg, #13295a 0%, #1168a1 100%);
  color: #fff;
}

.blog-featured-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 1.5rem;
}

.blog-list-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.5rem 0 1rem;
}

.blog-list-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #13295a;
}

.blog-list-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #5a6f92;
}

.blog-list-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-card {
  border-radius: 16px;
  border: 1px solid #dce7f7;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 58, 112, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 58, 112, 0.12);
}

.blog-card--featured {
  border-color: #b8d4f0;
}

.blog-card--empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  text-align: center;
}

.blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e8f0fb 0%, #dcecf9 100%);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b8ab8;
  font-size: 2.25rem;
}

.blog-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(19, 41, 90, 0.92);
  color: #fff;
}

.blog-card__body {
  padding: 1rem 1.05rem 1.15rem;
}

.blog-card__meta {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-light);
  margin-bottom: 0.35rem;
}

.blog-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #13295a;
}

.blog-card__excerpt {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: #4a5f82;
  line-height: 1.5;
}

.blog-card__cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1168a1;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.blog-pagination__info {
  font-size: 0.88rem;
  color: #5a6f92;
}

/* Libro de reclamaciones */
.claims-layout {
  align-items: start;
}

.claims-definitions {
  margin: 1rem 0;
  padding: .9rem;
  border-radius: 12px;
  background: #f5f9ff;
  border: 1px solid #dbe8f8;
}

.claims-definitions p {
  margin: 0 0 .5rem;
}

.claims-definitions p:last-child {
  margin-bottom: 0;
}

.claims-help {
  display: block;
  margin: -.45rem 0 .8rem;
  font-size: .82rem;
  color: #526a92;
}

.claims-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: .7rem .8rem;
  margin-bottom: .8rem;
}

.claims-errors p {
  margin: 0;
}

.claims-success {
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  color: #14532d;
  border-radius: 12px;
  padding: .8rem .9rem;
  margin-bottom: .9rem;
}

.claims-success p {
  margin: 0 0 .3rem;
}

.claims-success p:last-child {
  margin-bottom: 0;
}

.claims-check {
  margin: .3rem 0 .45rem;
}

.claims-check label {
  display: inline-flex;
  align-items: flex-start;
  gap: .45rem;
  font-weight: 500;
  margin-bottom: 0;
}

.claims-check input[type="checkbox"] {
  margin-top: .2rem;
}

.form-error {
  display: block;
  color: #b91c1c;
  font-size: .82rem;
  margin: -.45rem 0 .7rem;
}

/* Program search */
.programs-search-shell {
  margin-bottom: 1rem;
}

.programs-search-head h2 {
  margin-bottom: .35rem;
}

.programs-search-head p {
  margin-top: 0;
  color: #4f6488;
}

.programs-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.programs-search-grid > div {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.programs-search-grid > div:first-child {
  grid-column: span 2;
}

.programs-search-grid label {
  font-size: .82rem;
  font-weight: 600;
  color: #334d77;
}

.programs-search-grid input,
.programs-search-grid select {
  border: 1px solid #cfddf1;
  border-radius: 10px;
  padding: .62rem .7rem;
  font-family: inherit;
}

.programs-search-grid input:focus,
.programs-search-grid select:focus {
  outline: none;
  border-color: #62ade3;
  box-shadow: 0 0 0 4px rgba(98, 173, 227, 0.16);
}

.programs-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin: .9rem 0;
}

.programs-results-head p {
  margin: 0;
  color: #314e79;
  font-weight: 600;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* Catálogo /programas/ — tarjetas con jerarquía visual y doble CTA (CEO) */
#programResultsGrid.public-grid,
.program-cards-grid.public-grid {
  gap: 1.25rem;
  align-items: stretch;
}

.home-live-carousel {
  position: relative;
}

.home-live-carousel__viewport {
  overflow: hidden;
}

.home-live-carousel__track {
  display: flex;
  gap: 1.25rem;
  transition: transform .55s ease;
  will-change: transform;
}

.home-live-carousel__slide {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  max-width: calc((100% - 2.5rem) / 3);
}

.home-live-carousel__slide .program-card {
  height: 100%;
}

.home-live-carousel__next {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #c8d9ef;
  background: #fff;
  color: #223161;
  box-shadow: 0 10px 30px rgba(34, 49, 97, .15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.home-live-carousel__next:hover {
  background: #eaf2fc;
}

.home-live-carousel__next:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.learning-routes-v2 {
  border-radius: 20px;
  padding: 1.05rem;
  background: radial-gradient(circle at 24% 0%, var(--primary-light) 0%, #223161 46%, #1a264c 100%);
  box-shadow: 0 24px 60px rgba(34, 49, 97, .24);
}

.learning-routes-v2__grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.learning-routes-v2__card {
  border: 1px solid rgba(184, 218, 245, .24);
  border-radius: 14px;
  background: rgba(26, 38, 76, .58);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.learning-routes-v2__card[open] {
  border-color: rgba(57, 170, 230, .48);
  box-shadow: 0 14px 32px rgba(26, 38, 76, .32);
}

.learning-routes-v2__card:hover {
  transform: translateY(-1px);
}

.learning-routes-v2__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .72rem;
  padding: .85rem .95rem;
}

.learning-routes-v2__summary::-webkit-details-marker { display: none; }

.learning-routes-v2__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #39aae6;
  background: rgba(57, 170, 230, .14);
  border: 1px solid rgba(57, 170, 230, .36);
}

.learning-routes-v2__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.learning-routes-v2__name {
  color: #f8fafc;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
}

.learning-routes-v2__count {
  color: #8fd6fb;
  font-size: .75rem;
  font-weight: 700;
  margin-top: .22rem;
}

.learning-routes-v2__arrow {
  margin-left: auto;
  color: #9ac8ee;
  transition: transform .2s ease;
}

.learning-routes-v2__card[open] .learning-routes-v2__arrow {
  transform: rotate(180deg);
}

.learning-routes-v2__body {
  padding: 0 .95rem .85rem;
}

.learning-routes-v2__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .42rem;
}

.learning-routes-v2__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  text-decoration: none;
  color: #d6eafc;
  font-size: .82rem;
  font-weight: 600;
  padding: .44rem .55rem;
  border-radius: 9px;
  background: rgba(34, 49, 97, .72);
  border: 1px solid rgba(184, 218, 245, .25);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.learning-routes-v2__list a:hover {
  color: #ffffff;
  background: rgba(57, 170, 230, .24);
  border-color: rgba(57, 170, 230, .55);
}

@media (min-width: 768px) {
  .learning-routes-v2__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .learning-routes-v2__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.program-card--pro.public-panel {
  padding: 0;
  border-radius: 18px;
  border-color: #dbe6f5;
  transition: border-color .2s ease, box-shadow .22s ease, transform .2s ease;
  overflow: hidden;
}

/* Anula el gap de .program-card entre franja, media e inner (evita “hueco” blanco). */
.program-card.program-card--pro {
  gap: 0;
}

.program-card--pro:hover {
  border-color: #9ec9ef;
  box-shadow: 0 18px 44px rgba(34, 49, 97, 0.12);
  transform: translateY(-3px);
}

.program-card__accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #1a264c 0%, #223161 35%, #39aae6 100%);
  flex-shrink: 0;
}

/* Franja superior integrada sobre la imagen (sin separación visual). */
.program-card__media > .program-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  width: auto;
}

.program-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #b8daf5 0%, #1a264c 100%);
}

.program-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 20, 43, 0.08) 0%, rgba(7, 20, 43, 0.26) 100%);
  pointer-events: none;
}

.program-card__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .45s ease;
  position: relative;
  z-index: 0;
}

.program-card__media-placeholder {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  opacity: .95;
}

.program-card--pro:hover .program-card__media-img {
  transform: scale(1.06);
}

.program-card__inner {
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
  min-height: 0;
}

.program-card__header {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}

.program-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #ecf7ff 0%, #d8efff 100%);
  border: 1px solid #b8daf5;
  color: #0e5183;
  font-size: 1.1rem;
}

.program-card__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  min-width: 0;
}

.program-card__area {
  font-size: .72rem;
  font-weight: 600;
  color: #4b5f8f;
  line-height: 1.25;
}

.program-card__title {
  margin: .15rem 0 0;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.program-card__title a {
  color: #223161;
  text-decoration: none;
  transition: color .2s ease;
}

.program-card__title a:hover {
  color: #39aae6;
}

.program-card__desc {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: #4b5f8f;
  flex-grow: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-card__meta.program-meta {
  margin-top: .15rem;
  gap: .5rem .85rem;
  font-size: .8rem;
  color: #355785;
}

.program-card__meta.program-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.program-card__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: .8rem;
  font-weight: 600;
  color: #223161;
}

.program-card__rating .fa-star {
  color: #eab818;
  font-size: .75rem;
}

.program-card__students {
  font-weight: 500;
  color: #64748b;
}

.program-card__price-block {
  margin-top: auto;
  padding-top: .65rem;
  border-top: 1px dashed #dbe6f5;
}

.program-card__price-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: .25rem;
}

.program-card__price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .55rem;
}

.program-card__price-old {
  font-size: .88rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.program-card__discount-pill {
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  padding: .12rem .4rem;
  border-radius: 999px;
}

.program-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #153765;
  letter-spacing: -.02em;
}

.program-card__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .35rem;
}

.btn.btn-program-buy {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .68rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .92rem;
  border: none !important;
  cursor: pointer;
  text-decoration: none;
  color: #fff !important;
  /* !important: home index carga Tailwind CDN después de site.css y resetea <a class="btn"> */
  background: linear-gradient(135deg, #223161 0%, #3258a1 48%, #39aae6 100%) !important;
  box-shadow: 0 8px 20px rgba(34, 49, 97, 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn.btn-program-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(34, 49, 97, 0.28);
  color: #fff !important;
}

.btn.btn-program-detail {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .58rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  color: #223161 !important;
  background: #fff !important;
  border: 1px solid #c9dcf0 !important;
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.btn.btn-program-detail:hover {
  border-color: #39aae6 !important;
  background: #f8fbff !important;
  color: #0e5183 !important;
}

.program-card-empty.public-panel {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1.25rem;
  color: #4b5f8f;
}

.program-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  color: #0f5184;
  background: #ecf7ff;
  border: 1px solid #b8daf5;
  border-radius: 999px;
  padding: .2rem .55rem;
}

.program-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.program-card--pro .program-card__title {
  font-size: 1.06rem;
}

.program-card p {
  margin: 0;
  color: #476189;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  font-size: .84rem;
  color: #355785;
}

.program-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
}

.program-foot strong {
  color: #153765;
}

@media (min-width: 480px) {
  .program-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn.btn-program-buy,
  .btn.btn-program-detail {
    flex: 1 1 calc(50% - .25rem);
    min-width: 140px;
  }
}

@media (max-width: 1100px) {
  .programs-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .programs-search-grid > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .programs-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .programs-search-grid {
    grid-template-columns: 1fr;
  }

  .programs-search-grid > div:first-child {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   Ficha de curso /curso/<id> — UX/UI reforzada (hero, bloques, lateral)
   -------------------------------------------------------------------------- */
.course-detail-page {
  --course-accent: linear-gradient(90deg, #1a264c 0%, #223161 38%, #39aae6 100%);
  --course-surface: #f5f8fd;
}

.course-detail-page .container {
  max-width: 1120px;
}

.course-breadcrumb {
  margin-bottom: 1rem;
}

.course-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .82rem;
  font-weight: 600;
  color: #4b628b;
}

.course-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.course-breadcrumb__list li:not(:last-child)::after {
  content: "/";
  color: #b8c8e4;
  font-weight: 500;
  margin-left: .5rem;
}

.course-breadcrumb__list a {
  color: #1a5f9e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.course-breadcrumb__list a:hover {
  color: #0e5183;
  border-bottom-color: rgba(14, 81, 131, 0.35);
}

.course-breadcrumb__current {
  color: #223161;
  max-width: min(52vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-detail-page .course-hero--enhanced {
  position: relative;
  isolation: isolate;
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.35rem;
}

/* Hero con imagen de portada (misma que cards): capas, contraste y motion */
@keyframes course-hero-bg-drift {
  0% {
    transform: scale(1.04) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(-1.4%, 0.7%);
  }
  100% {
    transform: scale(1.06) translate(0.8%, -0.5%);
  }
}

@keyframes course-hero-sheen {
  0%,
  100% {
    opacity: 0.12;
    transform: translateX(-18%) skewX(-12deg);
  }
  50% {
    opacity: 0.32;
    transform: translateX(12%) skewX(-12deg);
  }
}

@keyframes course-hero-orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-4%, 3%) scale(1.08);
  }
}

/* Imagen de portada solo dentro del bloque Inversión (columna derecha), no como fondo del hero */
.course-detail-page .course-hero__card--media {
  overflow: hidden;
}

/* Detalle curso: un poco más de ancho a la columna del video / portada */
.course-detail-page .course-hero__grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(288px, 1.02fr);
}

@media (min-width: 1200px) {
  .course-detail-page .course-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1.06fr);
  }
}

.course-hero-card__media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(42vw, 300px);
  min-height: 148px;
  background: #050c18;
}

/* Con video o imagen: más alto/ancho protagonista; precio y textos más discretos abajo */
.course-detail-page .course-hero__card--media .course-hero-card__media {
  aspect-ratio: 16 / 9;
  max-height: min(56vw, 500px);
  min-height: clamp(168px, 30vw, 320px);
  margin-inline: -0.45rem;
  width: calc(100% + 0.9rem);
}

.course-detail-page .course-hero__card--media .course-hero-card__body {
  padding: 0.65rem 0.95rem 0.85rem;
}

.course-detail-page .course-hero__card--media .course-hero-card__label {
  margin-bottom: 0.08rem;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.5);
}

.course-detail-page .course-hero__card--media .course-hero-card__price {
  margin-bottom: 0.35rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.course-detail-page .course-hero__card--media .course-hero-card__hint {
  margin-bottom: 0.42rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(214, 230, 255, 0.68);
}

.course-detail-page .course-hero__card--media .course-hero-card__promo {
  margin-bottom: 0.05rem;
}

.course-detail-page .course-hero__card--media .course-hero-card__old {
  font-size: 0.76rem;
}

.course-detail-page .course-hero__card--media .course-hero-card__pill {
  font-size: 0.58rem;
  padding: 0.08rem 0.38rem;
}

.course-detail-page .course-hero__card--media .course-hero-card__share {
  margin-top: 0;
}

.course-detail-page .course-hero__card--media .course-hero-card__share-label {
  margin-bottom: 0.28rem;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
}

.course-detail-page .course-hero__card--media .course-hero-card__share-list {
  gap: 0.32rem;
}

.course-detail-page .course-hero__card--media .course-share-btn {
  width: 2rem;
  height: 2rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.course-detail-page .course-hero__card--media .course-hero-card__share-feedback {
  margin-top: 0.38rem;
  font-size: 0.68rem;
}

.course-hero-card__media-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

.course-hero-card__media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050c18;
}

.course-hero-card__media--video .course-hero-card__media-inner {
  background: #050c18;
}

.course-hero-card__media-img {
  position: absolute;
  z-index: 0;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 38%;
  transform-origin: 52% 42%;
  animation: course-hero-bg-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.course-hero-card__media-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    165deg,
    rgba(3, 12, 28, 0.25) 0%,
    rgba(8, 24, 52, 0.45) 55%,
    rgba(4, 14, 30, 0.65) 100%
  );
  pointer-events: none;
}

.course-hero-card__media-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(134, 184, 231, 0.12) 42%,
    transparent 68%
  );
  mix-blend-mode: screen;
  animation: course-hero-sheen 9s ease-in-out infinite;
  pointer-events: none;
}

.course-hero-card__media-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.42;
  animation: course-hero-orb-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.course-hero-card__media-orb--a {
  width: 72%;
  height: 72%;
  top: -22%;
  right: -18%;
  background: radial-gradient(circle at 30% 30%, rgba(57, 170, 230, 0.9) 0%, transparent 68%);
}

.course-hero-card__media-orb--b {
  width: 65%;
  height: 65%;
  bottom: -32%;
  left: -20%;
  background: radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.72) 0%, transparent 70%);
  animation-delay: -4s;
}

.course-hero-card__media-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  box-shadow: inset 0 0 72px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.course-hero-card__media--fallback .course-hero-card__media-inner {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(57, 170, 230, 0.34), transparent 52%),
    linear-gradient(140deg, #11284f 0%, #1a264c 50%, #223161 100%);
}

.course-hero-card__media-placeholder {
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 0.55rem;
  color: #dbeeff;
  text-align: center;
}

.course-hero-card__media-placeholder i {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #e6f6ff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
}

.course-hero-card__media-placeholder span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cfe8ff;
}

@media (prefers-reduced-motion: reduce) {
  .course-hero-card__media-img,
  .course-hero-card__media-shine,
  .course-hero-card__media-orb {
    animation: none !important;
  }

  .course-hero-card__media-img {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
}

.course-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 0;
  align-items: stretch;
}

.course-hero__copy {
  padding: 2rem 1.5rem 1.85rem;
}

.course-hero__title {
  margin: 0 0 .5rem;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.course-hero__lead {
  margin: 0 0 1rem;
  color: #d8eaff;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 52ch;
}

.course-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .85rem;
}

.course-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .72rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f0f7ff;
}

.course-chip i {
  opacity: .9;
  font-size: .72rem;
}

.course-chip--muted {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbe8ff;
}

.course-detail-page .course-hero-meta--pills {
  margin-top: 0;
  margin-bottom: .75rem;
  gap: .45rem .65rem;
}

.course-detail-page .course-hero-meta--pills span {
  padding: .32rem .62rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: .8rem;
  font-weight: 600;
  color: #e8f2ff;
}

/* ── Hero Info Grid (2×2 cards) ── */
.course-hero-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: 1rem;
}
.course-hero-info-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  border-radius: .75rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(4px);
  transition: border-color .3s, background .3s;
}
.course-hero-info-card:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
}
.course-hero-info-card--accent {
  background: rgba(2, 132, 199, .12);
  border-color: rgba(2, 132, 199, .25);
}
.course-hero-info-card--accent:hover {
  background: rgba(2, 132, 199, .18);
}
.course-hero-info-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  font-size: .8rem;
}
.course-hero-info-card__icon--blue  { background: rgba(57, 170, 230, .15); color: #86b8e7; }
.course-hero-info-card__icon--teal  { background: rgba(45, 212, 191, .15); color: #5eead4; }
.course-hero-info-card__icon--slate { background: rgba(148, 163, 184, .15); color: #cbd5e1; }
.course-hero-info-card__icon--brand { background: rgba(2, 132, 199, .2);   color: #86b8e7; }
.course-hero-info-card__label {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .55);
  line-height: 1.2;
}
.course-hero-info-card__value {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
@media (max-width: 480px) {
  .course-hero-info-grid { grid-template-columns: 1fr; }
}



/* ── Coming Soon (Próximamente) ── */
.program-tag--soon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  animation: soon-pulse 2s ease-in-out infinite;
}
@keyframes soon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}
.btn-program-buy--soon {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  border-color: #25d366 !important;
}
.btn-program-buy--soon:hover {
  background: linear-gradient(135deg, #128c7e, #075e54) !important;
}

/* ── Course Summary Truncate ── */
.course-summary-truncate {
  position: relative;
  overflow: hidden;
  transition: max-height .4s ease;
}
.course-summary-truncate.is-clamped {
  max-height: 4.8em;         /* ~3 lines at 1.6 line-height */
}
.course-summary-truncate.is-clamped::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(to bottom, transparent, var(--course-block-bg, #fff));
  pointer-events: none;
}
.course-summary-truncate.is-expanded {
  max-height: none;
}
.course-summary-truncate.is-expanded::after {
  display: none;
}
.course-summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary-light);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s;
}
.course-summary-toggle:hover {
  color: var(--primary-light);
}
.course-summary-toggle i {
  font-size: .6rem;
  transition: transform .3s;
}

/* ── Course Hero Start Date ── */
.course-hero-start-date {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .75rem;
  padding: .4rem .85rem;
  border-radius: .5rem;
  background: rgba(57, 170, 230, .1);
  border: 1px solid rgba(57, 170, 230, .18);
  font-size: .78rem;
  color: #bae6fd;
}
.course-hero-start-date i {
  color: #86b8e7;
  font-size: .72rem;
}
.course-hero-start-date strong {
  color: #fff;
}

.course-hero__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  margin-bottom: .35rem;
  font-size: .88rem;
  color: #fff;
}

.course-hero__rating .fa-star {
  color: #facc15;
  font-size: .95rem;
}

.course-hero__rating strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.course-hero__rating-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: .8rem;
  font-weight: 500;
}

.course-hero__actions {
  margin-top: 1.05rem;
}

.course-hero__actions .btn-program-buy {
  padding: .75rem 1.25rem;
  font-size: .95rem;
}

.course-detail-page .public-hero .btn-ghost--inverse {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.course-detail-page .public-hero .btn-ghost--inverse:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

.course-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.course-trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.course-trust-strip i {
  color: #86b8e7;
  font-size: .85rem;
}

.course-hero__card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-self: start;
}

.course-hero-card__accent {
  height: 4px;
  width: 100%;
  background: var(--course-accent);
  flex-shrink: 0;
}

.course-hero-card__body {
  padding: 1.35rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  align-items: stretch;
}

.course-hero-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #dceaf8;
  font-size: 1.25rem;
}

.course-hero-card__label {
  margin: 0 0 .2rem;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.65);
}

.course-hero-card__promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .15rem;
}

.course-hero-card__old {
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
  font-weight: 500;
}

.course-hero-card__pill {
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  padding: .12rem .45rem;
  border-radius: 999px;
}

.course-hero-card__price {
  margin: 0 0 .6rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.course-hero-card__hint {
  margin: 0 0 .85rem;
  font-size: .84rem;
  line-height: 1.45;
  color: rgba(226, 239, 255, 0.88);
}

.course-hero-card__share {
  margin-top: .15rem;
}

.course-hero-card__share-label {
  margin: 0 0 .5rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255, 255, 255, 0.55);
}

.course-hero-card__share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.course-hero-card__share-list li {
  margin: 0;
}

.course-share-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.15);
  color: #eef4fb;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.course-share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(134, 184, 231, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.course-share-btn--linkedin:hover {
  border-color: #86b8e7;
  color: #86b8e7;
}

.course-share-btn--facebook:hover {
  border-color: #86b8e7;
  color: #86b8e7;
}

.course-share-btn--whatsapp:hover {
  border-color: #4ade80;
  color: #4ade80;
}

.course-share-btn--twitter:hover {
  border-color: #e2e8f0;
  color: #e2e8f0;
}

.course-share-btn--copy:hover {
  border-color: #fde68a;
  color: #fde68a;
}

.course-hero-card__share-feedback {
  margin: .55rem 0 0;
  font-size: .75rem;
  font-weight: 600;
  color: #a5f3fc;
}

.course-main-panel--pro {
  padding: 0;
  display: grid;
  gap: 0.95rem;
  background: transparent;
  box-shadow: none;
}

.course-block {
  padding: 1.22rem 1.28rem 1.3rem;
  border-radius: 16px;
  border: 1px solid #dbe6f5;
  background: #fff;
  box-shadow: 0 12px 30px rgba(34, 49, 97, 0.08);
}

.course-block--kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f5fc 100%);
  border: 1px solid #dbe6f5;
}

.course-block__head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: .85rem;
}

.course-block__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #ecf7ff 0%, #d8efff 100%);
  border: 1px solid #b8daf5;
  color: #0e5183;
  font-size: 1.05rem;
}

.course-block__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #153765;
  letter-spacing: -0.015em;
}

.course-block__subtitle {
  margin: .2rem 0 0;
  font-size: .84rem;
  color: #5a7199;
  font-weight: 500;
  line-height: 1.35;
}

.course-block__body {
  margin: 0;
}

.course-objective-main {
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #d8e7f8;
  background: linear-gradient(145deg, #f3f8ff, #ffffff);
}

.course-objective-main h3 {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: #1a3561;
}

.course-objective-main p {
  margin: 0;
  color: #233f6a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.course-prose {
  color: #1d335a;
  font-size: .95rem;
  line-height: 1.72;
}

.course-kpi {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem .8rem;
  border-radius: 14px;
  border: 1px solid #dbe6f5;
  background: #fff;
  box-shadow: 0 4px 14px rgba(33, 66, 124, 0.06);
}

.course-kpi--accent {
  border-color: #b8daf5;
  background: linear-gradient(135deg, #eef4fb 0%, #dceaf8 100%);
}

.course-kpi--schedule-wide {
  grid-column: 1 / -1;
}

.course-kpi__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eef5ff;
  color: #1a5f9e;
  font-size: .95rem;
}

.course-kpi--accent .course-kpi__icon {
  background: #b9d5f1;
  color: var(--primary-light);
}

.course-kpi__label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: .12rem;
}

.course-kpi__value {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: #0f2744;
  line-height: 1.35;
}

.course-kpi__value--schedule {
  text-align: justify;
  text-wrap: pretty;
}

.course-kpi__content {
  width: 100%;
}

.course-kpi-schedule-panel {
  display: grid;
  gap: .38rem;
  padding: .55rem;
  border: 1px solid #d8e5f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fcff 0%, #f0f6ff 100%);
}

.course-kpi-schedule-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: .5rem;
  border-radius: 10px;
  padding: .42rem .48rem;
  border: 1px solid #dbe8f9;
  background: #fff;
}

.course-kpi-schedule-row__clock {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #def4fb;
  color: #0d6fa8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

.course-kpi-schedule-row__value {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.25;
  color: #102b4c;
}

.course-kpi-schedule-row__value--muted {
  margin-top: .1rem;
  color: #516888;
  font-weight: 600;
}

.course-kpi-schedule-row__flags {
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.course-kpi-schedule-row__tz-text {
  font-size: .8rem;
  font-weight: 700;
  color: #173657;
}

.course-kpi-schedule-row--tz {
  background: #fafdff;
}

.course-kpi-schedule-row--base {
  grid-template-columns: 30px 1fr;
  border-color: #b9d9f4;
  background: linear-gradient(180deg, #ecf7ff 0%, #e1f1ff 100%);
}

.course-kpi-schedule-row--base .course-kpi-schedule-row__tz-text {
  color: #0b67a3;
  font-size: .74rem;
  font-weight: 600;
  opacity: .82;
}

@media (min-width: 900px) {
  .course-kpi--schedule-wide .course-kpi-schedule-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-kpi--schedule-wide .course-kpi-schedule-row--main {
    grid-column: 1 / -1;
  }
}
.course-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.course-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .62rem .75rem;
  border-radius: 12px;
  border: 1px solid #e2ebf7;
  background: #fbfdff;
  font-size: .9rem;
  line-height: 1.45;
  color: #1d335a;
}

.course-checklist__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .12rem;
  background: linear-gradient(135deg, #223161, #39aae6);
  color: #fff;
  font-size: .62rem;
}

.course-tag-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.course-tag-cloud li {
  display: inline-flex;
  padding: .42rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: #1e4976;
  background: #eef4fc;
  border: 1px solid #d4e4f7;
}

.course-syllabus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  counter-reset: none;
}

.course-syllabus__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  border: 1px solid #e8eff8;
  background: linear-gradient(90deg, #fafdff 0%, #fff 40%);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.course-syllabus__item:hover {
  border-color: #b8daf5;
  box-shadow: 0 6px 18px rgba(34, 49, 97, 0.08);
}

.course-syllabus__index {
  flex-shrink: 0;
  min-width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #0e5183;
  background: linear-gradient(145deg, #dceaf8 0%, #b9d5f1 100%);
  border: 1px solid #bae6fd;
}

.course-syllabus__text {
  font-size: .9rem;
  line-height: 1.5;
  color: #1d335a;
  font-weight: 600;
  padding-top: .18rem;
}

.course-syllabus-accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .62rem;
}

.course-syllabus-accordion__item {
  margin: 0;
  padding: 0;
}

.course-syllabus-accordion__panel {
  border: 1px solid #dbe8f8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 45, 90, 0.06);
}

.course-syllabus-accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .92rem .95rem;
  cursor: pointer;
  transition: background-color .2s ease;
}

.course-syllabus-accordion__summary::-webkit-details-marker {
  display: none;
}

.course-syllabus-accordion__panel[open] .course-syllabus-accordion__summary {
  background: #f5faff;
}

.course-syllabus-accordion__title {
  flex: 1;
  font-size: .95rem;
  line-height: 1.45;
  font-weight: 700;
  color: #113563;
}

.course-syllabus-accordion__badge {
  flex-shrink: 0;
  padding: .2rem .5rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eef4fb;
  color: #1e3a8a;
  font-size: .72rem;
  font-weight: 700;
}

.course-syllabus-accordion__chevron {
  flex-shrink: 0;
  color: #2563eb;
  transition: transform .2s ease;
}

.course-syllabus-accordion__panel[open] .course-syllabus-accordion__chevron {
  transform: rotate(180deg);
}

.course-syllabus-accordion__content {
  border-top: 1px solid #e8eff8;
  padding: .85rem .95rem .95rem 3.85rem;
  background: #ffffff;
}

.course-syllabus-accordion__topics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.course-syllabus-accordion__topics li {
  position: relative;
  padding-left: 1rem;
  color: #1f3b67;
  font-size: .9rem;
  line-height: 1.45;
}

.course-syllabus-accordion__topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: var(--accent-cyan);
}

.course-syllabus-accordion__empty {
  margin: 0;
  color: #64748b;
  font-size: .86rem;
}

.course-sidebar--pro {
  gap: 1.05rem;
  align-self: start;
}

.course-aside-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid #dbe6f5;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(34, 49, 97, 0.1);
}

.course-aside-card__accent {
  height: 4px;
  width: 100%;
  background: var(--course-accent);
}

.course-aside-card__inner {
  padding: 1.2rem 1.15rem 1.25rem;
}

.course-aside-card--cta .course-aside-card__title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #153765;
}

.course-aside-card__label {
  margin: 0 0 .2rem;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #64748b;
}

.course-aside-card__promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .15rem;
}

.course-aside-card__old {
  font-size: .88rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.course-aside-card__pill {
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  padding: .1rem .4rem;
  border-radius: 999px;
}

.course-aside-card__price {
  margin: 0 0 .55rem;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -0.02em;
}

.course-aside-card__note {
  margin: 0 0 1rem;
  font-size: .86rem;
  line-height: 1.5;
  color: #4b628b;
}

.course-aside-card__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.course-aside-card__actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.course-aside-card--outcomes {
  border-color: #e0e7ff;
  box-shadow: 0 10px 28px rgba(67, 56, 202, 0.08);
}

.course-aside-card--cert {
  border-color: #c7d6e8;
  box-shadow: 0 12px 32px rgba(11, 79, 136, 0.10);
}

.course-aside-card--cert .course-aside-card__accent {
  background: linear-gradient(90deg, #0b4f88, #1565c0);
}

/* Resumen visual tipo “tarjeta certificación” (icono + dato clave) */
.course-cert-spotlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 12px 28px -8px rgba(34, 49, 97, 0.12);
}

.course-cert-spotlight__visual {
  position: relative;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid rgba(34, 49, 97, 0.12);
}

.course-cert-spotlight__doc {
  font-size: 1.45rem;
  color: #1a264c;
  line-height: 1;
}

.course-cert-spotlight__seal {
  position: absolute;
  right: -0.28rem;
  bottom: -0.22rem;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  color: #fff;
  background: linear-gradient(145deg, #1565c0, #42a5f5);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(21, 101, 192, 0.45);
}

.course-cert-spotlight__text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.course-cert-spotlight__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a264c;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.course-cert-spotlight__label::after {
  content: ":";
  font-weight: 600;
}

.course-cert-spotlight__value {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0b4f88;
}

.course-aside-card__heading--cert {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e8f0fa;
}

.course-aside-card__heading--cert i {
  color: #1565c0;
}

.course-aside-card--brochure {
  border-color: #e2e8f0;
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.08);
}

.course-aside-card--brochure .course-aside-card__accent {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
}

.course-brochure-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334d77;
}

.course-brochure-btn {
  width: 100%;
  justify-content: center;
}

.course-cert-hours-line {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334d77;
}

.course-cert-hours-line--support {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #475569;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.65) 100%);
  border-radius: 12px;
  border: 1px solid #e8eef5;
}

.course-cert-hours-line strong {
  color: var(--primary-light);
}

.course-cert-hours-line--support strong {
  color: #0c4a6e;
  font-weight: 700;
}

.course-cert-figure {
  margin: 0 0 1rem;
}

.course-cert-figure__link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #c7d6e8;
  background: #eef4fb;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.course-cert-figure__link:hover {
  box-shadow: 0 10px 28px rgba(15, 79, 143, 0.15);
  transform: translateY(-1px);
}

.course-cert-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-cert-figure__cap {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
}

.course-cert-subheading {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b4f88;
}

.course-cert-includes {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-cert-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #1e3a5f;
}

.course-cert-includes i {
  margin-top: 0.12rem;
  color: #1565c0;
  flex-shrink: 0;
}

.course-cert-desc {
  margin-top: 0.25rem !important;
}

.course-cert-benefits {
  margin-top: 0.65rem;
}

.course-aside-card__heading {
  margin: 0 0 .75rem;
  font-size: .98rem;
  font-weight: 800;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.course-aside-card__heading i {
  color: #39aae6;
}

.course-outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.course-outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .86rem;
  line-height: 1.45;
  color: #334d77;
}

.course-outcome-list i {
  margin-top: .15rem;
  color: #1565c0;
  flex-shrink: 0;
}

.course-aside-card--related .course-aside-card__inner {
  padding-top: 1.05rem;
}

.course-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.course-related-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .62rem .65rem;
  border-radius: 12px;
  border: 1px solid #e8eff8;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.course-related-card:hover {
  border-color: #9ec9ef;
  background: #f8fbff;
  transform: translateX(2px);
}

.course-related-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eef4fc;
  color: #1a5f9e;
  font-size: .95rem;
}

.course-related-card__name {
  flex: 1;
  min-width: 0;
  font-size: .86rem;
  font-weight: 700;
  color: #223161;
  line-height: 1.35;
}

.course-related-card__chev {
  flex-shrink: 0;
  font-size: .72rem;
  color: #94a3b8;
}

.course-aside-card__empty {
  margin: 0;
  font-size: .86rem;
  color: #64748b;
}

@media (max-width: 960px) {
  .course-hero__grid {
    grid-template-columns: 1fr;
  }

  .course-hero__card {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .course-detail-page .course-hero__card--media .course-hero-card__media {
    margin-inline: 0;
    width: 100%;
    max-height: min(58vw, 440px);
  }

  .course-hero-card__body {
    padding: 1.1rem 1.25rem 1.35rem;
  }

  .course-block--kpis {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) {
  .course-hero__actions {
    flex-wrap: nowrap;
    align-items: center;
  }

  .course-hero__actions .btn-program-buy,
  .course-hero__actions .btn-ghost--inverse {
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .course-hero__copy {
    padding: 1.45rem 1.1rem 1.25rem;
  }

  .course-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Catálogo /programas/ — barra lateral oscura + resultados (referencia UX)
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.programs-catalog-page {
  padding-bottom: 0;
}

.programs-catalog-page__intro {
  margin-bottom: .25rem;
}

.programs-catalog-hero {
  margin-bottom: 0;
}

.home-bestsellers-surface {
  background:
    radial-gradient(circle at 12% 0%, rgba(57, 170, 230, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(34, 49, 97, 0.08) 0%, transparent 38%),
    linear-gradient(180deg, #eef6ff 0%, #f8fbff 52%, #ffffff 100%);
  border-top: 1px solid rgba(186, 230, 253, 0.65);
  border-bottom: 1px solid rgba(214, 226, 240, 0.9);
}

.home-bestsellers-head {
  margin-bottom: 1.35rem;
  text-align: center;
}

.home-bestsellers-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.home-bestsellers-lead {
  margin: .45rem auto 0;
  max-width: 36rem;
  font-size: .92rem;
  color: #475569;
}

.home-bestseller-card__category {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.home-bestseller-card.is-bestseller-hidden {
  display: none;
}

.home-bestsellers-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  padding: .82rem 1.45rem;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-bestsellers-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.34);
}

.home-bestsellers-more-btn:disabled,
.home-bestsellers-more-btn.is-hidden {
  display: none;
}

.programs-catalog-surface {
  background: linear-gradient(180deg, #121a26 0%, #0b0f14 55%, #080b10 100%);
  padding: 1.65rem 0 3.25rem;
  margin-top: .35rem;
}

.programs-catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.programs-sidebar {
  background: linear-gradient(165deg, rgba(22, 30, 44, 0.95) 0%, rgba(12, 17, 26, 0.98) 100%);
  border: 1px solid rgba(57, 170, 230, 0.18);
  border-radius: 20px;
  padding: 1.35rem 1.2rem 1.2rem;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.programs-sidebar__search {
  position: relative;
  margin-bottom: 1.05rem;
}

.programs-sidebar__search-icon {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(148, 163, 184, 0.95);
  font-size: .88rem;
  pointer-events: none;
  z-index: 1;
}

.programs-sidebar__search-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(255, 255, 255, 0.045);
  padding: .82rem 1rem .82rem 2.65rem;
  font-size: .92rem;
  color: #f1f5f9;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.programs-sidebar__search-input::placeholder {
  color: rgba(148, 163, 184, 0.88);
}

.programs-sidebar__search-input:hover {
  border-color: rgba(57, 170, 230, 0.35);
}

.programs-sidebar__search-input:focus {
  outline: none;
  border-color: #39aae6;
  box-shadow: 0 0 0 4px rgba(57, 170, 230, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.programs-sidebar__filter-heading {
  margin: 0 0 .65rem;
  font-size: .9rem;
  font-weight: 800;
  color: #39aae6;
  letter-spacing: .015em;
  line-height: 1.4;
}

.programs-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.programs-filter-list__item {
  border-bottom: 1px solid rgba(57, 170, 230, 0.28);
}

.programs-filter-list__item:first-child {
  border-top: 1px solid rgba(57, 170, 230, 0.28);
}

.programs-filter-list__item--empty {
  padding: .75rem 0;
  border-color: rgba(57, 170, 230, 0.15);
}

.programs-filter-option {
  display: flex;
  align-items: center;
  gap: .68rem;
  padding: .7rem .1rem .7rem 0;
  cursor: pointer;
  min-height: 2.65rem;
  margin: 0;
}

.programs-filter-option__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.programs-filter-option__box {
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 4px;
  border: 2px solid #39aae6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
  box-shadow: 0 0 0 0 rgba(57, 170, 230, 0);
}

.programs-filter-option:hover .programs-filter-option__box {
  border-color: #5cc8f0;
  box-shadow: 0 0 0 3px rgba(57, 170, 230, 0.12);
}

.programs-filter-option__input:focus-visible + .programs-filter-option__box {
  outline: 2px solid #86b8e7;
  outline-offset: 3px;
}

.programs-filter-option__input:checked + .programs-filter-option__box {
  background: #39aae6;
  border-color: #5cc8f0;
}

.programs-filter-option__input:checked + .programs-filter-option__box::after {
  content: "✓";
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
}

.programs-filter-option__label {
  flex: 1;
  min-width: 0;
  font-size: .9rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
}

.programs-filter-option__count {
  font-size: .84rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.68);
  flex-shrink: 0;
}

.programs-sidebar-advanced {
  margin-top: 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(57, 170, 230, 0.14);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.programs-sidebar-advanced__summary {
  padding: .78rem 1rem;
  font-size: .83rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  list-style: none;
}

.programs-sidebar-advanced__summary::-webkit-details-marker {
  display: none;
}

.programs-sidebar-advanced__hint {
  display: block;
  margin-top: .22rem;
  font-size: .72rem;
  font-weight: 500;
  color: #64748b;
}

.programs-sidebar-advanced__body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.programs-advanced-field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #94a3b8;
  margin-bottom: .32rem;
}

.programs-advanced-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.programs-advanced-select,
.programs-advanced-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.05);
  padding: .55rem .65rem;
  font-size: .84rem;
  color: #e2e8f0;
  font-family: inherit;
}

.programs-advanced-select:focus,
.programs-advanced-input:focus {
  outline: none;
  border-color: #39aae6;
  box-shadow: 0 0 0 3px rgba(57, 170, 230, 0.15);
}

.programs-advanced-select option {
  color: #0f172a;
}

.programs-sidebar__clear {
  margin-top: 1.05rem;
  width: 100%;
  padding: .55rem .5rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #5cc8f0;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .22rem;
  transition: color .2s ease, background .2s ease;
}

.programs-sidebar__clear:hover {
  color: #86b8e7;
  background: rgba(57, 170, 230, 0.08);
}

.programs-catalog-main {
  min-width: 0;
}

.programs-results-head--catalog {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1.1rem;
  padding: 0 .1rem;
}

.programs-results-head--catalog p {
  margin: 0;
  color: #e2e8f0;
  font-weight: 600;
  font-size: .92rem;
}

.programs-results-pager {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.programs-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem .85rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(57, 170, 230, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #dceaf8;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.programs-pager-btn:hover:not(:disabled) {
  border-color: #39aae6;
  background: rgba(57, 170, 230, 0.12);
  color: #fff;
}

.programs-pager-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

@media (min-width: 961px) {
  .programs-sidebar {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 960px) {
  .programs-catalog-layout {
    grid-template-columns: 1fr;
  }

  .programs-sidebar {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* —— Home index: hero visual (hero.png) + animaciones —— */
@keyframes home-hero-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(0.35deg); }
}

@keyframes home-hero-breathe {
  0%, 100% { transform: scale(1); filter: saturate(1) brightness(1); }
  50% { transform: scale(1.035); filter: saturate(1.06) brightness(1.05); }
}

@keyframes home-hero-halo-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

@keyframes home-hero-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes home-hero-shine {
  0% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  12% { opacity: 0.55; }
  28% { opacity: 0.35; }
  100% { transform: translateX(120%) skewX(-12deg); opacity: 0; }
}

.home-hero-visual {
  position: absolute;
  inset: -8% -6% -10% -6%;
  pointer-events: none;
  z-index: 0;
}

/* Panel de áreas: flujo normal (no usar .home-hero-visual aquí; ese bloque es position:absolute). */
.home-hero-visual.home-hero-areas,
.home-hero-areas {
  position: relative;
  inset: auto;
  pointer-events: auto;
}

.home-hero-construction {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.home-hero-construction::before {
  content: "";
  position: absolute;
  inset: 14% 10%;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(57, 170, 230, 0.16), rgba(34, 49, 97, 0.55));
  border: 1px solid rgba(134, 184, 231, 0.2);
  box-shadow: 0 20px 48px rgba(8, 47, 73, 0.35);
}

.home-hero-construction__panel {
  position: relative;
  z-index: 1;
  width: min(92%, 390px);
  border-radius: 24px;
  padding: 1.2rem 1rem 1rem;
  background: rgba(7, 27, 53, 0.6);
  border: 1px solid rgba(134, 184, 231, 0.35);
  backdrop-filter: blur(4px);
  animation: home-hero-float 6.2s ease-in-out infinite;
}

.home-hero-construction__title {
  margin: 0 0 0.55rem;
  color: #cffafe;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.home-hero-construction__crane {
  position: absolute;
  left: 8%;
  top: -14px;
  width: 4px;
  height: 150px;
  background: linear-gradient(to bottom, #a5f3fc, #0891b2);
  box-shadow: 38px 26px 0 -1px rgba(165, 243, 252, 0.88);
}

.home-hero-construction__crane::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 130px;
  height: 3px;
  background: rgba(165, 243, 252, 0.95);
}

.home-hero-construction__crane::after {
  content: "";
  position: absolute;
  left: 104px;
  top: 24px;
  width: 2px;
  height: 58px;
  background: rgba(165, 243, 252, 0.6);
  animation: home-hero-float 3.4s ease-in-out infinite;
}

.home-hero-construction__floors {
  margin-left: 66px;
  padding-top: 18px;
}

.home-hero-construction__floor {
  display: block;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(134, 184, 231, 0.45);
  background:
    linear-gradient(90deg, rgba(134, 184, 231, 0.32) 0 18%, transparent 18% 24%, rgba(134, 184, 231, 0.3) 24% 42%, transparent 42% 48%, rgba(134, 184, 231, 0.28) 48% 68%, transparent 68% 74%, rgba(134, 184, 231, 0.26) 74% 100%),
    linear-gradient(165deg, rgba(57, 170, 230, 0.3), rgba(34, 49, 97, 0.36));
}

.home-hero-construction__pipeline {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.home-hero-construction__pipeline span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  color: #dff7ff;
  padding: 0.5rem 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(134, 184, 231, 0.4);
  background: rgba(57, 170, 230, 0.14);
}

.home-hero-construction__pipeline span b {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(103, 232, 249, 0.22);
  border: 1px solid rgba(165, 243, 252, 0.45);
  flex: 0 0 20px;
}

.home-hero-construction__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e6f8ff;
  border: 1px solid rgba(165, 243, 252, 0.42);
  background: rgba(8, 47, 73, 0.78);
  box-shadow: 0 10px 24px rgba(8, 47, 73, 0.35);
  animation: home-hero-float 4.9s ease-in-out infinite;
}

.home-hero-construction__chip--plan { top: 8%; right: 3%; animation-delay: 0.4s; }
.home-hero-construction__chip--materials { bottom: 15%; right: 3%; animation-delay: 1.2s; }
.home-hero-construction__chip--safety { bottom: 3%; left: 7%; animation-delay: 2s; }

.home-hero-construction__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #39AAE6;
  box-shadow: 0 0 0 8px rgba(103, 232, 249, 0.08);
  animation: home-hero-halo-pulse 3.1s ease-in-out infinite;
}

.home-hero-construction__dot--a { top: 22%; right: 28%; }
.home-hero-construction__dot--b { top: 44%; right: 7%; animation-delay: 0.8s; }
.home-hero-construction__dot--c { bottom: 16%; left: 32%; animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  .home-hero-construction__panel,
  .home-hero-construction__chip,
  .home-hero-construction__crane::after,
  .home-hero-construction__dot {
    animation: none !important;
  }
}

@keyframes home-hero-studio-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes home-hero-studio-pulse {
  0%, 100% { transform: scale(0.92); opacity: .35; }
  50% { transform: scale(1.1); opacity: .75; }
}

.home-hero-studio {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.home-hero-studio__png {
  position: absolute;
  z-index: 3;
  width: clamp(46px, 6.2vw, 82px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(2, 23, 46, 0.45));
  animation: home-hero-studio-float 5.4s ease-in-out infinite;
  opacity: .96;
}

.home-hero-studio__png--cone {
  top: 12%;
  left: 5%;
  animation-delay: .3s;
}

.home-hero-studio__png--tools {
  top: 10%;
  right: 12%;
  animation-delay: 1s;
}

.home-hero-studio__png--machine {
  bottom: 10%;
  right: 5%;
  width: clamp(54px, 7vw, 90px);
  animation-delay: 1.6s;
}

.home-hero-studio__png--tape {
  bottom: 7%;
  left: 13%;
  animation-delay: 2.1s;
}

.home-hero-studio::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border-radius: 30px;
  border: 1px solid rgba(134, 184, 231, 0.2);
  background: radial-gradient(circle at 80% 12%, rgba(57, 170, 230, 0.2), transparent 45%),
    linear-gradient(145deg, rgba(7, 25, 50, 0.86), rgba(11, 43, 72, 0.7));
}

.home-hero-studio__board {
  position: relative;
  z-index: 2;
  width: min(92%, 420px);
  border-radius: 22px;
  padding: 1rem;
  border: 1px solid rgba(134, 184, 231, 0.28);
  background: rgba(4, 26, 52, 0.62);
  box-shadow: 0 18px 48px rgba(3, 15, 37, 0.45);
  backdrop-filter: blur(5px);
  animation: home-hero-studio-float 5.4s ease-in-out infinite;
}

.home-hero-studio__title {
  margin: 0 0 .6rem;
  color: #d8f4ff;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.home-hero-studio__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  margin-bottom: .65rem;
}

.home-hero-studio__timeline span {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(57, 170, 230, 0.85), rgba(57, 170, 230, 0.35));
}

.home-hero-studio__rows {
  display: grid;
  gap: .4rem;
}

.home-hero-studio__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .46rem .56rem;
  border-radius: 11px;
  border: 1px solid rgba(134, 184, 231, 0.33);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.58), rgba(12, 74, 110, 0.26));
  color: #e9f8ff;
  font-size: .8rem;
  font-weight: 700;
}

.home-hero-studio__row i {
  color: #6ee7ff;
}

.home-hero-studio__row b {
  font-size: .66rem;
  border-radius: 999px;
  padding: .16rem .44rem;
  border: 1px solid rgba(134, 184, 231, 0.42);
  color: #cbf4ff;
  background: rgba(57, 170, 230, 0.2);
}

.home-hero-studio__tool {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .4rem .66rem;
  font-size: .74rem;
  font-weight: 700;
  color: #e8fbff;
  border: 1px solid rgba(134, 184, 231, 0.35);
  background: rgba(7, 36, 64, 0.82);
  box-shadow: 0 8px 24px rgba(5, 20, 44, 0.5);
  animation: home-hero-studio-float 4.8s ease-in-out infinite;
}

.home-hero-studio__tool--a { top: 8%; right: 3%; animation-delay: .2s; }
.home-hero-studio__tool--b { bottom: 20%; left: 6%; animation-delay: 1s; }
.home-hero-studio__tool--c { bottom: 7%; right: 4%; animation-delay: 1.8s; }

@media (max-width: 1100px) {
  .home-hero-studio__png--tools { right: 16%; }
  .home-hero-studio__png--machine { right: 8%; }
}

.home-hero-studio__pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #39AAE6;
  box-shadow: 0 0 0 10px rgba(103, 232, 249, 0.08);
  animation: home-hero-studio-pulse 2.8s ease-in-out infinite;
}

.home-hero-studio__pulse--a { top: 24%; right: 22%; }
.home-hero-studio__pulse--b { bottom: 18%; left: 34%; animation-delay: .9s; }

@media (prefers-reduced-motion: reduce) {
  .home-hero-studio__png,
  .home-hero-studio__board,
  .home-hero-studio__tool,
  .home-hero-studio__pulse {
    animation: none !important;
  }
}

.home-hero-areas {
  width: 100%;
  max-width: 620px;
}

.home-hero-areas__panel {
  position: relative;
  border-radius: 28px;
  padding: 1.15rem;
  border: 1px solid rgba(57, 170, 230, 0.22);
  background: radial-gradient(circle at 4% 6%, rgba(34, 211, 238, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(2, 22, 51, 0.9), rgba(4, 38, 77, 0.84));
  box-shadow: 0 24px 56px rgba(2, 10, 26, 0.5);
}

.home-hero-areas__title {
  margin: 0 0 0.95rem;
  color: #e5f9ff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-hero-areas__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.home-hero-areas__card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 0.62rem;
  min-height: 74px;
  border-radius: 15px;
  padding: 0.75rem 0.84rem;
  border: 1px solid rgba(57, 170, 230, 0.2);
  background: linear-gradient(145deg, rgba(3, 34, 70, 0.9), rgba(5, 48, 94, 0.65));
}

a.home-hero-areas__card {
  color: inherit;
  text-decoration: none;
}

.home-hero-areas__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(226, 244, 255, 0.72);
}

.home-hero-areas__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(110, 231, 255, 0.28);
  color: #f0fbff;
  background: rgba(5, 35, 73, 0.62);
  font-size: 1rem;
}

.home-hero-areas__label {
  color: #f8fcff;
  font-size: 0.93rem;
  line-height: 1.25;
  font-weight: 700;
}

.home-hero-areas__arrow {
  color: #22d3ee;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .home-hero-areas__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Bandeja fija: WhatsApp arriba + Inicio abajo (esquina inferior derecha).
   Posición absoluta: con flex + column-reverse y altura 0 del botón oculto,
   WhatsApp quedaba pegado al borde y cubría la zona del otro control. —— */
@keyframes ceo-float-wa-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes ceo-float-wa-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.14);
  }
}

.ceo-floating-tray {
  --ceo-tray-gap: 0.85rem;
  --ceo-wa-size: 3.35rem;
  --ceo-bt-min-h: 3.55rem;
  position: fixed;
  right: calc(1.1rem + env(safe-area-inset-right, 0px));
  left: auto;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  width: 18rem;
  height: calc(var(--ceo-bt-min-h) + var(--ceo-tray-gap) + var(--ceo-wa-size));
  min-height: calc(var(--ceo-bt-min-h) + var(--ceo-tray-gap) + var(--ceo-wa-size));
  pointer-events: none;
  isolation: isolate;
}

.ceo-floating-tray > .ceo-wa-widget,
.ceo-floating-tray > .ceo-back-top {
  position: absolute;
  left: auto;
  right: 0;
  pointer-events: auto;
}

.ceo-wa-widget {
  bottom: calc(var(--ceo-bt-min-h) + var(--ceo-tray-gap));
  z-index: 4;
}

.ceo-wa-widget__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 15rem;
  height: 3.35rem;
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.24);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ceo-wa-widget__trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28);
}

.ceo-wa-widget__hint {
  font-size: 0.78rem;
  text-align: left;
  color: #0f172a;
}

.ceo-wa-widget__hint strong {
  color: var(--primary-light);
}

.ceo-wa-widget__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(148deg, #34e27e 0%, #22c55e 42%, #15803d 100%);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.36);
}

.ceo-wa-widget__popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(22rem, 92vw);
  border-radius: 0.95rem;
  border: 1px solid rgba(21, 128, 61, 0.22);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.3);
}

.ceo-wa-widget__head {
  padding: 0.85rem 0.95rem;
  background: #2db742;
  color: #fff;
}

.ceo-wa-widget__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.ceo-wa-widget__intro {
  margin: 0.25rem 0 0;
  font-size: 0.73rem;
  color: #d9ebc6;
}

.ceo-wa-widget__body {
  padding: 0.75rem;
  background: #f8fafc;
}

.ceo-wa-widget__notice {
  margin: 0 0 0.65rem;
  font-size: 0.67rem;
  color: #64748b;
}

.ceo-wa-widget__item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  border-radius: 0.8rem;
  padding: 0.55rem;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.05);
}

.ceo-wa-widget__item + .ceo-wa-widget__item {
  margin-top: 0.55rem;
}

.ceo-wa-widget__item:hover {
  border-color: rgba(45, 183, 66, 0.48);
  transform: translateY(-1px);
}

.ceo-wa-widget__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.ceo-wa-widget__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ceo-wa-widget__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.ceo-wa-widget__role {
  font-size: 0.67rem;
  color: #475569;
}

.ceo-wa-widget:not(.is-open) .ceo-wa-widget__popup {
  display: none;
}

/* —— Volver al inicio de la página (scroll suave arriba) —— */
@keyframes ceo-back-top-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes ceo-back-top-pulse {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(1);
  }

  50% {
    opacity: 0.62;
    transform: scale(1.12);
  }
}

@keyframes ceo-back-top-launch {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.88);
  }

  100% {
    transform: scale(1);
  }
}

.ceo-back-top {
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  min-height: var(--ceo-bt-min-h);
  padding: 0.35rem 0.25rem 0.42rem;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.45);
  background: linear-gradient(
    168deg,
    #dceaf8 0%,
    #bae6fd 38%,
    #86b8e7 72%,
    var(--accent-cyan) 100%
  );
  color: #0c4a6e;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 28px rgba(57, 170, 230, 0.38),
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ceo-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: ceo-back-top-float 3.1s ease-in-out infinite;
}

.ceo-back-top:not(.is-visible) .ceo-back-top__glow {
  opacity: 0;
  animation: none;
}

.ceo-back-top__glow {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(57, 170, 230, 0.55) 0%, rgba(134, 184, 231, 0.2) 45%, transparent 70%);
  opacity: 0.65;
  z-index: -1;
  animation: ceo-back-top-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

.ceo-back-top__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1;
}

.ceo-back-top__icon {
  font-size: 0.98rem;
  transition: transform 0.22s ease;
}

.ceo-back-top__label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ceo-back-top:hover .ceo-back-top__icon {
  transform: translateY(-4px);
}

.ceo-back-top:hover {
  border-color: rgba(8, 145, 178, 0.55);
  background: linear-gradient(
    168deg,
    #eef4fb 0%,
    #cffafe 40%,
    #86b8e7 78%,
    var(--accent-cyan) 100%
  );
  color: #082f49;
  box-shadow:
    0 14px 34px rgba(57, 170, 230, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.65) inset,
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.ceo-back-top:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.ceo-back-top.is-launching .ceo-back-top__inner {
  animation: ceo-back-top-launch 0.48s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ceo-wa-widget__trigger,
  .ceo-wa-widget__item {
    transition: none;
  }

  .ceo-back-top.is-visible {
    animation: none;
  }

  .ceo-back-top__glow {
    animation: none;
    opacity: 0.22;
  }

  .ceo-back-top:hover .ceo-back-top__icon {
    transform: none;
  }

  .ceo-back-top.is-launching .ceo-back-top__inner {
    animation: none;
  }
}

@media (max-width: 520px) {
  .ceo-floating-tray {
    --ceo-tray-gap: 0.55rem;
    --ceo-wa-size: 3.15rem;
    --ceo-bt-min-h: 3.4rem;
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
    bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px));
  }

  .ceo-floating-tray { width: 16.5rem; }
  .ceo-wa-widget__trigger { width: 14.2rem; }
  .ceo-wa-widget__hint { font-size: 0.72rem; }

  .ceo-back-top {
    width: 3.15rem;
  }

  .ceo-back-top__label {
    font-size: 0.56rem;
  }
}
/* Brochure card refresh: visual parity with certification (institutional blue) */
.course-aside-card--brochure {
  position: relative;
  overflow: hidden;
  border-color: #bfdbfe;
  background:
    radial-gradient(circle at 110% -10%, rgba(57, 170, 230, 0.2) 0%, rgba(57, 170, 230, 0) 44%),
    radial-gradient(circle at -10% 120%, rgba(57, 170, 230, 0.14) 0%, rgba(57, 170, 230, 0) 46%),
    #f8fbff;
  box-shadow: 0 14px 34px rgba(14, 116, 144, 0.12);
}

.course-aside-card--brochure .course-aside-card__accent {
  background: linear-gradient(90deg, var(--primary-light), var(--accent-cyan));
}

.course-aside-card--brochure::after {
  content: "";
  position: absolute;
  width: 11.5rem;
  height: 11.5rem;
  right: -4.2rem;
  top: -5.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 170, 230, 0.22) 0%, rgba(57, 170, 230, 0) 72%);
  pointer-events: none;
}

.course-brochure-spotlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid #b9d5f1;
  box-shadow: 0 4px 8px -2px rgba(15, 23, 42, 0.05), 0 14px 28px -12px rgba(14, 116, 144, 0.2);
}

.course-brochure-spotlight__visual {
  position: relative;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(165deg, #eef4fb 0%, #b9d5f1 100%);
  border: 1px solid rgba(15, 79, 143, 0.18);
}

.course-brochure-spotlight__doc {
  font-size: 1.4rem;
  color: var(--primary-light);
  line-height: 1;
}

.course-brochure-spotlight__seal {
  position: absolute;
  right: -0.32rem;
  bottom: -0.24rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-light), var(--primary-light));
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.38);
}

.course-brochure-spotlight__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.course-brochure-spotlight__label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: #123868;
}

.course-brochure-spotlight__label::after {
  content: ":";
}

.course-brochure-spotlight__value {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--primary-light);
}

.course-aside-card__heading--brochure {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #b9d5f1;
}

.course-aside-card__heading--brochure i {
  color: var(--primary-light);
}

.course-brochure-lead {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #365f8f;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.75) 100%);
  border: 1px solid #b9d5f1;
  border-radius: 12px;
}

.course-brochure-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.course-brochure-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #0f345e;
}

.course-brochure-list li i {
  width: 1.05rem;
  margin-top: 0.1rem;
  color: var(--primary-light);
}

.course-brochure-btn {
  width: 100%;
  justify-content: center;
  border-color: #86b8e7;
  color: #123868;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 246, 255, 0.86) 100%);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-brochure-btn:hover {
  transform: translateY(-1px);
  border-color: #60a5fa;
  box-shadow: 0 10px 22px rgba(14, 116, 144, 0.2);
}

.course-brochure-btn i {
  color: var(--primary-light);
}



/* Course hero video: visible play button + modal */
.course-hero-card__video-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 24%, rgba(57, 170, 230, 0.24) 0%, transparent 48%),
    radial-gradient(circle at 84% 86%, rgba(57, 170, 230, 0.25) 0%, transparent 44%),
    linear-gradient(145deg, #09162f 0%, #0e223f 52%, #123868 100%);
}

.course-hero-card__video-preview i {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  color: rgba(255, 255, 255, 0.45);
}

.course-video-launch {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(147, 197, 253, 0.85);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.95), rgba(14, 116, 144, 0.95));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-video-launch:hover {
  transform: translate(-50%, calc(-50% - 2px));
  border-color: #86b8e7;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.55);
}

.course-video-launch i {
  color: #fff;
}

.course-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: clamp(0.35rem, 1.2vmin, 0.65rem);
}

.course-video-modal[hidden] { display: none; }

.course-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(2px);
}

.course-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(67.2vw, 1176px);
  max-height: 92vh;
}

.course-video-modal__close {
  position: absolute;
  top: -0.85rem;
  right: -0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.4);
  z-index: 2;
}

.course-video-modal__close:hover { background: #f1f5f9; }

.course-video-modal__frame-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
}

.course-video-modal__frame-wrap::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.course-video-modal__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .course-video-modal { padding: 0.35rem; }
  .course-video-modal__close {
    top: -0.55rem;
    right: -0.45rem;
  }
  .course-video-launch {
    font-size: 0.78rem;
    padding: 0.6rem 1rem;
  }
}

/* Brochure premium refinement */
.course-brochure-spotlight {
  position: relative;
  overflow: hidden;
}

.course-brochure-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
}

.course-brochure-spotlight__visual {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 10px 24px rgba(14, 116, 144, 0.16);
}

.course-brochure-spotlight__doc {
  font-size: 1.34rem;
  color: #0b4f88;
}

.course-brochure-spotlight__seal {
  width: 1.52rem;
  height: 1.52rem;
  font-size: 0.64rem;
  background: linear-gradient(145deg, var(--primary-light), var(--accent-cyan));
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.34);
}

.course-brochure-spotlight__value {
  color: var(--primary-light);
}

.course-brochure-btn {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.course-brochure-btn i {
  font-size: 0.95rem;
}

/* ==========================================================================
   Mobile polish — public site (≤960px). Desktop layout unchanged above 960px.
   ========================================================================== */
@media (max-width: 960px) {
  html,
  body {
    overflow-x: clip;
  }

  body.nav-open {
    overflow: hidden;
  }

  .container {
    width: min(100%, calc(100% - 1.5rem));
  }

  .site-header .header-row {
    position: relative;
    flex-wrap: wrap;
    min-height: 64px;
    gap: .65rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dde8f8;
    border-radius: 10px;
    background: #fff;
    color: #334872;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: #f4f8ff;
    border-color: #9ec7ef;
    color: #0a63a5;
    outline: none;
  }

  .brand img {
    height: 52px;
  }

  .site-header .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    padding: .85rem 1rem 1rem;
    border: 1px solid #e5eef9;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 36px rgba(13, 27, 61, 0.14);
    max-height: min(72dvh, calc(100dvh - 140px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-header .main-nav.open {
    display: grid;
    gap: .55rem;
    width: 100%;
  }

  .site-header .main-nav.open > a,
  .site-header .main-nav.open .nav-item.has-submenu > a {
    padding: .55rem .35rem;
    border-radius: 8px;
  }

  .site-header .main-nav.open > a:hover,
  .site-header .main-nav.open .nav-item.has-submenu > a:hover {
    background: #f4f8ff;
  }

  .site-header .main-nav.open .btn-outline-pill,
  .site-header .main-nav.open .btn-cyan.rounded-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    display: inline-flex;
  }

  .site-header .main-nav.open .ceo-money {
    width: 100%;
  }

  .site-header .main-nav.open a.cart-icon {
    justify-self: start;
  }

  .utility-contact {
    font-size: .74rem;
    line-height: 1.35;
  }

  .utility-cert {
    font-size: .72rem;
  }

  .utility-links-left a {
    white-space: nowrap;
    font-size: .72rem;
  }

  .public-page {
    padding: 1.5rem 0 2.5rem;
  }

  .public-hero {
    padding: 1.45rem 1.1rem;
    border-radius: 16px;
  }

  .public-hero h1 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .footer-top-cta-banner {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .footer-top-left strong {
    font-size: .95rem;
    line-height: 1.4;
  }

  .footer-grid {
    gap: 1.35rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem 1rem;
  }

  .programs-sidebar {
    max-width: 100%;
  }

  .course-detail-page .course-hero__grid {
    grid-template-columns: 1fr;
  }

  .course-detail-page .course-detail-split {
    grid-template-columns: 1fr;
  }

  .course-detail-page .course-hero-corner-thumb {
    width: min(46vw, 240px);
    height: auto;
    aspect-ratio: 336 / 208;
  }

  main {
    overflow-x: clip;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100%, calc(100% - 1.25rem));
  }

  .utility-bar {
    font-size: .72rem;
  }

  .utility-contact span,
  .utility-contact {
    max-width: 100%;
  }

  .utility-links-left a:nth-last-child(-n+2) {
    display: none;
  }

  .home-bestseller-card .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: .5rem;
  }

  .home-bestseller-card .rounded-full.bg-slate-100 {
    align-self: flex-start;
  }

  .catalog-filter-modal {
    padding: .65rem .75rem 1rem;
    align-items: flex-start;
  }

  .catalog-filter-modal__dialog {
    max-height: 92dvh;
    border-radius: 1rem;
  }

  .catalog-filter-modal__header,
  .catalog-filter-modal__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .toast {
    left: .75rem;
    right: .75rem;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .brand img {
    height: 46px;
  }

  .utility-contact {
    font-size: .68rem;
  }
}
