/* ===================================================
   ESTILOS PARA LÍNEA DE TIEMPO - PASAPORTE CULTURAL
   =================================================== */

/* Reset y estilos base */
*, *::after, *::before {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: "Source Sans Pro", sans-serif;
  color: #383838;
  background-color: #FFFFFF;
  border: 0px;
  vertical-align: top;
  margin: 0;
  padding: 0;
}

/* Header Section */
.header-section {
  background: linear-gradient(135deg, #646601 0%, #787902 100%);
  color: white;
  padding: 2rem 0 !important;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-section h1 {
  color: white;
  font-weight: bold;
  margin: 0;
  font-size: 2.5rem;
}

.header-section p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0.5rem 0 0 0;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(100, 102, 1, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Estilos para cards */
.card {
  border-style: none;
}

/* Estilos de fechas */
.mifecha {
  font-size: 22px;
  font-weight: bold;
  color: #787902;
}

.minegrita {
  font-size: 18px;
  font-weight: 600;
}

/* Enlaces */
a {
  color: #7b9d6f;
  text-decoration: none;
}

a:hover {
  color: #646601;
}

/* Botones */
.btn {
  margin-left: 10px;
  margin-right: 10px;
  height: 36px;
  min-width: 36px;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.btn-info {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 13px;
  color: #FFFFFF;
  letter-spacing: 1px;
  line-height: 15px;
  border: 2px solid #787902;
  border-radius: 40px;
  background: #787902;
  transition: all 0.3s ease;
}

.btn-info:hover {
  color: #787902;
  background: #FFF;
  border: 2px solid #787902;
}

/* ===========================
   TIMELINE HORIZONTAL
   =========================== */

.cd-horizontal-timeline {
  opacity: 0;
  margin: 2em auto;
  transition: opacity 0.2s;
  position: relative;
  top: -20px;
}

.cd-horizontal-timeline::before {
  content: 'mobile';
  display: none;
}

.cd-horizontal-timeline.loaded {
  opacity: 1;
}

.cd-horizontal-timeline .timeline {
  position: relative;
  height: 100px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.cd-horizontal-timeline .events-wrapper {
  position: relative;
  height: 100%;
  margin: 0 40px;
  overflow: hidden;
}

.cd-horizontal-timeline .events-wrapper::after,
.cd-horizontal-timeline .events-wrapper::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  height: 100%;
  width: 20px;
}

.cd-horizontal-timeline .events {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 49px;
  height: 2px;
  background: #dfdfdf;
  transition: transform 0.4s;
}

.cd-horizontal-timeline .filling-line {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #787902;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s;
}

.cd-horizontal-timeline .events a {
  position: absolute;
  bottom: 0;
  z-index: 2;
  text-align: center;
  font-size: 1.3rem;
  padding-bottom: 15px;
  color: #383838;
  transform: translateZ(0);
  cursor: pointer;
}

.cd-horizontal-timeline .events a::after {
  content: '';
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: -5px;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  border: 2px solid #dfdfdf;
  background-color: #f8f8f8;
  transition: background-color 0.3s, border-color 0.3s;
}

.no-touch .cd-horizontal-timeline .events a:hover::after {
  background-color: #787902;
  border-color: #787902;
}

.cd-horizontal-timeline .events a.selected {
  pointer-events: none;
}

.cd-horizontal-timeline .events a.selected::after {
  background-color: #787902;
  border-color: #787902;
}

.cd-horizontal-timeline .events a.older-event::after {
  border-color: #787902;
}

@media only screen and (min-width: 1100px) {
  .cd-horizontal-timeline {
    margin: 6em auto;
  }
  .cd-horizontal-timeline::before {
    content: 'desktop';
  }
}

/* Navegación del timeline */
.cd-timeline-navigation a {
  position: absolute;
  z-index: 1;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  height: 34px;
  width: 34px;
  border-radius: 50%;
  border: 2px solid #dfdfdf;
  overflow: hidden;
  color: transparent;
  text-indent: 100%;
  white-space: nowrap;
  transition: border-color 0.3s;
}

.cd-timeline-navigation a::after {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  transform: translateX(-50%) translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23dfdfdf" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/></svg>') no-repeat 0 0;
}

.cd-timeline-navigation a.prev {
  left: 0;
  transform: translateY(-50%) rotate(180deg);
}

.cd-timeline-navigation a.next {
  right: 0;
}

.no-touch .cd-timeline-navigation a:hover {
  border-color: #787902;
}

.cd-timeline-navigation a.inactive {
  cursor: not-allowed;
  opacity: 0.4;
}

.no-touch .cd-timeline-navigation a.inactive:hover {
  border-color: #dfdfdf;
}

/* Contenido de eventos */
.cd-horizontal-timeline .events-content {
  position: relative;
  width: 100%;
  margin: 2em 0;
  overflow: hidden;
  transition: height 0.4s;
}

.cd-horizontal-timeline .events-content li {
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 0;
  top: 0;
  transform: translateX(-100%);
  padding: 0 1%;
  opacity: 0;
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
}

.cd-horizontal-timeline .events-content li.selected {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
}

.cd-horizontal-timeline .events-content li.enter-right,
.cd-horizontal-timeline .events-content li.leave-right {
  animation-name: cd-enter-right;
}

.cd-horizontal-timeline .events-content li.enter-left,
.cd-horizontal-timeline .events-content li.leave-left {
  animation-name: cd-enter-left;
}

.cd-horizontal-timeline .events-content li.leave-right,
.cd-horizontal-timeline .events-content li.leave-left {
  animation-direction: reverse;
}

.cd-horizontal-timeline .events-content li > * {
  max-width: 1200px;
  margin: 0 auto;
}

/* Animaciones */
@keyframes cd-enter-right {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}

@keyframes cd-enter-left {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}

/* Estilos de lista */
li.selected::marker,
li::marker {
  color: #FFFFFF;
  display: none;
  height: 1px;
}

/* Tabla de eventos */
.table {
  width: 100%;
  margin-bottom: 0;
}

.table thead th {
  background-color: #787902;
  color: white;
  border: none;
  padding: 1rem;
}

.table tbody tr {
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody th {
  padding: 1rem;
  vertical-align: middle;
}

/* Estilos para el modal */
.modal-header.uca-primary {
  background: linear-gradient(135deg, #646601 0%, #787902 100%);
  border-bottom: none;
}

.modal-body {
  padding: 2rem;
}

.evento-detalle-row {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.evento-detalle-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.evento-detalle-label {
  font-weight: 600;
  color: #646601;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.evento-detalle-value {
  color: #495057;
  line-height: 1.6;
}

.descripcion-larga {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid #787902;
  margin-top: 0.5rem;
}

.descripcion-larga h1,
.descripcion-larga h2,
.descripcion-larga h3,
.descripcion-larga h4,
.descripcion-larga h5,
.descripcion-larga h6 {
  color: #646601;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.descripcion-larga p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.descripcion-larga ul,
.descripcion-larga ol {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

/* Badge de tipo de evento */
.badge-tipo-evento {
  background-color: #787902;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

/* Estilos para lista de profesores en modal */
.evento-detalle-value .mb-2 {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border-left: 3px solid #787902;
}

.evento-detalle-value .mb-2:last-child {
  margin-bottom: 0 !important;
}

/* Estilos para lista de asignaturas en modal */
.evento-detalle-value .mb-1 {
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 0.375rem;
  border-left: 3px solid #646601;
}

.evento-detalle-value .mb-1:last-child {
  margin-bottom: 0 !important;
}

/* Icono de email */
.evento-detalle-value .bi-envelope {
  margin-right: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-section h1 {
    font-size: 1.8rem;
  }
  
  .cd-horizontal-timeline .timeline {
    width: 95%;
  }
  
  .cd-horizontal-timeline .events-wrapper {
    margin: 0 30px;
  }
  
  .cd-timeline-navigation a {
    height: 28px;
    width: 28px;
  }
  
  .table {
    font-size: 0.9rem;
  }
  
  .btn {
    height: 32px;
    min-width: 32px;
    font-size: 12px;
  }
}

/* Estilos para mensaje de no eventos */
.no-eventos {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.no-eventos i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.no-eventos h3 {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.no-eventos p {
  color: #adb5bd;
}


