* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", sans-serif;
  line-height: 1.6;
  color: #1a2a4f;
  background-color: #deded1;
  display: flex;
  min-height: 100vh;
}

/* MENÚ LATERAL */
.sidebar {
  width: 280px;
  background-color: #1a2a4f;
  padding: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  left: 0;
  top: 0;
}

.sidebar-header {
  color: #deded1;
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(222, 222, 209, 0.3);
}

.menu-section {
  margin-bottom: 15px;
}

.menu-section-title {
  color: #deded1;
  font-size: 0.9em;
  font-weight: 600;
  padding: 12px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  transition: background-color 0.2s;
  user-select: none;
}

.menu-section-title:hover {
  background-color: rgba(222, 222, 209, 0.1);
}

.menu-section-title::after {
  content: "▼";
  font-size: 0.8em;
  transition: transform 0.3s;
}

.menu-section.collapsed .menu-section-title::after {
  transform: rotate(-90deg);
}

.menu-list {
  list-style: none;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 1;
}

.menu-section.collapsed .menu-list {
  max-height: 0;
  opacity: 0;
}

.menu-item {
  margin-bottom: 5px;
}

.menu-link {
  display: block;
  color: #deded1;
  text-decoration: none;
  padding: 10px 12px 10px 24px;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-size: 0.9em;
}

.menu-link:hover {
  background-color: rgba(222, 222, 209, 0.1);
}

.menu-link.active {
  background-color: rgba(222, 222, 209, 0.2);
  font-weight: 600;
}

/* CONTENIDO PRINCIPAL */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
}

.container {
  max-width: 900px;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(26, 42, 79, 0.1);
}

/* ENCABEZADO DEL PROCEDIMIENTO */
.procedure-header {
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 3px solid #1a2a4f;
}

.procedure-id {
  display: inline-block;
  background-color: #1a2a4f;
  color: #deded1;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 12px;
}

.procedure-title {
  font-size: 2em;
  font-weight: 600;
  color: #1a2a4f;
  margin-top: 8px;
}

/* SECCIONES */
.section {
  margin-bottom: 35px;
}

.section-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #1a2a4f;
  margin-bottom: 15px;
}

.section-content ul {
  list-style: none;
  padding-left: 0;
}

.section-content li {
  padding-left: 30px;
  margin-bottom: 10px;
  position: relative;
  color: #333;
}

.section-content li::before {
  content: "•";
  position: absolute;
  left: 10px;
  color: #1a2a4f;
  font-weight: bold;
  font-size: 1.2em;
}

/* RESPONSIVO */
@media (max-width: 968px) {
  .sidebar {
    width: 240px;
  }

  .main-content {
    margin-left: 240px;
    padding: 20px;
  }

  .container {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }
}

/* SCROLL BAR PERSONALIZADO PARA SIDEBAR */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(222, 222, 209, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(222, 222, 209, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(222, 222, 209, 0.5);
}
