* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: #f7f6f3;
  color: #333;
}

.container {
  max-width: 420px;
  margin: auto;
  padding: 16px;
}

h1 {
  text-align: center;
  margin-bottom: 12px;
}

.status {
  text-align: center;
  margin-bottom: 20px;
}

#counter {
  font-size: 1.2em;
  font-weight: 600;
}

#message {
  margin-top: 6px;
  color: #6b705c;
}

/* ---------- MES ---------- */

.month {
  margin-bottom: 24px;
}

.month h2 {
  margin: 8px 0;
  font-size: 1em;
  color: #444;
  text-transform: capitalize;
}

/* ---------- CABECERA SEMANA ---------- */

.week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
  font-size: 0.75em;
  color: #777;
  text-align: center;
}

/* ---------- GRID DEL MES ---------- */

.month-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

/* ---------- DÍAS ---------- */

.day {
  padding: 10px 0;
  text-align: center;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day.disabled {
  opacity: 0.3;
  cursor: default;
}

.day.weekend {
  background: #f0f0f0;
  color: #999;
  cursor: default;
}

.day.checked {
  background: #cfe1b9;
  text-decoration: line-through;
  transform: scale(0.95);
}

/* ---------- EFECTO SEMANA COMPLETA ---------- */

.week-complete {
  position: relative;
  opacity: 0.7;
}

.week-complete::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.06),
    rgba(0, 0, 0, 0.06) 6px,
    transparent 6px,
    transparent 12px
  );
  pointer-events: none;
}
.footer {
  text-align: center;
  margin-top: 24px;
  color: #777;
  font-size: 0.85em;
}
