/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
  --black-main: #0f0f0f;
  --black-soft: #161616;
  --gray-dark: #2a2a2a;
  --gray-medium: #6b6b6b;
  --gray-light: #e5e5e5;
  --white-main: #ffffff;
  --accent-yellow: #ebe300;
}

/* =========================================================
   RESET / NORMALIZE
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.15;
  scroll-behavior: smooth;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  text-decoration: none;
}

/* =========================================================
   FUENTES
========================================================= */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/montserrat-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/montserrat-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/montserrat-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/montserrat-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* =========================================================
   ESTILOS BASE / TIPOGRAFÍA
========================================================= */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--white-main);
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--black-main);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

p,
li {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.small,
.meta {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  background: var(--black-main);
  border-bottom: 1px solid #111;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 90px;
}

.header-col {
  display: flex;
  align-items: center;
}

.header-left { justify-content: flex-start; }

.header-center { justify-content: center; }

.header-right {
 justify-content: flex-end;
 gap: 10px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-logo img {
  max-height: 52px;
  height: auto;
  width: auto;
  display: block;
}

.brand-separator {
  width: 1px;
  height: 50px;
  background: var(--white-main);
  opacity: 0.5;
}

.site-title-custom a {
  text-decoration: none;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  display: inline-flex;
  flex-direction: column;
}

.site-title-custom a .first-word {
  color: var(--white-main);
}

.site-title-custom a .other-words {
  color: var(--accent-yellow);
  position: relative;c
}

.first-word {
  color: var(--white-main);
}

.other-words {
  color: var(--accent-yellow);
  position: relative;
}

.other-words::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  max-width: 135px;
  max-height: 60px;
}

.site-header a:hover {
  color: var(--accent-yellow);
}

.btn-ver-indice {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 0.35rem 1rem;
  background: transparent;
  color: var(--accent-yellow);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  border: 2px solid var(--accent-yellow);
}

/* =====================================
   HERO PROGRAMA
===================================== */
.programa-hero {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 3rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #4b5563;
  border-bottom-left-radius: 45px;
  border-bottom-right-radius: 45px;
}

.programa-hero-bg {
  position: absolute;
  inset: 0;
  background: #4b5563;
  z-index: 1;
}

.programa-hero-bg picture {
  width: 100%;
  height: 100%;
  display: block;
}

.programa-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.programa-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.3));
}

.programa-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  width: 100%;
}

.programa-hero .programa-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.programa-hero .programa-meta {
  background: var(--accent-yellow);
  padding: .25rem .5rem;
  border-radius: 6px;
  max-width: fit-content;
  font-size: .9rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: #111;
  text-transform: capitalize;
  white-space: normal;
  word-break: break-word;
}

.programa-hero .btn-ver-detalles {
  padding: 0.5rem 1.5rem;
  background: var(--accent-yellow);
  color: #111;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.programa-hero .btn-ver-detalles:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* =========================================================
   LAYOUT GENERAL
========================================================= */
.site-main {
  flex: 1;
  padding: 3rem 0;
  background: #f4f4f4;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* =========================================================
   CATÁLOGO – GRID
========================================================= */
.catalogo-programas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* =========================================================
   CATÁLOGO – PROGRAMA CARD
========================================================= */
.programa-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.programa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  border-color: #111;
}

/* Título */
.programa-titulo {
 display: block;
  margin: -1.15rem -1.15rem 0rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: #374151;
  background-color: #e7e7e7;
  border-radius: 10px 10px 0px 0px;
}

.programa-titulo a {
  color: #3D3D3D;
}

.programa-card:hover .programa-titulo a {
  color: #ebe300;
  text-decoration: underline;
}

/* Meta */
.programa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-medium);
  margin: 1rem 0;
}

.programa-meta span {
  position: relative;
  padding-left: 0.5rem;
}

.programa-meta span::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-yellow);
  transform: scale(2);
  transform-origin: center;
}

/* Acciones */
.programa-actions {
  margin-top: auto;
}

.btn-ver-detalles {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 0.35rem 1.25rem;
  background: var(--accent-yellow);
  color: #111;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

/* Microinteracciones */
.programa-card:hover .btn-ver-detalles {
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background: var(--black-main);
  color: #fff;
}

.programa-card:focus-within {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* =========================================================
   FILTROS – CATÁLOGO PROGRAMAS
========================================================= */
.catalogo-header {
  margin: 1rem 0;
}

.catalogo-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black-main);
}

