/* ============================================================
   CITICED — Estilos principales
   ============================================================ */
@import url('colors-config.css');

:root {
  --brand: #2CB6C9;
  --brand-dark: #1A8A9C;
  --dark: #0F2A38;
  --dark-2: #133444;
  --light-bg: #F5FAFB;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-body-text);
  background: var(--color-page-bg, #ffffff);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading-text, var(--dark));
}

a {
  text-decoration: none;
}

.text-light-70 {
  color: rgba(255, 255, 255, .7);
}

.text-light-25,
.border-light-25 {
  border-color: rgba(255, 255, 255, .15) !important;
}

.text-brand {
  color: var(--brand) !important;
}

.bg-brand {
  background: var(--brand) !important;
}

/* ---------- Header / Nav ---------- */
.site-header .navbar {
  background: var(--dark);
  backdrop-filter: blur(8px);
  transition: background .25s ease;
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.header-container {
  max-width: 1480px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-right: 3rem !important;
  /* Despegar logos del menú 'Inicio' */
  padding-right: .5rem;
  flex-shrink: 0;
}

.header-logo-main {
  height: 44px;
  max-width: 190px;
  object-fit: contain;
  transition: height .2s ease;
}

.header-logo-sec {
  height: 54px;
  max-width: 240px;
  object-fit: contain;
  transition: height .2s ease;
}

.header-logo-divider {
  width: 1.5px;
  height: 38px;
  background: rgba(255, 255, 255, 0.35);
  display: inline-block;
  border-radius: 1px;
  margin: 0 .25rem;
}

.navbar .navbar-nav {
  align-items: center;
}

.navbar .nav-item {
  display: flex;
  align-items: center;
}

.navbar .nav-link {
  color: var(--color-navbar-link);
  font-weight: 500;
  font-size: .875rem;
  padding: .45rem .65rem !important;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--color-navbar-link-hover, var(--brand));
}

.navbar .nav-link.active {
  position: relative;
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: .65rem;
  right: .65rem;
  bottom: .1rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* Control en dispositivos móviles para que los logos y el botón hamburguesa convivan en 1 fila */
@media (max-width: 991.98px) {
  .site-header .navbar {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .navbar-brand {
    margin-right: .5rem !important;
    padding-right: 0;
    max-width: calc(100% - 62px);
    /* Reserva espacio para el botón hamburguesa */
    gap: .4rem;
  }

  .header-logo-main {
    height: 32px;
    max-width: 44vw;
  }

  .header-logo-sec {
    height: 40px;
    max-width: 48vw;
  }

  .header-logo-divider {
    height: 28px;
    margin: 0 .15rem;
  }

  .navbar-toggler {
    padding: .35rem .55rem;
    font-size: 1.05rem;
    flex-shrink: 0;
  }

  .navbar-collapse {
    background: var(--dark);
    padding: 1rem .5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: .5rem;
  }

  .navbar .navbar-nav {
    align-items: flex-start;
  }

  .navbar .nav-link {
    padding: .6rem .8rem !important;
    font-size: .95rem;
  }
}

@media (max-width: 400px) {
  .header-logo-main {
    height: 28px;
  }

  .header-logo-sec {
    height: 34px;
  }

  .header-logo-divider {
    height: 24px;
  }
}

/* Dropdown hereda el color del navbar */
.navbar .dropdown-menu {
  background-color: var(--dark);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: .4rem 0;
  margin-top: .3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

.navbar .dropdown-menu .dropdown-item {
  color: var(--color-navbar-link, #e7f6f8);
  font-size: .9rem;
  font-weight: 500;
  padding: .55rem 1.1rem;
  border-radius: 6px;
  margin: 0 .3rem;
  transition: background .15s, color .15s;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background: rgba(255, 255, 255, .08);
  color: var(--color-navbar-link-hover, var(--brand));
}

.navbar .dropdown-menu .dropdown-item.active {
  background: rgba(44, 182, 201, .15);
  color: var(--brand);
}

.navbar .dropdown-toggle::after {
  vertical-align: .15em;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--color-btn-text);
  font-weight: 600;
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-outline-brand {
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
}

.btn-outline-brand:hover {
  background: var(--brand);
  color: var(--color-btn-text);
}

/* ---------- Hero & Slider ---------- */
.hero-slider-section {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

/* El carousel y su inner tienen altura fija — todos los slides son iguales */
.hero-carousel,
.hero-carousel .carousel-inner {
  height: 92vh;
  min-height: 540px;
}

.hero-carousel .carousel-item {
  height: 100%;
}

/* Transición ultra suave (Cross-fade continuo de 1.4s sin cortes bruscos) */
.hero-carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: none !important;
  pointer-events: none;
}

.hero-carousel.carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.hero-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.hero-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  z-index: 1;
}

.hero-carousel.carousel-fade .active.carousel-item-start,
.hero-carousel.carousel-fade .active.carousel-item-end {
  opacity: 0;
  z-index: 1;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Transición de contenido de texto suave y armónica */
.hero-carousel .carousel-item .hero-slide-item .container {
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel .carousel-item:not(.active) .hero-slide-item .container {
  opacity: 0;
  transform: translateY(14px);
}

.hero-carousel .carousel-item.active .hero-slide-item .container {
  opacity: 1;
  transform: translateY(0);
}

/* Todos los slides ocupan exactamente el 100% del carousel */
.hero-slide-item {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  padding: 8.5rem 0 5rem;
}

/* Video clip de fondo para slides del hero (reproducción máx. 10s) */
.hero-slide-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 42, 56, 0.88) 0%, rgba(10, 28, 38, 0.75) 60%, rgba(15, 42, 56, 0.82) 100%);
  z-index: 1;
}

.hero-slide-item .container {
  position: relative;
  z-index: 2;
}

/* Slide de solo imagen / video: misma altura, sin padding ni overlay */
.hero-slide-solo {
  padding: 0 !important;
  align-items: stretch;
}

.hero-slide-solo .container {
  display: none;
}

/* Responsive: todos los slides bajan igual en móvil y evitan solapamiento con el nav */
@media (max-width: 991.98px) {

  .hero-carousel,
  .hero-carousel .carousel-inner {
    height: auto !important;
    min-height: 560px;
  }

  .hero-carousel .carousel-item {
    min-height: 560px;
  }

  .hero-slide-item {
    min-height: 560px;
    height: auto;
    padding: 7rem 0 4.5rem !important;
    /* Espacio superior para que el nav fijo JAMÁS tape el texto */
    background-position: center center !important;
  }

  .hero-slide-item h1 {
    font-size: clamp(1.4rem, 4.8vw, 2.2rem) !important;
    line-height: 1.25 !important;
    margin-top: .5rem !important;
    margin-bottom: .75rem !important;
  }

  .hero-slide-item .lead {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1rem !important;
  }

  .hero-badge {
    font-size: .75rem !important;
    padding: .3rem .8rem !important;
    margin-bottom: .75rem !important;
  }
}

@media (max-width: 575.98px) {

  .hero-carousel,
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide-item {
    min-height: 540px;
  }

  .hero-slide-item {
    padding: 6.5rem 0 4.5rem !important;
  }

  .hero-slide-item h1 {
    font-size: 1.38rem !important;
  }

  .hero-slide-item .btn-lg {
    font-size: .92rem !important;
    padding: .6rem 1.15rem !important;
  }

  .hero-carousel .carousel-indicators {
    bottom: .4rem;
  }
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(44, 182, 201, .2);
  border: 1px solid rgba(44, 182, 201, .5);
  color: var(--brand);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
}

.hero-slide-item h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-slide-item .lead {
  color: rgba(255, 255, 255, .9);
  font-size: 1.25rem;
  max-width: 650px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-countdown {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-countdown .item {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: .9rem 1.2rem;
  text-align: center;
  min-width: 90px;
}

.hero-countdown .item .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
}

.hero-countdown .item .lbl {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .75);
}

/* ---------- Countdown Banner (Al final de la página) ---------- */
.countdown-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(44, 182, 201, 0.2);
}

.countdown-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(44, 182, 201, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  text-align: center;
  min-width: 95px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform .25s ease, border-color .25s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.countdown-card .num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.countdown-card .lbl {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}


.hero-carousel .carousel-indicators {
  margin-bottom: 2rem;
  z-index: 5;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  margin: 0 6px;
  transition: all .3s ease;
}

.hero-carousel .carousel-indicators .active {
  background-color: var(--brand);
  width: 32px;
  border-radius: 10px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 42, 56, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  margin: 0 1.5rem;
  backdrop-filter: blur(6px);
  transition: all .25s ease;
  z-index: 5;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: var(--brand);
  color: #08262d;
  border-color: var(--brand);
}


/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

.bg-light-section {
  background: var(--light-bg);
}

.eyebrow {
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: .75rem;
}

.section-lead {
  color: #5b6b73;
  max-width: 700px;
}

/* ---------- Cards ---------- */
.card-citiced {
  border: 1px solid #e7eff1;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
  background: #fff;
}

.card-citiced:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 42, 56, .1);
}

.card-citiced .card-img {
  height: 190px;
  object-fit: cover;
  width: 100%;
  background: #eef6f7;
}

.card-citiced .card-body {
  padding: 1.4rem;
}

.badge-eje {
  background: rgba(44, 182, 201, .12);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: .72rem;
  padding: .35rem .7rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Badge Sede Actual */
.badge-sede {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: .73rem;
  padding: .3rem .7rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(44, 182, 201, 0.3);
  letter-spacing: .02em;
}

.badge-sede i {
  font-size: .75rem;
}

.inst-sede-item {
  background: rgba(44, 182, 201, 0.06);
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  border-radius: 8px;
  border-color: rgba(44, 182, 201, 0.2) !important;
}

.axis-card {
  border-radius: 16px;
  padding: 1.8rem;
  height: 100%;
  background: #fff;
  border: 1px solid #e7eff1;
}

.axis-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 182, 201, .12);
  color: var(--brand-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Clickable axis card */
.axis-card-clickable {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}

.axis-card-clickable:hover,
.axis-card-clickable:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 182, 201, .18);
  border-color: var(--brand);
  outline: none;
}

