/* === ESTILO GLOBAL === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  position: relative;
}

/* === Fondo institucional UNESUM como marca de agua === */
body::before {
  content: "";
  background: url('../img/logo_unesum.png') no-repeat center center;
  background-size: contain; /* Se adapta mejor */
  opacity: 0.05;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

/* ✅ Capa oscura sobre el fondo para mejorar contraste */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

/* Elevar contenido principal encima del fondo */
.dashboard-header,
.dashboard-main {
  position: relative;
  z-index: 1;
}

/* === ENCABEZADO DEL PANEL === */
.dashboard-header {
  background-color: rgba(39, 174, 96, 0.95);
  color: #fff;
  padding: 4vw;
  display: flex;
  flex-wrap: wrap; /* Se adapta en pantallas pequeñas */
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* === BOTÓN DE CERRAR SESIÓN === */
.logout-btn {
  background-color: #fff;
  color: #27ae60;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: #f1f1f1;
}

/* === CUERPO DEL PANEL PRINCIPAL === */
.dashboard-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* === TARJETAS DEL DASHBOARD === */
.dashboard-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  color: #000;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background-color: #f9f9f9;
}

/* === COLORES PARA TARJETAS ESPECÍFICAS === */
.dashboard-card.estudiantes {
  border-left: 6px solid #3498db;
}

.dashboard-card.administradores {
  border-left: 6px solid #e74c3c;
}

/* === FORMULARIO DE SUBIR DOCUMENTOS === */
.subir-documento-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  text-align: left;
}

.subir-documento-container h3 {
  color: #27ae60;
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: center;
}

.subir-documento-container input[type="file"],
.subir-documento-container input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  box-sizing: border-box;
  font-size: 1rem;
}

.subir-documento-container button[type="submit"] {
  background-color: #27ae60;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.subir-documento-container button[type="submit"]:hover {
  background-color: #219150;
}

/* === ENCABEZADO CON LOGO Y TÍTULO === */
.logo-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  margin: 0;
}

/* === LOGO CORREGIDO === */
.logo-icon {
  width: clamp(80px, 10vw, 120px);
  height: auto;
  object-fit: contain;
  border-radius: 100px;
}