.catalogo-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-medium);
}

.catalogo-filtros-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 10px 15px rgba(0,0,0,0.08);
}

.filtro-item select,
.filtro-item input[type="search"] {
  min-width: 175px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-size: 0.85rem;
}

.filtro-acciones {
  display: flex;
  gap: 0.75rem;
}

.filtro-buscar {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.filtro-buscar input[type="search"] {
  width: 100%;
  padding: 0.5rem 0.85rem 0.5rem 2.4rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filtro-buscar .filtro-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-medium);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.filtro-buscar input::placeholder {
  color: var(--gray-medium);
}

.filtro-buscar input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(235,227,0,0.25);
}

.filtro-item select {
  appearance: none;
  background-image:
  linear-gradient(45deg, transparent 50%, #777 50%),
  linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
  calc(100% - 16px) 50%,
  calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.filtro-item select:focus,
.filtro-item input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 2px rgba(235,227,0,0.25);
}

.btn-filtrar {
  padding: 0.6rem 1.4rem;
  background: var(--accent-yellow);
  color: #111;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
  background-color 0.2s ease,
  color 0.2s ease,
  transform 0.15s ease,
  box-shadow 0.15s ease;
}

.btn-filtrar:hover {
  background: #111;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-filtrar:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-limpiar {
  font-size: 0.8rem;
  color: #111;
  padding: 0.5rem 0.25rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-limpiar:hover {
  color: var(--black-main);
  text-decoration: underline;
}

.btn-filtrar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.catalogo-filtros-activos {
  margin: 2rem 0;
  font-size: 0.8rem;
  color: var(--gray-medium);
}

.filtro-chip {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-yellow);
  color: #111;
  border-radius: 20px;
  font-size: 0.75rem;
}

.catalogo-contador {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.catalogo-filtros {
  margin-bottom: 2rem;
}

.catalogo-programas-grid {
  margin-top: 1.5rem;
}

/* =========================
   PAGINACIÓN
========================= */

.pagination,
.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 2.5rem 0 1rem;
  padding: 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-dark);
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  transition:
  background-color 0.2s ease,
  color 0.2s ease,
  border-color 0.2s ease,
  transform 0.15s ease;
}

.page-numbers:hover {
  background: var(--black-main);
  color: #fff;
  border-color: var(--black-main);
  transform: translateY(-1px);
}

.page-numbers.current {
  background: var(--accent-yellow);
  color: #111;
  border-color: var(--accent-yellow);
  font-weight: 600;
  pointer-events: none;
}

.page-numbers.prev,
.page-numbers.next {
  font-size: 0.75rem;
  padding: 0 0.75rem;
}

.page-numbers.dots {
  border: none;
  background: transparent;
  pointer-events: none;
}

.page-numbers:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* =====================================================
   SINGLE PROGRAMA
===================================================== */

/* Header */
.programa-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: bold;  
}

/* Layout */
.programa-layout {
  display: flex;
  flex-direction: column;
}

.programa-content {
  font-size: 1rem;
}

.programa-description {
  margin-top: 1rem;
}

.programa-video {
  margin: 2rem 0;
}

.programa-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.programa-video iframe:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.programa-folleto {
  margin-top: 1.5rem;
}

.programa-info {
  background: #eee;
  border: 1px solid #ddd;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 1.5rem;
}

.programa-info h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
  margin-top: 0;
  text-align: center;
}

.programa-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.programa-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-medium);;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
  transition: background 0.2s ease;
}

.programa-info-list li:hover {
  background: rgba(235,227,0,0.25);
}

.programa-info-list li:last-child {
  border-bottom: none;
}

.programa-info-list strong {
  font-weight: 600;
  color: var(--black-main);
}

/* =========================================================
   PROGRAMA SUMMARY
========================================================= */

.programa-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.programa-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-medium);
}

.programa-summary-meta span {
  position: relative;
  padding-left: 0.5rem;
  font-weight: normal;
}

.programa-summary-meta span::after {
  content: "•";
  margin-left: 0.7rem;
  position: absolute;
  color: var(--accent-yellow);
  transform: scale(2);
  transform-origin: center;
}

.programa-summary-meta span:last-child::after {
  content: "";
}

.programa-summary-cta {
  flex-shrink: 0;
}

/* =========================================================
   PROGRAMA LEER MÁS
========================================================= */

.programa-description--collapsible {
  position: relative;
}

