/* Contenedor principal */
.calendar-filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

/* Calendario */
.calendar-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.calendar-nav {
  background: #3498db;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav:hover {
  background: #2980b9;
  transform: scale(1.1);
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.day-name {
  text-align: center;
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.9rem;
  padding: 10px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.calendar-day.current-month {
  background: #ecf0f1;
  color: #2c3e50;
}

.calendar-day.current-month:hover {
  background: #3498db;
  color: white;
  transform: scale(1.1);
}

.calendar-day.prev-month,
.calendar-day.next-month {
  color: #bdc3c7;
  cursor: default;
}

.calendar-day.today {
  background: #e74c3c;
  color: white;
  font-weight: bold;
}

.calendar-day.today:hover {
  background: #c0392b;
}

.calendar-day.selected {
  background: #2ecc71 !important;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}

/* Información de fecha seleccionada */
.selected-date-info {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.selected-date-info p {
  margin: 0;
  font-size: 1.1rem;
  color: #34495e;
}

/* Resultados de posts */
.posts-results {
  min-height: 200px;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.calendar-filter-container .post-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-filter-container .post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.calendar-filter-container .post-thumbnail {
  overflow: hidden;
  height: 200px;
}

.calendar-filter-container .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.calendar-filter-container .post-item:hover .post-thumbnail img {
  transform: scale(1.1);
}

.calendar-filter-container .post-content {
  padding: 20px;
}

.calendar-filter-container .post-title {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.calendar-filter-container .post-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.calendar-filter-container .post-title a:hover {
  color: #3498db;
}

.calendar-filter-container .post-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 15px;
}

.calendar-filter-container .post-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.calendar-filter-container .read-more {
  display: inline-block;
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.calendar-filter-container .read-more:hover {
  color: #2980b9;
  transform: translateX(5px);
}

.no-posts,
.error-message {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
  font-size: 1.1rem;
}

.error-message {
  color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-days {
    gap: 5px;
  }

  .calendar-day {
    font-size: 0.9rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .calendar-title {
    font-size: 1.2rem;
  }
}

/* Estilos para la caja de categoría roja (estilo "pill" centrado) */
.categoria-roja-wrapper {
  text-align: center; /* centra la caja dentro del contenedor */
  margin: 10px 0;
}

.categoria-box.categoria-roja {
  background-color: #d60b0c;
  width: max-content !important;
  color: #ffffff;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.categoria-box.categoria-roja a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

/* Estilo para el link de categoría en posts */
.post-category-link {
  margin: 0 0 0 0;
  padding: 0;
}

.post-category-link a {
  color: #888888;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: normal;
  letter-spacing: 0.07rem;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: "Titillium Web", sans-serif;
  text-transform: uppercase;
}

.post-category-link a:hover {
  color: #d60b0c;
}

/* Estilos para los iconos de video y galería */
.mvp-vid-box-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #d60b0c;
  z-index: 10;
}

.mvp-vid-box-wrap i {
  font-size: 11px;
  color: white;
}

/* Responsive - Iconos adaptados según tamaño de pantalla */
@media (max-width: 768px) {
  .mvp-vid-box-wrap {
    width: 20px;
    height: 20px;
  }

  .mvp-vid-box-wrap i {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .mvp-vid-box-wrap {
    width: 18px;
    height: 18px;
  }

  .mvp-vid-box-wrap i {
    font-size: 8px;
  }
}
