/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.6s ease;
  overflow: hidden;
}

/* === TEMAS POR MES (dinámicos en JS) === */
body[data-mes="0"] { background-color: #FFF7E6; }    /* Enero - suave y neutro */
body[data-mes="1"] { background-color: #E6F2FF; }    /* Febrero - azul claro */
body[data-mes="2"] { background-color: #E6FFE6; }    /* Marzo - verde pastel */
body[data-mes="3"] { background-color: #FFF0F5; }    /* Abril - rosa suave */
body[data-mes="4"] { background-color: #FFF5CC; }    /* Mayo - amarillo suave */
body[data-mes="5"] { background-color: #E0FFFF; }    /* Junio - celeste */
body[data-mes="6"] { background-color: #FFF2E6; }    /* Julio - cálido tenue */
body[data-mes="7"] { background-color: #F0FFF0; }    /* Agosto - verde claro */
body[data-mes="8"] { background-color: #F5F5DC; }    /* Septiembre - beige */
body[data-mes="9"] { background-color: #F5E6FF; }    /* Octubre - lila claro */
body[data-mes="10"]{ background-color: #F0F8FF; }    /* Noviembre - azul hielo */
body[data-mes="11"]{ background-color: #FFF8DC; }    /* Diciembre - crema */

/* === CONTENEDOR GENERAL === */
.app-container {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  transition: all 0.5s ease;
}

/* === CALENDARIO === */
.calendar {
  flex: 1;
  max-width: 420px;
  min-width: 320px;
  height: 95vh;
  background: white;
  margin: auto;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-header button {
  background-color: #ffd966;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}

.calendar-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 0;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin: 10px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  flex-grow: 1;
}

.calendar-days div {
  height: 50px;
  background-color: #f0f0f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: background-color 0.3s;
}

.calendar-days div:hover {
  background-color: #ffe066;
  cursor: pointer;
}

.festivo {
  background-color: rgba(10, 106, 223, 0.4);
  color: white;
  font-weight: bold;
}

.imagen-mes {
  margin-top: 10px;
}

.imagen-mes img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* === PANEL INFOGRAFÍA === */
.infografia-panel {
  flex: 1;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 2px solid #ccc;
  transition: all 0.5s ease;
  overflow: hidden;
}

.infografia-panel img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.cerrar-infografia {
  position: absolute;
  top: 10px;
  right: 10px;
  background: crimson;
  color: white;
  border: none;
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
}

/* === CONFIGURACIÓN === */
.configuracion {
  position: fixed;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 10px;
  z-index: 999;
}

#btn-config,
#btn-info {
  font-size: 20px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

.panel-config {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  width: 220px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === MODAL DE NOTAS === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

#guardar-nota {
  background-color: #4caf50;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}