.programa-description-inner {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.programa-description-inner p {
 font-size: 0.9rem;
}

.programa-description--collapsed
.programa-description-inner > *:not(:first-child) {
  display: none;
}

.programa-description--collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  height: 60px;
  pointer-events: none;
  background: linear-gradient(
  to bottom,
  rgba(255,255,255,0),
  var(--white-main)
  );
}

.programa-description--expanded
.programa-description-inner > * {
  display: block;
}

.programa-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black-main);
  cursor: pointer;
}

.programa-read-more::before {
  content: "+";
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease;
}

.programa-read-more:hover {
  text-decoration: underline;
}

.programa-description--expanded
.programa-read-more::before {
  content: "−";
}

.programa-read-more:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* =========================================================
   TITULACIONES Y CERTIFICACIONES
========================================================= */

.programa-titulaciones,
.programa-certificaciones {
  margin-top: 4rem;
}

.programa-titulaciones h2,
.programa-certificaciones h2 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 2rem;
}

/* WYSIWYG */
.programa-wysiwyg {
  display: grid;
  gap: 1.5rem;
}

.programa-wysiwyg h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.programa-wysiwyg p {
  font-size: 0.95rem;
  color: var(--gray-dark);
}

/* =========================================================
   PROGRAMA TABLA GRID
========================================================= */

.programa-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
}

.programa-table-row {
  display: grid;
  grid-auto-flow: column;
  border-bottom: 1px solid var(--gray-light);
}

.programa-table-row:last-child {
  border-bottom: none;
}

/* Header */
.programa-table-header {
  background: #ebe300;
  font-weight: 600;
}

.programa-table-col {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

/* =========================================================
   PROGRAMA - TABLA GRID COL IGUALES
========================================================= */

/* Base */
.programa-table-row {
  display: grid;
  width: 100%;
}

/* Titulaciones: 3 columnas iguales */
.programa-table.titulaciones .programa-table-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Certificaciones: 2 columnas iguales */
.programa-table.certificaciones .programa-table-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.programa-table-col {
  min-width: 0;
  word-break: break-word;
}

/* =========================================================
   FOOTER
========================================================= */
.footer-logos {
  background: var(--black-soft);
}

.footer-logos-inner {
  padding: 1.5rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-widget img {
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.footer-widget img:hover {
  opacity: 1;
}

.footer-copy {
  background: var(--black-soft);
  color: #b5b5b5;
  padding: 1rem 0;
  text-align: center;
}

.footer-copy p {
  margin: 0;
  font-size: 0.85rem;
}

/* =========================================================
   INFORMACIÓN HORIZONTAL DEL PROGRAMA
   ========================================================= */
.programa-info-horizontal {
  margin: -8rem 0 2rem 0;
  padding: 1.5rem;
  background-color: #dfdfdf;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  z-index: 111;
}

/* Grid principal */
.programa-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Item */
.programa-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

/* Label */
.programa-info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}

/* Value */
.programa-info-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
  word-break: break-word;
}

.programa-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  width: fit-content;
}

/* Activo */
.programa-status-badge.is-active {
  background-color: #dcfce7;
  color: #166534;
}

/* Inactivo */
.programa-status-badge.is-inactive {
  background-color: #fee2e2;
  color: #991b1b;
}

.programa-info-item {
  position: relative;
}

/* Divider vertical */
.programa-info-item::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -0.75rem;
  width: 1px;
  height: 80%;
  background-color: rgba(0, 0, 0, 0.15);
}

.programa-info-item:nth-child(4n)::after {
  display: none;
}

/* =========================================================
   SECCIÓN EXTRAS DEL PROGRAMA
   ========================================================= */

.programa-extras {
  margin: 1.5rem 0;
}

.programa-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.programa-extra-box {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow:
  0 1px 2px rgba(0, 0, 0, 0.04),
  0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  height: 100%;
}

.programa-extra-box--icon {
  position: relative;
  overflow: visible;
}

.programa-extra-icon {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 84px;
  height: 84px;
  padding: 16px;
  background: #ffffff;
  border-radius: 50%;
  border: 3px solid var(--accent-yellow);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 5;
  pointer-events: none;
}

.programa-extra-box--icon:hover .programa-extra-icon {
  transform: translateY(-6px) rotate(4deg);
  box-shadow: 0 18px 35px rgba(0,0,0,0.22);
}

