/* =========================================================
   Plantilla: Titulación propia universitaria (Educa PHAROS)
   Namespace de clases: .tpu-
   ========================================================= */

/* Este CSS solo carga en esta landing, así que el scroll suave no afecta
   al resto del sitio. Necesario para los anclas a #tpu-catalogo. */
html { scroll-behavior: smooth; }

.tpu {
  --tpu-yellow: #FFD00F;
  --tpu-dark: #111214;
  --tpu-dark-soft: #1b1c1f;
  --tpu-text: #1a1a1a;
  --tpu-muted: #5b5f66;
  --tpu-border: #e4e4e4;
  --tpu-max: 1400px;
  --tpu-radius: 10px;

  color: var(--tpu-text);
  font-family: 'Montserrat', sans-serif;
}

.tpu *, .tpu *::before, .tpu *::after { box-sizing: border-box; }

/* El div `.ast-container` de Astra se elimina por PHP (functions.php, vía
   output buffering en template_redirect) solo para esta plantilla, así que
   .tpu-hero/.tpu-section quedan como hijos directos de #content y ocupan el
   100% del ancho de forma natural: no hace falta ningún hack de CSS aquí. */

.tpu__container {
  max-width: var(--tpu-max);
  margin: 0 auto;
  padding: 0 24px;
}

.tpu img { max-width: 100%; display: block; }

/* ---------- Placeholders de media pendiente de subir ---------- */
.tpu-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, #f1f1f1, #f1f1f1 10px, #e6e6e6 10px, #e6e6e6 20px);
  border: 1px dashed #b7b7b7;
  color: #777;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  min-height: 120px;
  border-radius: var(--tpu-radius);
}

/* ---------- Botones ---------- */
.tpu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none !important;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1.1;
}
.tpu-btn:hover { transform: translateY(-1px); }

.tpu-btn--primary {
  background: var(--tpu-yellow);
  color: #111 !important;
  border-color: var(--tpu-yellow);
  font-size: 20px;
  font-weight: 500;
}
.tpu-btn--primary:hover { background: #e6bc00; border-color: #e6bc00; color: #111 !important; }

.tpu-btn--outline-light {
  background: transparent;
  color: #fff !important;
  border-color: #ffd00f;
}
.tpu-btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #ffd00f; }

.tpu-btn--outline-dark {
  background: transparent;
  color: #111 !important;
  border-color: #111;
}
.tpu-btn--outline-dark:hover { background: #111; color: #fff !important; }

.tpu-btn--dark {
  background: #3a3d42;
  color: #fff !important;
  border-color: #3a3d42;
}
.tpu-btn--dark:hover { background: #4a4e54; border-color: #4a4e54; }

.tpu-btn--sm { padding: 10px 18px; font-size: 13px; }
.tpu-btn--block { width: 100%; }

.tpu__ctaRow { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Titulares ---------- */
.tpu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tpu-yellow);
  margin-bottom: 14px;
}

.tpu-h2 {
  font-size: clamp(26px, 3vw, 40px) !important;
  font-weight: 700 !important;
  line-height: 1.15;
  margin: 0 0 16px;
}
.tpu-h2--yellow { color: var(--tpu-yellow) !important; }
.tpu-h2--howItWorks { font-size: 55px !important; font-weight: 700 !important; text-align: center; }
.tpu-h2--condiciones { font-size: 45px !important; font-weight: 700 !important; }

.tpu-lead {
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--tpu-text);
  margin: 0;
}

.tpu-section { padding: 72px 0; }
.tpu-section--dark { background: var(--tpu-dark); color: #fff; }
.tpu-section--dark .tpu-lead { color: #fff; }
.tpu-section--soft { background: #f7f7f8; }

/* =========================================================
   HERO
   ========================================================= */
.tpu-hero {
  position: relative;
  color: #fff;
  padding: 110px 0 60px;
  overflow: hidden;
  background: var(--tpu-dark);
}

.tpu-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tpu-hero__media video,
.tpu-hero__media .tpu-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.tpu-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.72) 0%, rgba(10,10,12,.62) 55%, rgba(10,10,12,.95) 100%);
  z-index: 1;
}

.tpu-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1260px;
  margin: 0 auto;
}

.tpu-hero__logo {
  height: 60px;
  margin: 0 auto 34px;
}

.tpu-hero__title {
  font-size: 75px !important;
  font-weight: 600 !important;
  line-height: 0.94;
  margin: 0 0 45px;
}

