/* CONTENEDOR GENERAL */
.malama-calendar-wrapper {
  background: #fff;
  padding: 10px;
  border: 3px solid #1f4e68;
}

/* CABECERA MES */
.malama-calendar-header {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

/* DÍAS DE LA SEMANA */
.malama-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  border: 2px solid #1f4e68;
}

.malama-calendar-weekdays div {
  padding: 6px;
  border-right: 1px solid #1f4e68;
}

.malama-calendar-weekdays div:last-child {
  border-right: none;
}

/* GRID PRINCIPAL */
.malama-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

/* CELDA */
.malama-day {
  border: 1px solid #1f4e68;
  min-height: 140px;
  padding: 4px;
  background: #fef6e9;
  transition: background 0.2s;
  position: relative;
}

.malama-day:hover {
  background: #ffffff;
}

/* DÍAS FUERA DE MES */
.malama-day.out-month {
  opacity: 0.4;
}

/* HOY */
.malama-day.is-today {
  background: #e0c68d;
}

/* NÚMERO DEL DÍA */
.malama-day-number {
  font-weight: bold;
  margin-bottom: 4px;
}

/* SCROLL INTERNO */
.malama-day-scroll {
  max-height: 95px;
  overflow-y: auto;
}

/* ACTIVIDADES */
.malama-activity {
  margin-bottom: 6px;
  font-size: 13px;
}

.malama-activity-title {
  color: #000;
  font-weight: bold;
}

.malama-activity-note {
  font-style: italic;
  font-size: 12px;
  color: #000000;
}

/* ---------------- MÓVIL ---------------- */

.malama-calendar-mobile-list {
  display: none;
}

@media (max-width: 768px) {

  .malama-calendar-weekdays,
  .malama-calendar-grid {
    display: none;
  }

  .malama-calendar-mobile-list {
    display: block;
  }

  .malama-mobile-day {
    border-bottom: 2px solid #1f4e68;
    padding: 10px 0;
  }

  .malama-mobile-date {
    font-weight: bold;
    margin-bottom: 6px;
  }

  .malama-mobile-activity {
    margin-bottom: 6px;
  }

}
