﻿/* === Estilo general de cada tarjeta (más pequeña) === */
.card-evento {
  width: 100%;
  height: max-content;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: sans-serif;
}

/* === Etiqueta superior izquierda de dependencia === */
.card-evento .badge-dependencia {
  position: absolute;
  top: 8px;
  left: 8px;
  background: white;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-radius: 4px;
}

/* === Imagen del evento === */
.card-evento img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

/* === Contenedor del contenido interno === */
.card-evento .contenido {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card-evento .contenido span.titulo {
  font-size: 15px;
  font-weight: bold;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-evento .contenido span.fecha {
  font-size: 13px;
  color: #4b5563;
}

/* Contenedor fluido */
#calendarTs {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

/* FullCalendar: fuerza a adaptarse al contenedor */
.fc {
  width: 100% !important;
  max-width: 100%;
}

/* Evita desbordes en móviles */
.fc .fc-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Reduce tamaño de texto en móviles */
@media (max-width: 768px) {
  .fc-toolbar-title {
    font-size: 1rem !important;
  }

  .fc-button {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  .fc .fc-col-header-cell-cushion,
  .fc .fc-daygrid-day-number {
    font-size: 0.7rem !important;
  }

  .fc-daygrid-day-frame {
    padding: 2px !important;
  }

  .fc-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .fc-header-toolbar {
    flex-direction: column;
    align-items: center;
  }
}

.ms-webpart-zone {
  display: flex !important;
}

.ms-webpart-cell-vertical {
  display: flex !important;
}
.ms-webpart-cell-vertical {
  display: flex !important;
}

#modal-evento-mobile {
  backdrop-filter: blur(2px);
}