.tpu-hero__subtitle {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255,255,255,.82);
  max-width: 1087.16px;
  margin: 0 auto 45px;
}

.tpu-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 45px;
}
.tpu-hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #FFD00F;
}
.tpu-hero__badge svg { flex: none; width: 26px; height: 26px; color: var(--tpu-yellow); }
.tpu-hero__badge img { flex: none; width: 26px; height: 26px; }

.tpu-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 150px;
}

.tpu-hero__partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.tpu-hero__partnersRow {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 34px;
}
.tpu-hero__partnersRow--brand { grid-template-columns: repeat(2, 1fr); }
.tpu-hero__partnersRow:not(.tpu-hero__partnersRow--brand) { grid-template-columns: repeat(3, 1fr); }
.tpu-hero__partners .tpu-placeholder {
  min-height: 40px;
  width: 140px;
  padding: 6px;
  font-size: 11px;
}

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.tpu-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 44px auto 0;
  max-width: 620px;
}
.tpu-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 600px;
  margin: 0 auto;
}
.tpu-steps__number {
  flex: none;
  color: var(--tpu-yellow);
  font-weight: 600;
  font-size: 20px;
  margin-top: -3px;
}
.tpu-steps__text {
  flex: 0 1 auto;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255,255,255,.86);
  text-align: center;
  margin: 0;
}

/* =========================================================
   CONVOCATORIAS
   ========================================================= */
/* Section propia: sin padding superior, lo pone el margen negativo de la
   tarjeta para que monte sobre el negro de la section "Cómo funciona". */
.tpu-section--convocatorias { padding-top: 0; }
.tpu-section--howItWorks { padding-bottom: 140px; }
.tpu-convocatorias {
  background: #EEEEEE;
  color: var(--tpu-text);
  border-radius: 0;
  padding: 40px 36px;
  margin: -90px auto 0;
  max-width: 1173px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.tpu-convocatorias__title { font-size: 48px !important; font-weight: 700 !important; margin: 0 0 6px; }
.tpu-convocatorias__subtitle { font-size: 24px; font-weight: 600; color: var(--tpu-muted); margin: 0 0 26px; }

.tpu-convocatorias__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}
.tpu-convocatorias__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 25px;
}
.tpu-convocatorias__item:not(:first-child) {
  padding-left: 16px;
  border-left: 2px solid var(--tpu-yellow);
}
.tpu-convocatorias__item svg { color: var(--tpu-yellow); flex: none; width: 28px; height: 28px; }
.tpu-convocatorias__icon { width: 28px; height: 28px; flex: none; }

/* =========================================================
   CHECKLIST (condiciones exclusivas / por qué ahora)
   ========================================================= */
.tpu-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.tpu-split--reverse .tpu-split__media { order: -1; }

.tpu-checklist {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tpu-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
}
.tpu-checklist__item svg,
.tpu-checklist__item img {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--tpu-yellow);
}
.tpu-section--dark .tpu-checklist__item svg,
.tpu-section .tpu-checklist__item svg { color: #d19f00; }
.tpu-section--dark .tpu-checklist__item svg { color: var(--tpu-yellow); }

.tpu-split__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}
.tpu-split__media .tpu-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0;
}

