: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);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  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;
}

.container {
  width: min(1320px, 94%);
  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: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(13, 27, 61, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand img {
  height: 44px;
  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: 38px;
  }

  .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: grid;
    min-width: auto;
    box-shadow: none;
    border: 0;
    padding: .2rem 0 .4rem .6rem;
  }
}

/* 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 {
  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 {
  background: #2b98ce;
  box-shadow: 0 6px 18px rgba(57, 170, 230, 0.5);
  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-cyan-bright {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}

/* Header redesign - premium CRO */
.utility-bar {
  background: linear-gradient(90deg, #0f1d3f 0%, #1f3d7a 58%, #0ea5e9 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 {
  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: #0f1d3f;
  transform: translateY(-1px);
}

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #dde8f8;
}

.header-row {
  min-height: 78px;
  gap: 1rem;
}

.brand img {
  height: 48px;
}

.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 {
  transform: rotate(180deg);
}

.submenu {
  top: calc(100% + .45rem);
  border-radius: 14px;
  border: 1px solid #d8e6fb;
  box-shadow: 0 14px 28px rgba(16, 44, 96, 0.12);
  padding: .55rem;
}

.submenu a {
  color: #2d4068;
  font-weight: 500;
  border-radius: 9px;
}

.submenu a:hover {
  background: #eff6ff;
  color: #0a63a5;
}

.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;
  }

  .utility-social {
    width: 100%;
    justify-content: flex-start;
  }

  .header-row {
    min-height: 70px;
  }

  .main-nav {
    border-top: 1px solid #e5eef9;
    padding-top: .8rem;
    margin-top: .8rem;
    width: 100%;
  }

  .btn-outline-pill,
  .btn-cyan.rounded-pill {
    width: 100%;
    justify-content: center;
  }
}

/* Public pages - premium system */
.public-page {
  padding: 2.2rem 0 3rem;
}

.public-hero {
  background: linear-gradient(135deg, #102347 0%, #223161 55%, #1b6ea8 130%);
  color: #fff;
  border-radius: 22px;
  padding: 2.1rem 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 20px 42px rgba(14, 34, 74, 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;
}

.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, #0e66aa, #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 ul,
.blog-post-content ol {
  margin: .3rem 0 1rem 1.15rem;
}

.blog-post-content a {
  color: #0e66aa;
  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: #0f4f8f;
  font-size: 1.95rem;
  font-weight: 800;
}

.course-note {
  margin: 0 0 .7rem;
  color: #4b628b;
  font-size: .9rem;
}

@media (min-width: 901px) {
  .course-sidebar {
    position: sticky;
    top: 104px;
  }
}

@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 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,
.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: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;
  }
}

/* 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 {
  gap: 1.25rem;
  align-items: stretch;
}

.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;
}

.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;
}

.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;
  cursor: pointer;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, #223161 0%, #3258a1 48%, #39aae6 100%);
  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;
  }
}