/* Fondo general */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #fce4ec, #f3e5f5);
  color: #4a148c;
}

/* Contenedor central */
.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(194, 125, 192, 0.3);
}

/* Encabezado */
header h1 {
  text-align: center;
  color: #8e24aa;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

/* Menú de navegación (botones para cambiar de app) */
nav, .menu {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 1.5rem 0;
}

/* Ocultar los inputs de tipo radio */
input[type="radio"] {
  display: none;
}

/* Estilo de los botones (label) */
label {
  background: #f8bbd0;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  color: #6a1b9a;
  font-size: 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

input[type="radio"]:checked + label {
  background-color: #ce93d8;
  color: white;
  box-shadow: 0 4px 12px rgba(206, 147, 216, 0.4);
}

/* Contenedor de las apps (iframes) */
.apps {
  background: #fbe9f4;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: inset 0 0 8px #e1bee7;
  min-height: 420px;
}

/* Estilo base de los iframes */
.apps iframe {
  display: none;
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Mostrar solo el iframe correspondiente */
#app-notes:checked ~ .apps #frame-notes,
#app-homeworks:checked ~ .apps #frame-homeworks,
#app-weather:checked ~ .apps #frame-weather {
  display: block;
}
