/* calendario.css */
/* Estilos para el calendario de eventos */

/* ----------------------------
   Estilos para el archivo (archive)
   ---------------------------- */
.calendar-section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #3498db;
  margin: 15px auto 0;
}

/* ----------------------------
   Estilos para la página individual (single)
   ---------------------------- */
.evento-individual {
  padding: 40px 0;
}

.evento-contenedor {
  max-width: 900px;
  margin: 0 auto;
}

.evento-detalle {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.entry-header {
  margin-bottom: 30px;
  text-align: center;
}

.entry-title {
  color: #2c3e50;
  margin: 0 0 15px;
  font-size: 2rem;
}

.evento-fecha {
  display: inline-flex;
  align-items: center;
  background: #f8f9fa;
  padding: 8px 15px;
  border-radius: 30px;
  color: #3498db;
  font-weight: 600;
}

.evento-fecha i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.evento-imagen {
  margin: 0 -30px 30px;
}

.evento-imagen img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.entry-content {
  line-height: 1.7;
  color: #34495e;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.evento-ubicacion {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #ecf0f1;
}

.evento-ubicacion h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.5rem;
}

.lugar,
.direccion {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.lugar::before,
.direccion::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.lugar::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="%233498db" d="M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"/></svg>');
}

.direccion::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="%233498db" d="M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"/></svg>');
}

.mapa-contenedor {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  margin-top: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navegacion-eventos {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #ecf0f1;
}

.nav-anterior a,
.nav-siguiente a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-anterior a:hover,
.nav-siguiente a:hover {
  color: #2980b9;
}

/* ----------------------------
   Responsive
   ---------------------------- */
@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-card {
    flex-direction: column;
  }

  .calendar-date {
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
  }

  .month {
    margin-bottom: 0;
    margin-right: 10px;
  }

  .day {
    font-size: 1.4rem;
  }

  .evento-detalle {
    padding: 20px;
  }

  .evento-imagen {
    margin: 0 -20px 20px;
  }
}

@media (max-width: 480px) {
  .navegacion-eventos {
    flex-direction: column;
    gap: 15px;
  }
}