.axis-card-clickable:hover .icon,
.axis-card-clickable:focus .icon {
  background: rgba(44, 182, 201, .22);
}

.axis-ver-mas {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-dark);
  opacity: .7;
  letter-spacing: .02em;
  transition: opacity .2s;
}

.axis-card-clickable:hover .axis-ver-mas {
  opacity: 1;
}

/* ---------- Speaker ---------- */
.speaker-card {
  text-align: center;
}

.speaker-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #eef6f7;
  margin: 0 auto 1rem;
}

.speaker-card .role {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: .88rem;
}

/* ---------- Institutions strip / Logo Carousel ---------- */
.institutions-strip {
  background: #ffffff;
  padding: 3rem 0;
  border-top: 1px solid #eaf2f4;
  border-bottom: 1px solid #eaf2f4;
  box-shadow: 0 4px 20px rgba(15, 42, 56, 0.03);
  position: relative;
  overflow: hidden;
}

.institutions-strip::before,
.institutions-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.institutions-strip::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.institutions-strip::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.institutions-strip .inst-title {
  color: var(--dark);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .85rem;
  text-transform: uppercase;
}

.logo-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
  padding: 12px 0 16px;
  margin: -6px 0 -10px;
  position: relative;
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  padding: 8px 0;
  animation: logoMarquee 26s linear infinite;
}

