* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #6A2135 0%, #6A3221 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

h1 {
  color: #6A2135;
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.form-grupo {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
}

input:focus {
  outline: none;
  border-color: #6A2135;
  box-shadow: 0 0 0 3px rgba(106, 33, 53, 0.15);
}

.btn-consultar {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #6A2135 0%, #6A2159 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-consultar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(106, 33, 53, 0.35);
}

.btn-consultar:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.resultado {
  display: none;
}

.info-alumno {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.info-header {
  background: linear-gradient(135deg, #216A32 0%, #21596A 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.info-header h2 {
  margin: 0 0 10px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.info-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  border-radius: 8px;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 3px;
}

.seccion {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.seccion h3 {
  color: #6A2135;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.materia-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid #6A2135;
}

.materia-card h4 {
  color: #333;
  margin: 0 0 10px 0;
}

.materia-info {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.calificaciones-list {
  background: white;
  padding: 15px;
  border-radius: 8px;
}

.calificacion-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.calificacion-item:last-child {
  border-bottom: none;
}

.calificacion-valor {
  font-weight: bold;
  color: #216A32;
  font-size: 1.2rem;
}

.sin-datos {
  text-align: center;
  padding: 30px;
  color: #999;
  font-style: italic;
}

.btn-nuevo {
  background: #f5f5f5;
  color: #6A2135;
  border: 2px solid #6A2135;
  padding: 12px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
  margin-top: 20px;
}

.btn-nuevo:hover {
  background: #6A2135;
  color: white;
}

.btn-horario {
  background: #e0e0e0;
  color: #21596A;
  padding: 12px 30px;
  border-radius: 10px;
  border: none;
  cursor: not-allowed;
  font-weight: 600;
  margin-top: 20px;
  display: inline-block;
}

/* Estilos para móvil */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 0;
  }

  .login-card,
  .info-alumno,
  .seccion {
    padding: 20px 15px;
    margin-bottom: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Tabla responsive */
  .resultado table {
    font-size: 0.85rem;
  }

  .resultado th,
  .resultado td {
    padding: 8px !important;
    white-space: nowrap;
  }

  .btn-nuevo,
  .btn-horario {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }

  .resultado table {
    font-size: 0.75rem;
  }

  .resultado th,
  .resultado td {
    padding: 6px !important;
  }
}