/* ==== RESET GENERAL ==== */
* {
  box-sizing: border-box;
}

html, body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Evita scroll horizontal */
  background-color: #f8f9fa;
}

/* ==== SIDEBAR ==== */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #343a40;
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 1000;
}

.sidebar-header {
  padding: 15px;
  text-align: center;
  color: white;
  font-weight: bold;
  border-bottom: 1px solid #495057;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  transition: background-color 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a:focus {
  background-color: #495057;
}

/* ==== CONTENIDO PRINCIPAL ==== */
#content,
.main-content {
  margin-left: 250px;
  padding: 20px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: calc(100% - 250px);
}

/* ==== FOOTER ==== */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
  text-align: center;
  z-index: 900;
}

/* ==== RESPONSIVE (Móvil) ==== */
@media (max-width: 768px) {
  #sidebar {
    width: 0;
    overflow: hidden;
  }

  #sidebar.active {
    width: 250px;
  }

  #content,
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }

  #sidebar.active ~ #content,
  #sidebar.active ~ .main-content {
    margin-left: 250px;
    max-width: calc(100% - 250px);
  }
}

/* ==== PROGRESO ==== */
#progreso-container {
  width: 100%;
  height: 30px;
  background-color: #e0e0e0;
  border: 1px solid #bbb;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

#progreso-container-juridico {
  width: 100%;
  height: 30px;
  background-color: #e0e0e0;
  border: 1px solid #bbb;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

#progreso-barra {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  color: white;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  transition: width 0.3s ease-in-out;
}

#progreso-barra-juridico {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  color: white;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  transition: width 0.3s ease-in-out;
}

/* ==== HOVER EFFECT ==== */
.hover-effect:hover {
  background-color: #495057;
}