.logo-marquee-wrapper:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logoMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.inst-logo-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2eef0;
  border-radius: 12px;
  padding: .6rem 1.2rem;
  height: 64px;
  min-width: 150px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 4px 12px rgba(15, 42, 56, 0.04);
  flex-shrink: 0;
  z-index: 1;
}

.inst-logo-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(44, 182, 201, 0.22);
  z-index: 10;
}

.inst-logo-card img {
  max-height: 44px;
  max-width: 150px;
  object-fit: contain;
  transition: transform .25s ease;
}

.inst-logo-card:hover img {
  transform: scale(1.05);
}

.inst-logo-fallback {
  font-weight: 700;
  font-size: .9rem;
  color: var(--dark);
  background: rgba(44, 182, 201, 0.08);
  padding: .4rem .9rem;
  border-radius: 8px;
  border: 1px solid rgba(44, 182, 201, 0.25);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}



/* ---------- Programa / timeline ---------- */
.program-day-tabs .nav-link {
  border-radius: 50px;
  font-weight: 600;
  color: var(--dark);
  border: 1.5px solid #e2eef0;
  margin-right: .5rem;
}

.program-day-tabs .nav-link.active {
  background: var(--brand);
  color: #08262d;
  border-color: var(--brand);
}

/* ============================================================
   TARJETAS DE SESIÓN DEL PROGRAMA ACADÉMICO (programa.php)
   ============================================================ */

