body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding: 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.calendars-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.calendars-container > div {
  flex: 1 1 45%;
  min-width: 300px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

ul li {
  margin-bottom: 5px;
  background-color: #f1f1f1;
  padding: 5px 10px;
  border-radius: 4px;
}

button {
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  width: 300px;
}

.modal input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
}

.hidden {
  display: none;
}

/* Vista móvil */
@media (max-width: 768px) {
  .calendars-container {
    flex-direction: column;
  }

  .calendars-container > div {
    display: none; /* Ocultamos por defecto */
    width: 100%;
  }

  .calendars-container > div.active {
    display: block; /* Mostramos solo el activo */
  }

  .mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

.calendario {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.calendario th, .calendario td {
  border: 1px solid #ccc;
  width: 14.28%;
  height: 40px;
  text-align: center;
  vertical-align: middle;
  cursor: default;
}

.calendario td:hover {
  background-color: #ffeaea;
}

.calendario td:hover {
  background-color: #ffedae !important; /* color hover distinto al rojo */
  cursor: pointer;
}

.btn-borrar {
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-borrar:hover {
  background-color: #ff4c4c; /* rojo intenso */
  color: white;
}
