/* Controles finales compartidos. */
html body .ucam-campus-card {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28) !important;
}

html body .ucam-campus-card > img:first-child {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #fff !important;
}

html body .ucam-campus-card .ucam-photo-logo {
  position: static !important;
  display: block !important;
  width: min(42%, 190px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 24px !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

.mba-facts .mba-facts-title {
  margin: 0 0 24px !important;
  color: #111318 !important;
  font-size: clamp(34px, 3vw, 48px) !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  letter-spacing: -.03em !important;
}

.mba-facts .mba-facts-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 6px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--yellow);
}

.mba-facts-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.mba-facts-actions .button {
  margin: 0 !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.mba-facts-actions .button-dark {
  padding-inline: 30px !important;
}

.button-brochure {
  border: 2px solid #111318 !important;
  background: var(--yellow) !important;
  color: #111318 !important;
}

.button-brochure::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 560px) {
  .mba-facts-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mba-facts-actions .button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

html body .detail-modal-body .detail-lead,
html body .detail-modal-body .module-detail-lead {
  color: rgba(17, 19, 24, .82) !important;
  width: 100% !important;
  max-width: none !important;
  font-size: clamp(16px, 1.12vw, 19px) !important;
  line-height: 1.52 !important;
  font-weight: 400 !important;
}

.chatbot {
  right: clamp(14px, 2vw, 26px) !important;
  bottom: clamp(14px, 2vw, 26px) !important;
  gap: 12px !important;
}

.chatbot-toggle {
  width: auto !important;
  min-width: 132px !important;
  height: 56px !important;
  padding: 0 22px 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 2px solid #111318 !important;
  border-radius: 999px !important;
  background: var(--yellow) !important;
  color: #111318 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28) !important;
  font-size: 15px !important;
  letter-spacing: -.01em !important;
}

.chatbot-toggle::before {
  content: "✦";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111318;
  color: var(--yellow);
  font-size: 14px;
}

.chatbot-toggle:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34) !important;
}

.chatbot-panel {
  width: min(390px, calc(100vw - 28px)) !important;
  max-height: min(680px, calc(100dvh - 100px)) !important;
  overflow: auto !important;
  padding: 0 18px 18px !important;
  border: 1px solid rgba(255, 221, 0, .55) !important;
  border-radius: 20px !important;
  background: #f8f7f2 !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42) !important;
}

.chatbot-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  min-height: 66px !important;
  margin: 0 -18px 16px !important;
  padding: 0 16px 0 18px !important;
  background: #111318 !important;
  color: #fff !important;
  border-radius: 19px 19px 0 0 !important;
}

.chatbot-head strong {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 18px !important;
}

.chatbot-head strong::before {
  content: "✦";
  color: var(--yellow);
}

.chatbot-head button,
#chatbotClose {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 0 3px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 25px !important;
  line-height: 1 !important;
}

.chatbot-messages {
  max-height: 210px !important;
  padding-right: 3px !important;
  gap: 9px !important;
}

.chatbot-messages p {
  padding: 13px 14px !important;
  border: 1px solid rgba(17,19,24,.08) !important;
  border-radius: 14px 14px 14px 4px !important;
  background: #fff !important;
  color: #343941 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.chatbot-messages p.answer {
  margin-left: 28px !important;
  border-color: #111318 !important;
  border-radius: 14px 14px 4px 14px !important;
  background: #111318 !important;
  color: #fff !important;
}

.chatbot-form label {
  color: #111318 !important;
  font-size: 11px !important;
  letter-spacing: .04em !important;
}

.chatbot-form textarea {
  min-height: 88px !important;
  border: 1px solid rgba(17,19,24,.22) !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 12px 13px !important;
  line-height: 1.4 !important;
}

.chatbot-form textarea:focus {
  outline: 3px solid rgba(255,221,0,.45) !important;
  border-color: #111318 !important;
}

.chatbot-form .button {
  min-height: 46px !important;
  border-radius: 999px !important;
  background: var(--yellow) !important;
  color: #111318 !important;
  font-weight: 900 !important;
}

.chatbot-quick {
  gap: 7px !important;
  margin: 4px 0 0 !important;
}

.chatbot-quick button {
  border: 1px solid rgba(17,19,24,.18) !important;
  background: #fff !important;
  color: #111318 !important;
  padding: 8px 11px !important;
}