.program-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.session-card {
  background: var(--color-page-bg, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border-left: 6px solid var(--dark);
  /* Franja vertical distintiva */
}

.session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

/* Diferenciación visual por tipo de sesión */
.session-card.session-tipo-conferencia_magistral {
  border-left-color: var(--dark);
}

.session-card.session-tipo-taller {
  border-left-color: var(--brand);
}

.session-card.session-tipo-panel {
  border-left-color: var(--brand-dark);
}

.session-card.session-tipo-ponencia {
  border-left-color: var(--brand);
}

.session-card.session-tipo-pausa,
.session-card.session-card-pausa {
  border-left-color: #f59e0b;
  background: #fdfdfb;
}

.session-card.session-tipo-acto_protocolar {
  border-left-color: var(--dark-2);
}

/* Estructura interna de 2 columnas */
.session-card-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 1.35rem 1.6rem;
  gap: 1.6rem;
}

/* Columna de Horario (Izquierda) */
.session-time-col {
  width: 140px;
  min-width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0.15rem;
}

.session-time-start {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.session-time-end {
  font-size: 0.84rem;
  color: var(--color-body-text, #64748b);
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Columna de Contenido (Derecha) */
.session-content-col {
  flex-grow: 1;
  min-width: 0;
}

/* Fila de Pills / Badges */
.session-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

/* Pill del Eje / Categoría principal */
.session-eje-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  background: var(--dark);
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* Pills secundarias (Taller, Presencial, Sala) */
.session-meta-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: var(--light-bg, #f1f5f9);
  color: var(--color-body-text, #475569);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.session-meta-pill.pill-sala {
  background: var(--light-bg, #f8fafc);
  color: var(--color-body-text, #334155);
  border-color: #e2e8f0;
}

/* Título de la Sesión */
.session-card-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading-text, #0f172a);
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

/* Ponente */
.session-speaker-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading-text, #1e293b);
  display: block;
  margin-bottom: 0.2rem;
}

/* Institución */
.session-institution {
  font-size: 0.88rem;
  color: var(--color-body-text, #475569);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.session-institution .inst-label {
  font-weight: 600;
  color: var(--color-body-text, #64748b);
  margin-right: 0.25rem;
}

/* Eje / Track inferior separado por línea punteada */
.session-footer-track {
  border-top: 1px dotted #cbd5e1;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--color-body-text, #64748b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Acciones de inscripción en la tarjeta */
.session-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Responsive móvil */
@media (max-width: 767.98px) {
  .session-card-inner {
    flex-direction: column;
    padding: 1.15rem 1.2rem;
    gap: 0.85rem;
  }

  .session-time-col {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
  }

  .session-card-title {
    font-size: 1.08rem;
  }
}

.timeline-item {
  border-left: 3px solid #e2eef0;
  padding: 0 0 1.8rem 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--brand);
  border-radius: 50%;
  border: 3px solid #fff;
}

.timeline-item .time {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .85rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--color-footer-bg, var(--dark));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.site-footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.site-footer>.container {
  position: relative;
  z-index: 2;
}

.footer-links li {
  margin-bottom: .5rem;
}

.footer-links a,
.footer-links li {
  color: rgba(255, 255, 255, .7);
}

.footer-links a:hover {
  color: var(--brand);
}

.social-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  color: #fff;
  font-size: .95rem;
}

.social-btn:hover {
  background: var(--brand);
  color: #08262d;
}

/* ---------- Page header (páginas internas) ---------- */
.page-header {
  background: var(--color-header-bg, var(--dark));
  color: #fff;
  padding: 9rem 0 3.5rem;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-header p,
.page-header .lead {
  color: rgba(255, 255, 255, 0.88);
}

.page-header .text-muted,
.page-header .text-white-75 {
  color: rgba(255, 255, 255, 0.85) !important;
}

.breadcrumb-citiced a {
  color: rgba(255, 255, 255, .7);
}

.breadcrumb-citiced .active {
  color: var(--brand);
}

/* ---------- Misc ---------- */
.form-control,
.form-select {
  border-radius: 10px;
  padding: .65rem .9rem;
  border: 1.5px solid #e2eef0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(44, 182, 201, .15);
}

.rounded-16 {
  border-radius: 16px;
}

.shadow-soft {
  box-shadow: 0 10px 35px rgba(15, 42, 56, .08);
}

.gallery-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.video-thumb {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0F2A38;
  cursor: pointer;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.video-thumb:hover img {
  transform: scale(1.06);
}

.video-thumb .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: #fff;
  background: rgba(15, 42, 56, .25);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.video-thumb:hover .play-btn {
  background: rgba(15, 42, 56, .45);
  color: #ff0000;
  transform: scale(1.08);
}

/* ---------- Contenido enriquecido (noticias, páginas) ---------- */
.content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #33434a;
}

.content-body p {
  margin-bottom: 1.3rem;
}

.content-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
}

.content-body h2,
.content-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-body a {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Soporte de alineaciones y formato Quill WYSIWYG */
.ql-align-center {
  text-align: center;
}

.ql-align-right {
  text-align: right;
}

.ql-align-justify {
  text-align: justify;
  text-justify: inter-word;
}

.axis-description p:last-child {
  margin-bottom: 0;
}

/* ---------- Hoteles / Hospedaje Dinámico ---------- */
.hotel-img-wrapper:hover img {
  transform: scale(1.06) !important;
}

.x-small {
  font-size: 0.78rem;
}

/* ---------- Botón de Sede Oficial en Footer ---------- */
.btn-venue-location {
  background: var(--brand);
  color: var(--color-btn-text, #08262d) !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn-venue-location:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 182, 201, 0.4);
  color: #ffffff !important;
}

.venue-icon-box {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  color: var(--color-btn-text, #08262d);
}

.btn-venue-location:hover .venue-icon-box {
  color: #ffffff;
}

.btn-venue-location {
  overflow: hidden;
  max-width: 100%;
}

.btn-venue-location .min-w-0 {
  min-width: 0;
  overflow: hidden;
  max-width: calc(100% - 80px);
}

.btn-venue-location .text-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block !important;
  max-width: 100%;
}

/* ---------- Tarjetas de Comité Organizador ---------- */
.comite-card {
  min-height: 120px;
  height: 100%;
  background: #ffffff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.comite-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 42, 56, .07);
  border-color: rgba(44, 182, 201, .3) !important;
}

/* ---------- Contraste impecable en Modales con fondo oscuro ---------- */
.modal-header.bg-dark,
.modal-header.text-white {
  background-color: var(--dark) !important;
}

.modal-header.bg-dark h1,
.modal-header.bg-dark h2,
.modal-header.bg-dark h3,
.modal-header.bg-dark h4,
.modal-header.bg-dark h5,
.modal-header.bg-dark h6,
.modal-header.bg-dark .modal-title,
.modal-header.text-white h1,
.modal-header.text-white h2,
.modal-header.text-white h3,
.modal-header.text-white h4,
.modal-header.text-white h5,
.modal-header.text-white h6,
.modal-header.text-white .modal-title,
.modal-header .modal-title.text-white {
  color: #ffffff !important;
}

.modal-header .text-brand {
  color: var(--brand) !important;
}

/* ---------- Botón primario en estado deshabilitado ---------- */
.btn-brand:disabled,
.btn-brand.disabled {
  background-color: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #6c757d !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

/* ---------- stat-number: cifras de estadísticas sobre fondo claro ---------- */
/* Usa --brand-dark (más oscuro) para garantizar contraste cuando el brand es claro */
.stat-number {
  color: var(--brand-dark) !important;
}

/* ---------- Program tabs: contraste en tab activo ---------- */
.program-day-tabs .nav-link.active {
  background: var(--brand);
  color: var(--color-btn-text, #08262d) !important;
  border-color: var(--brand);
}

/* ============================================================
   CITICED — Campaña Promocional de Inscripción (Home)
   Fondo idéntico al header / navbar del sistema (var(--dark))
   ============================================================ */
.promo-campaign-section {
  position: relative;
  background: var(--dark);
  color: #ffffff;
  padding: 4.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Badge de Inscripciones Abiertas */
.promo-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.promo-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--brand);
  border-radius: 50%;
  position: relative;
}

.promo-pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: promoPulse 2s ease-out infinite;
}

@keyframes promoPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Título principal llamativo */
.promo-main-title {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff !important;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.promo-main-title .promo-gradient-text {
  color: var(--brand);
}

/* Texto secundario */
.promo-sub-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Lista de ventajas / características con CSS puro */
.promo-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.promo-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.promo-feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--color-btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Tarjeta de Campaña de Precio */
.promo-pricing-card {
  position: relative;
  background: var(--dark-2, #133444);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 2.35rem 2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.promo-pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

/* Frase muy visible: UNA SOLA INSCRIPCIÓN, DOS DÍAS DE CONGRESO */
.promo-card-tagline {
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.4);
  color: #ffc83b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Contenedor del Precio Monumental */
.promo-price-wrapper {
  margin-bottom: 1.5rem;
}

.promo-price-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.promo-price-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  line-height: 1;
}

.promo-price-currency {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.promo-price-amount {
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.promo-price-subtext {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.promo-usd-indicator {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.5rem;
}

/* Botón INSCRÍBETE AHORA: Utiliza --brand, --brand-dark y --color-btn-text */
.btn-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  background: var(--brand);
  color: var(--color-btn-text) !important;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.05rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--brand);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-promo-cta:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn-promo-cta:active {
  transform: translateY(1px);
}

.btn-promo-cta i {
  transition: transform 0.25s ease;
  font-size: 1.3rem;
}

.btn-promo-cta:hover i {
  transform: translateX(5px);
}

.promo-card-footer {
  margin-top: 1.15rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ============================================================
   SELECTOR DE MODALIDAD — Sección Promo (index.php)
   ============================================================ */

.promo-modality-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50px;
  padding: 0.3rem;
  width: fit-content;
}

.promo-modality-tab {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 1.25rem;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

.promo-modality-tab.active {
  background: var(--brand, #f5a623);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promo-modality-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* Transición suave al cambiar bloque de precio */
#promo-price-presencial,
#promo-price-virtual {
  animation: promoPriceFadeIn 0.3s ease;
}

@keyframes promoPriceFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón de instalación PWA */
.btn-instalar-app {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.btn-instalar-app:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #08262d;
  box-shadow: 0 4px 12px rgba(44, 182, 201, 0.35);
  transform: translateY(-1px);
}

/* ============================================================
   SECCIÓN DE ESTADÍSTICAS ACADÉMICAS OFICIALES (index.php)
   ============================================================ */
.section-academic-stats {
  background: var(--color-page-bg, #ffffff);
  padding: 4.5rem 0 3.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.academic-stats-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.academic-stat-item {
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.academic-stat-item:hover {
  transform: translateY(-3px);
}

.academic-stat-number {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  display: inline-block;
  will-change: transform;
}

@keyframes statNumberPop {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.academic-stat-number.animated {
  animation: statNumberPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.academic-stat-label {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-body-text, #334155);
  line-height: 1.35;
  text-transform: capitalize;
}

.academic-stats-footer {
  margin-top: 2.75rem;
  font-size: 0.9rem;
  color: var(--color-body-text, #8896a6);
  opacity: 0.6;
  letter-spacing: 0.01em;
}

@media (max-width: 575.98px) {
  .section-academic-stats {
    padding: 3rem 0 2.5rem;
  }

  .academic-stat-number {
    font-size: 2.2rem;
  }

  .academic-stat-label {
    font-size: 0.92rem;
  }

  .academic-stats-footer {
    margin-top: 2rem;
    font-size: 0.82rem;
  }
}