body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  flex: 1;
}

.header {
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
  background-image: url('../imagenes/cabecera4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.logo {
  position: absolute;
  top: 5px;
  left: 0px;
  width: 70px;
  height: 70px;
  z-index: 10;
}

.title-image {
  position: absolute;
  top: 50%;
  left: 95px;
  transform: translateY(-50%);
  height: 80px;
  z-index: 10;
  max-width: 350px;
  object-fit: contain;
}

/* ---------- CONTENEDOR PRINCIPAL ---------- */
.container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  margin: 40px 20px;
}

.welcome {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.username {
  font-size: 28px;
  color: #191970;
  margin-bottom: 30px;
  font-weight: 700;
}

.subtitle {
  color: #666;
  margin-bottom: 40px;
  font-size: 18px;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}

.service-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.foro-btn {
  background: linear-gradient(135deg, #191970 0%, #8B0000 100%);
}

.chat-btn {
  background: linear-gradient(135deg, #8B0000 0%, #c04306 100%);
}

.icon {
  font-size: 24px;
}

.logout-btn {
  margin-top: 30px;
  padding: 12px 30px;
  background: transparent;
  border: 2px solid #ddd;
  border-radius: 8px;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  border-color: #191970;
  color: #191970;
}

.loading {
  text-align: center;
  color: #191970;
  font-size: 24px;
  padding: 40px;
}

/* ---------- FOOTER ---------- */
.footer {
  width: 100%;
  height: 30px;
  min-height: 30px;
  background: linear-gradient(to right, #191970 0%, #8B0000 50%, #c04306 100%);
  background-image: linear-gradient(to right, #191970 0%, #8B0000 50%, #c04306 100%),
                    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="50,5 90,25 90,75 50,95 10,75 10,25" fill="none" stroke="rgba(255,255,255,.05)" stroke-width="2"/></svg>');
  box-shadow: 0 -4px 8px rgba(0,0,0,.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
}

.footer-logo {
  height: 35px;
  margin-right: 10px;
  object-fit: contain;
}
