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

.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: 15px;
  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: rgba(255,255,255,.55);
}
.tpu-btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.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);
  line-height: 1.55;
  color: var(--tpu-muted);
  margin: 0;
}

.tpu-section { padding: 72px 0; }
.tpu-section--dark { background: var(--tpu-dark); color: #fff; }
.tpu-section--dark .tpu-lead { color: rgba(255,255,255,.72); }
.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,.82) 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: 34px;
  margin: 0 auto 34px;
}

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

.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 30px;
}

.tpu-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 34px;
}
.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: 48px;
}

.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;
  gap: 18px;
  margin: 44px auto 0;
  max-width: 640px;
}
.tpu-steps__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 14px;
}
.tpu-steps__number {
  color: var(--tpu-yellow);
  font-weight: 600;
  font-size: 24px;
}
.tpu-steps__text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
  text-align: left;
  margin: 0;
}

/* =========================================================
   CONVOCATORIAS
   ========================================================= */
.tpu-convocatorias {
  background: #EEEEEE;
  color: var(--tpu-text);
  border-radius: 0;
  padding: 40px 36px;
  margin: 52px 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: 32px;
  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 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,
.tpu-split__media .tpu-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
}

.tpu-note {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 400;
  color: var(--tpu-muted);
  line-height: 1.5;
}
.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: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  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: #d19f00; flex: none; }

.tpu-card__title {
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  margin: 0;
}
.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;
  gap: 6px;
}
.tpu-card__meta span:not(:last-child)::after { content: '·'; margin-left: 6px; }

.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-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: 1px solid var(--tpu-border);
  border-radius: 999px;
  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-catCard {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--tpu-dark);
  color: #fff;
}
.tpu-catCard__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 30px;
  cursor: pointer;
  background-color: var(--tpu-dark);
  background-size: cover;
  background-position: center;
  position: relative;
}
.tpu-catCard__summary::-webkit-details-marker { display: none; }

/* Solo se añade un degradado extra cuando la fila 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. */
.tpu-catCard__summary--fallbackBg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.86) 0%, rgba(10,10,12,.55) 100%);
}
.tpu-catCard__icon,
.tpu-catCard__body { position: relative; z-index: 1; }

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

.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 { border: none; padding: 0; }
.tpu-catCard__meta .tpu-tag:not(:last-child)::after { content: '·'; margin-left: 10px; color: rgba(255,255,255,.6); }
.tpu-catCard__title { font-size: 22px; font-weight: 700; margin: 0; color: #fff; }

.tpu-catCard__content {
  background-color: var(--tpu-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 10px 30px 30px;
  position: relative;
}
.tpu-catCard__content--fallbackBg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.86) 0%, rgba(10,10,12,.55) 100%);
}
.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 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  flex: 1 1 auto;
  min-width: 0;
}
.tpu-catCard__courseActions { display: flex; gap: 10px; flex: none; white-space: nowrap; }
.tpu-catCard__empty { font-size: 14px; color: rgba(255,255,255,.75); }

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

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

.tpu-ctaBand {
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  height: 453px;
  display: flex;
  align-items: center;
}
.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 auto;
  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;
}
.tpu-faq__q:hover, .tpu-faq__q:active { background-color: transparent !important; color: #000; }

.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);
  letter-spacing: -0.005em;
}

@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;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}
.tpu-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  border: 0;
  border-radius: 50%;
  color: var(--tpu-text);
  cursor: pointer;
  transition: background .15s ease;
}
.tpu-modal__close:hover { background: #e6e6e6; }
.tpu-modal__body form[data-zhf="1"] { max-width: none; }

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; }
}

@media (max-width: 680px) {
  .tpu-section { padding: 52px 0; }
  .tpu-hero { padding: 90px 0 44px; }
  .tpu-hero__title { font-size: 36px !important; }
  .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-steps__item { display: block; text-align: center; }
  .tpu-steps__number { display: block; margin-bottom: 4px; }
  .tpu-steps__text { text-align: center; }
  .tpu-featured__grid { grid-template-columns: 1fr; }
  .tpu-convocatorias { padding: 30px 20px; }
  .tpu-convocatorias__list { gap: 16px; }
  .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; }
  .tpu__ctaRow { justify-content: center; }
}
