body {
  font-family: 'Roboto', sans-serif;
  background: #f9f9f9;
  margin: 0;
}

.header {
  background: #333;
  color: #fff;
  padding: 10px 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.usuario {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.btn {
  padding: 8px 16px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.form-container {
  width: 90%;
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #4285f4;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #3367d6;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 1.2em;
}

/* ------------------------------------- */
/*          MODO RESPONSIVO             */
/* ------------------------------------- */

/* Teléfonos (pantallas pequeñas) */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 80%;
    margin-top: 10px;
  }

  .usuario {
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 10px;
  }

  .form-container {
    width: 80%;
    margin: 20px 10px;
    padding: 20px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group select {
    font-size: 0.9rem;
  }
}

/* Tablets (pantallas medianas) */
@media (min-width: 481px) and (max-width: 768px) {
  .form-container {
    width: 90%;
  }

  .btn {
    padding: 10px 20px;
  }

  .submit-btn {
    font-size: 1rem;
  }
}
