/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: #8b0064;
  padding: 20px 0;
  text-align: center;
}

.logo {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* Estilos generales de Seccion */
.section-title {
  color: #8b0064;
  font-size: 28px;
  margin-bottom: 20px;
}
.section {
  margin: 30px 0;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.card {
  flex: 1;
  min-width: 250px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.image {
  width: 100%;
  height: 150px;
  background-color: #ddd;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.title {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}
.author {
  font-size: 12px;
  margin: 2px 0;
}
.description {
  font-size: 14px;
  color: #333;
  flex-grow: 1;
  margin-bottom: 15px;
}
.tag {
  font-size: 12px;
  display: inline-block;
  background-color: #ffc107;
  color: #333;
  padding: 10px 25px;
  margin-bottom: 5px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}
/* Sección de noticias */
.news-date {
  font-size: 12px;
}
.news-meta {
  margin-bottom: 15px;
}
.news-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}
.news-navigation .previous-news,
.news-navigation .next-news {
  font-size: 16px;
  font-weight: bold;
}
.news-navigation a {
  text-decoration: none;
  color: #8b0064;
  transition: color 0.3s;
}
.news-navigation a:hover {
  color: #c52233;
}

.card .content {
  min-height: 200px;
}

/* Sección de calendario */
.calendar-section {
  position: relative;
}
.calendar-card {
  display: flex;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: calc(33.33% - 20px);
  align-items: center;
}
.calendar-date {
  margin: 0;
  border: 0;
  width: 80px;
  height: 100%; /* Changed to full height */
  text-align: center;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}
.calendar-date .month {
  background-color: #c52233;
  width: 100%;
  color: #ffffff;
  padding: 5px 10px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}
.calendar-date .day {
  background-color: #e7e7e8;
  width: 100%;
  font-size: 32px;
  font-weight: bold;
  color: #8b0064;
  padding: 5px 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-content {
  padding: 15px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  max-height: 5, 5em;
}
.calendar-footer {
  text-align: right;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 20px;
}
/* Imagenes de Audiovisual */
.audiovisual-image {
  width: 100%;
  height: 200px;
  background-color: #ddd;
}
.audiovisual-image img {
  width: 100%;
  height: 200px;
  background-color: #ddd;
}
.audiovisual-content {
  min-height: 100px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
/* botones */
.ver-mas-container {
  text-align: right;
  margin: 20px 0;
}
.ver-mas-btn {
  position: static;
  display: inline-block;
  align-self: flex-end;
  margin-top: auto;
  background-color: #ffc107;
  color: #333;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  text-align: center;
}
.ver-mas-btn:hover {
  background-color: #e0a800;
}

/* Footer */
.footer {
  background-color: #4a235a;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.copyright {
  margin-bottom: 10px;
}

.footer-logo {
  width: 50px;
  height: auto;
  margin: 10px auto;
}

/* Menú superior */
.top-menu {
  background-color: #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 10px;
  border-radius: 20px;
}

.menu-icons img {
  height: 35px;
  max-width: 100%;
}

.menu-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.menu-button {
  background-color: #222;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s;
}

.menu-button:hover {
  background-color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    flex-direction: column;
  }
  .logo{
    max-width: 250px;
  }

  .card,
  .calendar-card {
    width: 100%;
  }
}