.tpu-note {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 400;
  color: var(--tpu-muted);
  line-height: 1.5;
}
.tpu-section--condiciones .tpu-note { color: #000; }
.tpu-note--onDark { color: rgba(255,255,255,.6); }

/* =========================================================
   MASTER DESTACADO (cards)
   ========================================================= */
.tpu-featured { background-size: cover; background-position: center; }
.tpu-featured__head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.tpu-featured__head h2 { font-size: 48px !important; font-weight: 700 !important; color: #fff !important; }

.tpu-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tpu-card {
  border: 1px solid var(--tpu-border);
  border-radius: var(--tpu-radius);
  background: #fff;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tpu-card:hover { box-shadow: 0 16px 34px rgba(0,0,0,.08); transform: translateY(-2px); }

.tpu-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #A3830B;
}
.tpu-card__tag svg { color: #A3830B; flex: none; }
/* El icono real es el mismo archivo .svg que usa .cs-eyebrow (en amarillo);
   aquí se oscurece solo con filtro, sin tocar el archivo compartido. */
.tpu-card__tag img { filter: brightness(.64); flex: none; }

.tpu-card__title {
  font-size: 21px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  margin: 0;
  min-height: 82px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpu-card__title a { color: inherit !important; text-decoration: none; }
.tpu-card__title a:hover { text-decoration: underline; }

.tpu-card__meta {
  font-size: 15px;
  font-weight: 500;
  color: var(--tpu-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tpu-card__meta span:not(:last-child) {
  padding-right: 10px;
  border-right: 1px solid #E2E2E2;
}
.tpu-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tpu-card__meta svg { flex: none; width: 16px; height: 16px; color: var(--tpu-muted); }
.tpu-card__meta img { flex: none; width: 16px; height: 16px; }

.tpu-card__priceNote {
  font-size: 15px;
  font-weight: 500;
  color: var(--tpu-muted);
  margin: 0;
}
.tpu-card__price { font-size: 24px; font-weight: 600; margin: 0; }

.tpu-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.tpu-card__actions .tpu-btn--outline-dark {
  border-color: var(--tpu-yellow);
}
.tpu-card__actions .tpu-btn--outline-dark:hover {
  background: var(--tpu-yellow);
  border-color: var(--tpu-yellow);
  color: #111 !important;
}

.tpu-featured__note {
  text-align: center;
  margin: 26px auto 0;
  max-width: 640px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-wrap: balance;
}

/* =========================================================
   CATALOGO (categorías course_category)
   ========================================================= */
.tpu-catalog__search {
  position: relative;
  width: 100%;
  margin: 0 auto 40px;
}
.tpu-catalog__search input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border: 1.5px solid #111;
  border-radius: 0;
  font-size: 15px;
  outline: none;
}
.tpu-catalog__search input:focus { border-color: #111; }
.tpu-catalog__searchIcon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.tpu-catalog__noResults {
  text-align: center;
  font-size: 14px;
  color: var(--tpu-muted);
  margin: -24px 0 30px;
}

.tpu-catCard {
  position: relative;
  border: none;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 18px;
  background-color: var(--tpu-dark);
  background-size: cover;
  background-position: center var(--tpu-cat-bg-y, 25%);
  color: #fff;
}
.tpu-catCard__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 30px;
  cursor: pointer;
  position: relative;
}
.tpu-catCard__summary::-webkit-details-marker { display: none; }

/* Solo se añade un degradado extra cuando la categoría usa el fondo genérico de
   respaldo (catalog-category-bg.*): las fotos propias de cada categoría ya
   traen su propio degradado incorporado, así que no se les vuelve a aplicar.
   Va en la tarjeta entera (no en summary/content por separado) para que el
   fondo se vea como una sola foto continua al abrir. */
.tpu-catCard--fallbackBg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.86) 0%, rgba(10,10,12,.55) 100%);
  z-index: 0;
}
.tpu-catCard__icon,
.tpu-catCard__body { position: relative; z-index: 1; }

.tpu-catCard__icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--tpu-yellow);
}
.tpu-catCard__icon img,
.tpu-catCard__icon svg { width: 35px; height: 35px; }

.tpu-catCard__body { flex: 1; min-width: 0; }
.tpu-catCard__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--tpu-yellow);
  font-weight: 700;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.tpu-catCard__meta > .tpu-tag:not(:last-child)::after { content: '·'; margin-left: 10px; color: rgba(255,255,255,.6); }