.chatbot-quick button:hover {
  border-color: #111318 !important;
  background: var(--yellow) !important;
}

/* Conversación compacta inspirada en WhatsApp. */
.chatbot-toggle {
  border-color: #111318 !important;
  background: var(--yellow) !important;
  color: #111318 !important;
}

.chatbot-toggle::before,
.chatbot-head {
  background: #111318 !important;
}

.chatbot-toggle::before {
  content: "●";
  color: var(--yellow) !important;
}

.chatbot-panel {
  background: #f3f1e8 !important;
}

.chatbot-messages {
  min-height: 190px !important;
  padding: 6px 4px 10px !important;
}

.chatbot-messages p,
.chatbot-messages p.answer {
  width: fit-content !important;
  max-width: 86% !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  border: 0 !important;
  border-radius: 8px 8px 8px 2px !important;
  background: #fff !important;
  color: #1f2c34 !important;
  box-shadow: 0 1px 1px rgba(11, 20, 26, .13) !important;
}

.chatbot-messages p.user {
  margin-right: 0 !important;
  margin-left: auto !important;
  border-radius: 8px 8px 2px 8px !important;
  background: #fff1a6 !important;
  color: #1f2c34 !important;
}

.chatbot-form {
  display: block !important;
  margin-top: 8px !important;
}

.chatbot-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.chatbot-compose {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 46px !important;
  gap: 8px !important;
  align-items: end !important;
}

.chatbot-compose textarea {
  min-height: 46px !important;
  max-height: 112px !important;
  resize: none !important;
  padding: 12px 15px !important;
  border: 0 !important;
  border-radius: 23px !important;
  font-size: 15px !important;
}

.chatbot-send {
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--yellow) !important;
  color: #111318 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(17, 19, 24, .24) !important;
}

.chatbot-send span {
  margin-left: 2px;
  font-size: 19px;
  line-height: 1;
}

.chatbot-send:hover,
.chatbot-send:focus-visible {
  background: #f0c900 !important;
  transform: translateY(-1px);
}

/* Numeración editorial y limpia para bloques y módulos. */
html body .module-card .module-number,
html body .module-panel-premium .module-card .module-number,
html body .module-panel .module-card .module-number,
html body .about-principles article > div > span {
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(17, 19, 24, .88) !important;
  border-radius: 50% !important;
  background: var(--yellow) !important;
  color: #111318 !important;
  box-shadow: 0 0 0 4px rgba(255, 221, 0, .2), 0 8px 18px rgba(17, 19, 24, .13) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em !important;
}

/* Stellina IA accanto a ¿Hablamos?, senza il vecchio pallino. */
.chatbot-toggle::before {
  content: "✦" !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111318 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

/* Frecce semplici nello stesso medaglione ordinato dei numeri. */
html body .carousel-button,
html body .about-principles-arrow,
html body .professor-arrow,
html body .program-card-arrow,
html body .program-photo-arrow,
html body .testimonial-arrow {
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 1px solid rgba(17, 19, 24, .88) !important;
  border-radius: 50% !important;
  background: var(--yellow) !important;
  color: #111318 !important;
  box-shadow: 0 0 0 4px rgba(255, 221, 0, .2), 0 8px 18px rgba(17, 19, 24, .13) !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

html body .carousel-button:hover,
html body .carousel-button:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 11px 24px rgba(17, 19, 24, .22) !important;
}

@media (max-width: 780px) {
  html body .module-card::after,
  html body .module-panel .module-card::after,
  html body .module-panel-premium .module-card::after {
    content: "Leer más" !important;
    display: inline-flex !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 10px 0 0 !important;
    padding: 9px 15px !important;
    border: 1px solid #111318 !important;
    border-radius: 999px !important;
    background: var(--yellow) !important;
    color: #111318 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .chatbot-panel {
    width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 88px) !important;
  }
  .chatbot-toggle {
    min-width: 124px !important;
    height: 52px !important;
    padding: 0 17px 0 14px !important;
  }
}

@media (min-width: 781px) {
  html body .program-card-arrow,
  html body .program-photo-carousel > .carousel-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 0 4px !important;
    border: 2px solid #111318 !important;
    border-radius: 50% !important;
    background: var(--yellow) !important;
    color: #111318 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22) !important;
    font-family: Arial, sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body .program-card-arrow:hover,
  html body .program-photo-carousel > .carousel-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28) !important;
  }
}
