* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

/* Viewport para móviles */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Barra METRONET */
.topbar {
  background-color: #4B2764;
  color: white;
  padding: 12px 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Contenedor principal */
.container {
  width: 95%;
  max-width: 100%;
  margin: 15px auto;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 20px;
  color: #4B2764;
  text-align: center;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
  color: #555;
}

input, select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input:focus, select:focus {
  border-color: #4B2764;
  outline: none;
  box-shadow: 0 0 0 2px rgba(75, 39, 100, 0.2);
  background-color: white;
}

/* Estilos específicos para inputs en móviles */
input[type="date"],
input[type="time"] {
  padding: 11px;
}

/* Botón */
button {
  width: 100%;
  padding: 14px;
  background-color: #4B2764;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

button:hover, button:active {
  background-color: #361b49;
}

/* Mejoras para teclado en móviles */
@media (max-height: 500px) {
  .container {
    margin: 5px auto;
    padding: 10px;
  }
  
  input, select {
    padding: 10px;
  }
  
  button {
    padding: 12px;
  }
}

#aula {
  display: none;
}

/* Orientación horizontal */
@media (orientation: landscape) {
  .container {
    max-width: 80%;
  }
}