.portal-wrapper {
  padding: 120px 10%;
  background-color: #f7f9fb;
  min-height: 80vh;
}

/* LOGIN */

.login-box {
  max-width: 420px;
  margin: 60px auto;
  background: #ffffff;
  padding: 50px;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
  text-align: center;
}

.login-box h2 {
  font-weight: 500;
  margin-bottom: 8px;
}

.portal-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.portal-info {
  font-size: 13px;
  color: #777;
  margin-top: 10px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdcdc;
  margin-bottom: 15px;
  font-size: 14px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #1e2a38;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.login-box button:hover {
  background: #16202b;
}

.error-message {
  margin-top: 15px;
  font-size: 14px;
  color: #b02a2a;
}

/* PROYECTOS */

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.logout-btn {
  border: 1px solid #444;
  background: transparent;
  padding: 8px 14px;
  cursor: pointer;
}

.category {
  margin-bottom: 50px;
}

.category h3 {
  border-bottom: 2px solid #e6e6e6;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-info {
  display: flex;
  flex-direction: column;
}

.status {
  font-size: 14px;
  margin-top: 5px;
}

.status.finalizado { color: #2e7d32; }
.status.proceso { color: #ef6c00; }
.status.sin-iniciar { color: #c62828; }

.download-btn {
  background: #1e2a38;
  color: white;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 13px;
}

.hidden {
  display: none;
}


.archivos-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.archivo-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: #f7f7f7;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.archivo-row span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

.download-btn {
  background: #1e2a38;
  color: white;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 4px;
}
/* Responsive */

/* MOBILE PORTAL */

@media (max-width: 768px) {

  .portal-wrapper {
    padding: 40px 20px;
  }

  .login-box {
    padding: 35px 25px;
    margin: 40px auto;
  }

  .portal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .download-btn {
    width: 100%;
    text-align: center;
  }

 .archivo-row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.archivo-row span {
  width: 100%;
}

.download-btn {
  width: 100%;
  text-align: center;
}

}
@media (max-width: 768px){

.portal-wrapper{
  padding: 140px 5% 60px 5%;
}

}
