body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f1faee;
}

.banner {
  position: relative;
  width: 100%;
}

.banner img {
  width: 100%;
}

.contenedor {
  display: flex;
  align-items: center;
  padding: 5%;
  width: 90%;
  align-items: stretch;
}

.calendario {
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 2%;
  margin: 1px;
  border-radius: 8px;
  width: 96%;
  max-width: 80vw;
  display: flex;
}

.calendariocontainer {
  width: 50% !important;
}

.imagen-con-texto {
  width: 50% !important;
}

.imagen-con-texto img{
  width: 100%;
}

.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.encabezadoright h4 {
  font-weight: bold;
  font-size: 70px;
  color: #2d5a2d;
  margin: 0;
  font-weight: bold;
}

.encabezadoright p {
  font-size: 30px;
  color: #444;
  margin-left: 5px;
  margin: 0;
  font-weight: bold;
}

.encabezadoright {
  display: flex;
  flex-direction: column;
}

.mes-numero {
  font-size: 80px;
  background-color: #2d5a2d;
  color: white;
  padding: 10px 20px 10px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 85%);
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

th {
  font-size: 24px;
  color: #224a2e;

  width: 13.7%;
  height: 70px;
}

td {
  font-size: 20px;
  color: #202220;
  font-weight: bold;

  width: 13.7%;
  height: 70px;
}

button.evento {
  background-color: #f1faee;
  border-radius: 10px;
  color: #2d5a2d;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;

  width: 100%;
  height: 100%;
}

button.evento:hover {
  background-color: #1f3e1f;
  color: white;
  border-radius: 10px;
}

.hoy {
  background-color: #1f3e1f;
  color: white;
  border-radius: 10px;
}

/* Modal Styles */
.modal {
  display: none; /* cambiar a flex para mostrar */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  display: flex;
  gap: 5%;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-contenido div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.caja-imagen {
  width: 460px;
  height: max-content;
}

.caja-texto {
  width: 440px;
  flex: 1;
}

.caja-imagen img {
  width: 100%;
}

.caja-texto h3 {
  font-size: 24px;
  margin: 0;
  text-align: center;
}

.caja-texto p {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.cerrar {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  border: none;
}

td.anterior,
td.siguiente {
  color: #aaa;
  background-color: #f5f5f5;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-contenido {
    flex-direction: column;
    text-align: center;
  }

  .tarjeta-imagen {
    width: 100%;
  }

  .contenedor{
    flex-direction: column-reverse;
    padding: 4%;
    width: 92% !important;
  }

  .calendariocontainer{
    width: 100% !important;
  }

  .calendario{
    max-width: 100%;
  }

  .imagen-con-texto{
    width: 100% !important;
  }

  .mes-numero{
    font-size: 50px;
  }

  .encabezado{
    margin-bottom: 20px;
  }

  .encabezadoright h4{
    font-size: 50px;
  }

  .encabezadoright p{
    font-size: 30px;
  }

  th{
    font-size: 18px;
  }
  td{
    font-size: 18px;
    height: 45px;
  }
}