.programa-extra-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.programa-extra-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.programa-extra-content ul {
  list-style: none;
  padding-left: 0;
}

.programa-extra-content li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
}

.programa-extra-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #facc15;
}

/* =========================================================
   VIDEO
   ========================================================= */

.programa-video-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
  0 8px 24px rgba(0, 0, 0, 0.08);
}

.programa-video-wrapper iframe,
.programa-video-wrapper video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

/* =========================================================
   ÍNDICE DE PROGRAMAS
   ========================================================= */
.indice-programas {
  margin: 3rem 0;
}

.indice-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.indice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--gray-light, #e5e7eb);
  background: #fff;
  color: var(--black-main, #111);
  transition: all 0.2s ease;
  cursor: pointer;
}

.indice-letter:hover {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: #000;
  transform: translateY(-2px);
}

.indice-letter.active {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.indice-letter.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.indice-results {
  min-height: 80px;
  transition: opacity 0.2s ease;
}

.indice-loading {
  opacity: 0.6;
  font-style: italic;
}

.indice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.indice-list li {
  margin-bottom: 0.75rem;
}

.indice-list a {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  color: var(--black-main, #111);
  transition: color 0.2s ease, transform 0.2s ease;
}

.indice-list a:hover {
  color: var(--accent-yellow);
  transform: translateX(4px);
}

.indice-results p {
  margin: 0.5rem 0;
  color: var(--gray-medium, #6b7280);
}

.indice-header {
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-light, #e5e7eb);
}

.indice-result-letter {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.indice-result-count {
  font-size: 0.9rem;
  margin-top: 0.25rem;
  color: var(--gray-medium, #6b7280);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 1025px) {
  .programa-info {
    position: sticky;
    top: 120px;
  }
}

@media (max-width: 1024px) {
  .catalogo-programas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .programa-layout {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .programa-info {
    order: 1;
    margin-bottom: 2rem;
  }

  .programa-content {
    order: 2;
  }

  .programa-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .programa-info-item:nth-child(5n)::after {
    display: block;
  }

  .programa-info-item:nth-child(3n)::after {
    display: none;
  }
}

@media (max-width: 992px) {
  .header-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .brand-wrapper {
    justify-content: center;
    gap: 12px;
  }

  .brand-separator {
    display: none;
  }

  .programa-hero {
    min-height: 500px;
  }

  .programa-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .site-main {
    padding: 2rem 0;
  }

  .header-grid {
    min-height: 70px;
  }

  .site-logo img {
    max-width: 100px;
    max-height: 44px;
  }

  .footer-copy {
    padding: 1rem 0;
  }

  .footer-copy p {
    font-size: 0.75rem;
  }

  .catalogo-filtros-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filtro-item select,
  .filtro-item input {
    width: 100%;
  }

  .filtro-acciones {
    justify-content: space-between;
  }

  .programa-extras-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .programa-extra-box {
    padding: 1.5rem;
  }

  .programa-extra-icon {
    width: 64px;
    height: 64px;
    padding: 12px;
    top: -20px;
    right: -20px;
  }

  .programa-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .programa-summary-cta {
    width: 100%;
  }

  .programa-summary-cta .btn-ver-detalles {
    width: 100%;
    text-align: center;
  }

  .programa-table-row {
    grid-template-columns: 1fr !important;
  }

  .programa-table-header {
    display: none;
  }

  .programa-table-col {
    border-bottom: 1px dashed var(--gray-light);
  }

  .programa-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .programa-header-cta {
    width: 100%;
  }

  .programa-header-cta .btn-ver-detalles {
    width: 100%;
    text-align: center;
  }
  
  .indice-letter {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .sticky-nav {
    top: 80px;
  }
}

@media (max-width: 640px) {
  .programa-hero {
    min-height: 420px;
    padding: 3rem 0;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
  }

  .programa-hero .btn-ver-detalles {
    width: 100%;
    text-align: center;
  }

  .page-numbers {
    min-width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .catalogo-programas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .programa-header {
    margin-bottom: 2rem;
  }

  .programa-titulaciones,
  .programa-certificaciones {
    margin-top: 3rem;
  }

  .programa-info {
    padding: 1.25rem;
  }

  .programa-description-inner {
    max-height: 220px;
  }

  .programa-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .programa-info-item::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    max-height: 42px;
  }

  .site-title-custom a {
    font-size: 16px;
  }
  
  .indice-letter {
    min-width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}