.tpu-catCard__meta .tpu-tag { border: none; padding: 0; }
.tpu-catCard__langs { display: inline-flex; align-items: center; gap: 8px; }
.tpu-catCard__langs svg { color: var(--tpu-yellow); flex: none; width: 15px; height: 15px; }
.tpu-tag--lang { color: #fff; }
.tpu-catCard__langDivider { width: 2px; height: 12px; background: var(--tpu-yellow); flex: none; }
.tpu-catCard__title { font-size: 22px; font-weight: 700; margin: 0; color: #fff; }

.tpu-catCard__content {
  color: #fff;
  padding: 10px 30px 30px;
  position: relative;
}
.tpu-catCard__courses,
.tpu-catCard__more { position: relative; z-index: 1; }

.tpu-catCard__courses {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.tpu-catCard__course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.tpu-catCard__course:last-child { border-bottom: none; }
.tpu-catCard__courseTitle,
.tpu-catCard__courseTitle:visited,
.tpu-catCard__courseTitle:hover,
.tpu-catCard__courseTitle:focus,
.tpu-catCard__courseTitle:active {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  flex: 1 1 auto;
  min-width: 0;
  color: #fff !important;
  text-decoration: none;
}
.tpu-catCard__courseTitle:hover,
.tpu-catCard__courseTitle:focus { text-decoration: underline; }
.tpu-catCard__courseActions { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.tpu-catCard__empty { font-size: 14px; color: rgba(255,255,255,.75); }

@media (max-width: 680px) {
  .tpu-catCard__courseActions { flex-wrap: wrap; white-space: normal; }
}

.tpu-catCard__more { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; text-decoration: underline; color: #fff; }

/* =========================================================
   CTA BANDAS
   ========================================================= */
.tpu-ctaCard {
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--tpu-text);
  border: 1px solid var(--tpu-border);
  border-radius: 0;
  padding: 46px;
  text-align: center;
  max-width: 1300px;
  margin: 0 auto;
  margin-bottom: -140px;
}
.tpu-ctaCard .tpu-h2 { font-size: 26px !important; color: var(--tpu-text) !important; }
.tpu-ctaCard .tpu-lead { color: var(--tpu-text); }
.tpu-ctaCard .tpu__ctaRow { justify-content: center; margin-top: 24px; }

/* CTA "Convalidación exacta": ajustar posición aquí */
.tpu-section--convalidacion {
}

.tpu-ctaBand {
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: flex-end;
}
.tpu-ctaBand .tpu__container { width: 100%; }
.tpu-ctaBand .tpu__ctaRow { justify-content: center; margin-top: 26px; }

/* =========================================================
   FAQ
   ========================================================= */
/* Réplica fiel de .pharos-faq (educapharos.com), renombrada a .tpu-faq. */
.tpu-faq {
  --ph-yellow: #ffd200;
  --ph-text: #0f0f0f;
  --ph-body: #2a2a2a;
  --ph-max: 1180px;
  max-width: var(--ph-max);
  margin: 0;
  padding: 6px 0 28px;
  color: var(--ph-text);
}

.tpu-faq__item {
  border-bottom: 3px solid var(--ph-yellow);
}

.tpu-faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 30px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  color: var(--ph-text); /* los <button> no heredan el color del texto normal */
}
/* Astra estila button:hover/focus con su azul y !important; se cubren aquí
   también :focus con !important para que no se cuele en ningún estado. */
.tpu-faq__q:hover, .tpu-faq__q:focus, .tpu-faq__q:active {
  background-color: transparent !important;
  color: var(--ph-text) !important;
}

.tpu-faq__qtext {
  display: block;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  font-size: 24px !important;
  line-height: 1.06;
  margin: 0;
}

.tpu-faq__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #111;
  transform-origin: 50% 50%;
  transition: transform .22s ease;
}
.tpu-faq__icon svg { width: 26px; height: 26px; display: block; }

.tpu-faq__item.is-open .tpu-faq__icon { transform: rotate(180deg); }

.tpu-faq__q:focus-visible {
  outline: 3px solid rgba(255,210,0,.55);
  outline-offset: 6px;
  border-radius: 10px;
}

.tpu-faq__a { padding: 0 0 26px; }
.tpu-faq__acontent {
  max-width: 980px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ph-body) !important;
  letter-spacing: -0.005em;
  border: none;
  outline: none;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .tpu-faq__q { padding: 26px 0; }
  .tpu-faq__qtext { font-size: 24px !important; }
  .tpu-faq__icon { width: 42px; height: 42px; }
}

@media (max-width: 767px) {
  .tpu-faq__q { padding: 22px 0; gap: 16px; }
  .tpu-faq__qtext { font-size: 24px !important; line-height: 1.08; }
  .tpu-faq__icon { width: 40px; height: 40px; }
  .tpu-faq__a { padding-bottom: 22px; }
  .tpu-faq__acontent { font-size: 15.5px; line-height: 1.62; }
}

@media (prefers-reduced-motion: reduce) {
  .tpu-faq__icon { transition: none; }
}

/* =========================================================
   MODAL: solicitud de información
   Propio de esta landing (no depende del popup global Popup
   Maker #modal-info), para poder tenerlo separado y editable
   aquí sin afectar a otras páginas del sitio.
   ========================================================= */
.tpu-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tpu-modal.is-open { display: flex; }
.tpu-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,18,20,.72);
}
.tpu-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d8d9dc transparent;
  background: #fff;
  border-radius: 16px;
  padding: 36px 20px 20px;
}
.tpu-modal__dialog::-webkit-scrollbar { width: 8px; }
.tpu-modal__dialog::-webkit-scrollbar-track { background: transparent; }
.tpu-modal__dialog::-webkit-scrollbar-thumb { background: #d8d9dc; border-radius: 8px; }
.tpu-modal__dialog::-webkit-scrollbar-thumb:hover { background: #c2c3c7; }
.tpu-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  border: 0;
  border-radius: 50%;
  color: var(--tpu-text) !important;
  cursor: pointer;
  transition: background .15s ease;
}
.tpu-modal__close:hover,
.tpu-modal__close:focus,
.tpu-modal__close:active {
  background: #e6e6e6;
  color: var(--tpu-text) !important;
  outline: none;
}

/* [zoho_form] trae su propia tarjeta blanca (form.css); dentro del modal ya
   está en una, así que se quita para no anidar dos cajas con doble padding,
   y se recolorea del azul marino de origen al amarillo/negro del sitio. */
.tpu-modal__body form[data-zhf="1"] {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  --color-title: var(--tpu-text);
  --color-primary: var(--tpu-yellow);
  --color-primary-hover: #e6bc00;
  --color-focus: var(--tpu-yellow);
  --color-focus-shadow: rgba(255, 208, 15, .25);
  --color-checkbox: var(--tpu-yellow);
  --color-link: var(--tpu-text);
  --color-link-hover: var(--tpu-yellow);
  --color-select-hover: var(--tpu-yellow);
  --color-select-focus: rgba(255, 208, 15, .25);
  --color-select-option-hover: var(--tpu-yellow);
}
.tpu-modal__body form[data-zhf="1"] button[type="submit"] {
  background: var(--tpu-yellow);
  color: #111;
}
.tpu-modal__body form[data-zhf="1"] button[type="submit"]:hover { background: #e6bc00; }

body.tpu-modal-lock { overflow: hidden; }

@media (max-width: 680px) {
  .tpu-modal { padding: 0; align-items: flex-end; }
  .tpu-modal__dialog { max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .tpu-featured__grid { grid-template-columns: repeat(2, 1fr); }
  .tpu-split { grid-template-columns: 1fr; }
  .tpu-split__media { order: -1; }
  .tpu-h2--howItWorks { font-size: 42px !important; }
  .tpu-h2--condiciones { font-size: 36px !important; }
  .tpu-hero__title { margin-bottom: 30px; }
  .tpu-hero__subtitle { margin-bottom: 30px; }
  .tpu-hero__badges { margin-bottom: 30px; }
  .tpu-hero__ctas { margin-bottom: 100px; }
}

@media (max-width: 680px) {
  .tpu-section { padding: 52px 0; }
  .tpu-hero { padding: 90px 0 44px; }
  .tpu-hero__title { font-size: 36px !important; margin-bottom: 20px; }
  .tpu-hero__subtitle { margin-bottom: 20px; }
  .tpu-hero__badges { margin-bottom: 20px; }
  .tpu-hero__ctas { margin-bottom: 70px; }
  .tpu-hero__partnersRow,
  .tpu-hero__partnersRow--brand { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tpu-h2--howItWorks { font-size: 30px !important; }
  .tpu-h2--condiciones { font-size: 26px !important; }
  .tpu-checklist__item { font-size: 17px; }
  .tpu-featured__note { font-size: 17px; }
  .tpu-featured__grid { grid-template-columns: 1fr; }
  .tpu-convocatorias { padding: 30px 20px; margin-top: -50px; }
  /* A 48 px «convocatorias» no cabe en un móvil y ensanchaba la página. */
  .tpu-convocatorias__title { font-size: 32px !important; overflow-wrap: break-word; }
  .tpu-convocatorias__subtitle { font-size: 19px; }
  .tpu-section--howItWorks { padding-bottom: 90px; }
  .tpu-convocatorias__list { gap: 16px; }
  .tpu-convocatorias__item:not(:first-child) { padding-left: 0; border-left: 0; }
  .tpu-catCard__summary { padding: 20px; flex-wrap: wrap; }
  .tpu-catCard__content { padding: 6px 20px 20px; }
  .tpu-catCard__course { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tpu-ctaCard { padding: 30px 22px; margin-bottom: -70px; }
  .tpu__ctaRow { justify-content: center; }
}
